Skip to content

Commit 8239cdd

Browse files
committed
fixed errors reported by Error Prone in commit 855c41b
1 parent 08419d6 commit 8239cdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flatlaf-core/src/test/java/com/formdev/flatlaf/ui/TestFlatStyleableValue.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ private static class CacheKey {
208208

209209
@Override
210210
public boolean equals( Object obj ) {
211-
return uiClass == ((CacheKey)obj).uiClass && compClass == ((CacheKey)obj).compClass;
211+
return obj instanceof CacheKey &&
212+
uiClass == ((CacheKey)obj).uiClass &&
213+
compClass == ((CacheKey)obj).compClass;
212214
}
213215

214216
@Override

0 commit comments

Comments
 (0)