Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Oct 3, 2022
1 parent 974dc34 commit 9610342
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2021 the original author or authors.
* Copyright 2017-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -228,7 +228,7 @@ public void setAllowNonJavadocComments(boolean allowNonJavadocComments) {
private DetailAST getInterfaceOrAnnotationDef(DetailAST ast) {
return findParent(ast, TokenTypes.INTERFACE_DEF, TokenTypes.ANNOTATION_DEF);
}

private DetailAST findParent(DetailAST ast, int... classDefs) {
while (ast != null) {
for (int classDef: classDefs) {
Expand Down

0 comments on commit 9610342

Please sign in to comment.