Skip to content

Commit

Permalink
[fixes projectlombok#1498] Respect @Tolerate when using @Singular
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhofer committed May 12, 2022
1 parent 1473389 commit 92138e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ public boolean checkForAlreadyExistingNodesAndGenerateError(EclipseNode builderT
}
case METHOD: {
AbstractMethodDeclaration method = (AbstractMethodDeclaration) child.get();
if (isTolerate(child, method)) continue;
char[] name = method.selector;
if (name == null) continue;
if (getGeneratedBy(method) != null) continue;
Expand Down
1 change: 1 addition & 0 deletions src/core/lombok/javac/handlers/JavacSingularsRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public boolean checkForAlreadyExistingNodesAndGenerateError(JavacNode builderTyp
}
case METHOD: {
JCMethodDecl method = (JCMethodDecl) child.get();
if (isTolerate(child, method)) continue;
Name name = method.name;
if (name == null) break;
if (getGeneratedBy(method) != null) continue;
Expand Down

0 comments on commit 92138e2

Please sign in to comment.