We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bc5dcb commit 39f4096Copy full SHA for 39f4096
1 file changed
compiler/src/main/java/com/github/mustachejava/reflect/ClassGuard.java
@@ -33,6 +33,6 @@ public boolean equals(Object o) {
33
public boolean apply(Object[] scopes) {
34
if (scopes == null || scopes.length <= scopeIndex) return false;
35
Object scope = scopes[scopeIndex];
36
- return (scope != null && classGuard.equals(scope.getClass())) || (scope == null && classGuard == null);
+ return (scope == null && classGuard == null) || (scope != null && classGuard == scope.getClass());
37
}
38
0 commit comments