Skip to content

Commit 83804cd

Browse files
committed
Merge pull request aimacode#93 from NULLPlayer/patch-1
alter hashCode from "return 17" to "return result"
2 parents 0127404 + 36e99d2 commit 83804cd

File tree

1 file changed

+2
-2
lines changed
  • aima-core/src/main/java/aima/core/logic/common

1 file changed

+2
-2
lines changed

aima-core/src/main/java/aima/core/logic/common/Token.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ public int hashCode() {
7575
result = 37 * result + type;
7676
result = 37 * result + text.hashCode();
7777
result = 37 * result + startCharPositionInInput;
78-
return 17;
78+
return result;
7979
}
8080

8181
@Override
8282
public String toString() {
8383
return "[ " + type + " " + text + " " + startCharPositionInInput + " ]";
8484
}
85-
}
85+
}

0 commit comments

Comments
 (0)