Skip to content

Commit

Permalink
Revert one isEmpty() change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong committed Jun 1, 2024
1 parent 861fb05 commit 7b85a69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public AnnotatedDeclaredType getSelfType(Tree tree) {
AnnotatedDeclaredType type = getAnnotatedType(enclosingClass);

MethodTree enclosingMethod = TreePathUtil.enclosingMethod(path);
if (!enclosingClass.getSimpleName().isEmpty() && enclosingMethod != null) {
if (enclosingClass.getSimpleName().length() != 0 && enclosingMethod != null) {
AnnotatedTypeMirror.AnnotatedDeclaredType methodReceiver;
if (TreeUtils.isConstructor(enclosingMethod)) {
methodReceiver =
Expand Down

0 comments on commit 7b85a69

Please sign in to comment.