Skip to content

Commit

Permalink
Fixes the parameter check of the EnumValuesMacro.
Browse files Browse the repository at this point in the history
  • Loading branch information
andyHa committed Dec 23, 2020
1 parent 6c99b43 commit d15bb08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/sirius/pasta/noodle/macros/EnumValuesMacro.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public void verify(CompilationContext context, Position position, List<Node> arg
|| !CompilationContext.isAssignableTo(args.get(0).getType(), Class.class)
|| !args.get(0)
.isConstant()
|| ((Class<?>) args.get(0).getConstantValue()).isEnum()) {
throw new IllegalArgumentException("Expected an enum class as parameter.");
|| !((Class<?>) args.get(0).getConstantValue()).isEnum()) {
throw new IllegalArgumentException("Expected an enum class as parameter.");
}
}

Expand Down

0 comments on commit d15bb08

Please sign in to comment.