Skip to content

Commit

Permalink
Fixes codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed Jun 25, 2016
1 parent eab5ac3 commit a2252fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/thegalactic/dgraph/Edge.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public int hashCode() {
* @return a negative integer, zero, or a positive integer as this edge is
* less than, equal target, or greater than the specified object.
*/
public int compareTo(final Edge<N, E> edge) {
public final int compareTo(final Edge<N, E> edge) {
int cmp = this.source.compareTo(edge.source);
if (cmp == 0) {
cmp = this.target.compareTo(edge.target);
Expand Down Expand Up @@ -218,7 +218,7 @@ public String toString() {
* @param builder StringBuilder
* @param node Node
*/
private void appendNode(StringBuilder builder, Node node) {
private void appendNode(final StringBuilder builder, final Node node) {
builder.append(node.toString().replaceAll("[^\\w ]", ""));
}
}
1 change: 0 additions & 1 deletion src/test/java/org/thegalactic/dgraph/NodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public void testConstructorEmpty() {
public void testToString() {
String content = "Hello World";
Node<String> node = new Node<String>(content);
StringBuilder builder = new StringBuilder();
assertEquals(content, node.toString());
}

Expand Down

0 comments on commit a2252fe

Please sign in to comment.