Skip to content

Commit 097d3e8

Browse files
committed
fix(json): honor skipped test compilation
1 parent a9c2e30 commit 097d3e8

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

java/fory-json/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@
273273
<goal>run</goal>
274274
</goals>
275275
<configuration>
276+
<skip>${maven.test.skip}</skip>
276277
<target>
277278
<javac srcdir="${project.basedir}/src/test/java17"
278279
destdir="${project.build.testOutputDirectory}"

java/fory-json/src/main/java/org/apache/fory/json/resolver/JsonNativeSubtypeRegistry.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,12 @@ private Key(Class<?> baseType, Class<?> mixinType) {
8484

8585
@Override
8686
public boolean equals(Object other) {
87-
if (this == other) return true;
88-
if (!(other instanceof Key)) return false;
87+
if (this == other) {
88+
return true;
89+
}
90+
if (!(other instanceof Key)) {
91+
return false;
92+
}
8993
Key key = (Key) other;
9094
return baseType == key.baseType && mixinType == key.mixinType;
9195
}

0 commit comments

Comments
 (0)