Skip to content

Commit

Permalink
Fix stupid mistake in ReflectionHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
knokko committed Oct 10, 2024
1 parent ba4a99b commit a273a30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static String getIntConstantName(Class<?> targetClass, int value, String
&& candidate.getName().startsWith(prefix) && candidate.getName().endsWith(suffix)
) {
try {
return candidate.getInt(null) == value;
return candidate.getLong(null) == value;
} catch (IllegalAccessException e) {
return false;
}
Expand Down

0 comments on commit a273a30

Please sign in to comment.