Skip to content

Commit ade5c20

Browse files
committed
Use Integer.hashCode() instead of Objects,hashCode()
1 parent 49203e0 commit ade5c20

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
<arg>-XDcompilePolicy=simple</arg>
256256
<arg>--should-stop=ifError=FLOW</arg>
257257
<arg>-XDaddTypeAnnotationsToSymbol=true</arg>
258-
<arg>-Xplugin:ErrorProne -Xep:ObjectToString:OFF -Xep:BadInstanceof:OFF -Xep:EqualsGetClass:OFF -Xep:BigDecimalEquals:OFF -Xep:ReferenceEquality:OFF -Xep:ArrayAsKeyOfSetOrMap:OFF -Xep:IterableAndIterator:OFF -Xep:ObjectsHashCodePrimitive:OFF -Xep:StatementSwitchToExpressionSwitch:OFF -Xep:JdkObsolete:OFF -Xep:AddressSelection:OFF -Xep:EmptyBlockTag:OFF -Xep:MissingSummary:OFF -Xep:NonApiType:OFF -Xep:StringSplitter:OFF -Xep:WaitNotInLoop:OFF -Xep:StringConcatToTextBlock:OFF</arg>
258+
<arg>-Xplugin:ErrorProne -Xep:ObjectToString:OFF -Xep:BadInstanceof:OFF -Xep:EqualsGetClass:OFF -Xep:BigDecimalEquals:OFF -Xep:ReferenceEquality:OFF -Xep:ArrayAsKeyOfSetOrMap:OFF -Xep:IterableAndIterator:OFF -Xep:StatementSwitchToExpressionSwitch:OFF -Xep:JdkObsolete:OFF -Xep:AddressSelection:OFF -Xep:EmptyBlockTag:OFF -Xep:MissingSummary:OFF -Xep:NonApiType:OFF -Xep:StringSplitter:OFF -Xep:WaitNotInLoop:OFF -Xep:StringConcatToTextBlock:OFF</arg>
259259
</compilerArgs>
260260
<annotationProcessorPaths>
261261
<path>

src/main/java/de/learnlib/ralib/data/SymbolicDataValue.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ public Register(DataType dataType, int id) {
5050
super(dataType, id, "r" + id);
5151
}
5252

53-
@Override
54-
public Expression<BigDecimal> asExpression() {
55-
return this;
56-
}
53+
@Override
54+
public Expression<BigDecimal> asExpression() {
55+
return this;
56+
}
5757
}
5858

5959
/**
@@ -130,7 +130,7 @@ public boolean equals(Object obj) {
130130
public int hashCode() {
131131
int hash = 7;
132132
hash = 97 * hash + Objects.hashCode(this.type);
133-
hash = 97 * hash + Objects.hashCode(this.id);
133+
hash = 97 * hash + Integer.hashCode(this.id);
134134
hash = 97 * hash + Objects.hashCode(this.getClass());
135135
return hash;
136136
}

0 commit comments

Comments
 (0)