Skip to content

Commit

Permalink
Merge pull request #22 from FalkorDB/clean-warns
Browse files Browse the repository at this point in the history
clean some warns
  • Loading branch information
gkorland authored Dec 17, 2023
2 parents 19b6776 + 6175d36 commit 9fc7a9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/falkordb/graph_entities/GraphEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,6 @@ public int hashCode() {
return Objects.hash(id, propertyMap);
}

@Override
public abstract String toString();
}
1 change: 1 addition & 0 deletions src/main/java/com/falkordb/impl/api/GraphCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public enum GraphCommand implements ProtocolCommand {
/**
* Returns the raw command
*/
@Override
public byte[] getRaw() {
return raw;
}
Expand Down
6 changes: 4 additions & 2 deletions src/test/java/com/falkordb/IterableTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.falkordb;

import static org.junit.Assert.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.After;
Expand Down Expand Up @@ -28,6 +29,7 @@ public void testRecordsIterator() {
ResultSet rs = api.query("MATCH(n) RETURN n");
int count = 0;
for (Record record : rs) {
assertNotNull(record);
count++;
}
assertEquals(rs.size(), count);
Expand All @@ -53,8 +55,8 @@ public void testRecordsIteratorAndIterable() {
ResultSet rs = api.query("MATCH(n) RETURN n");
rs.iterator().next();
int count = 0;
for (@SuppressWarnings("unused")
Record row : rs) {
for (Record row : rs) {
assertNotNull(row);
count++;
}
assertEquals(rs.size(), count);
Expand Down

0 comments on commit 9fc7a9d

Please sign in to comment.