-
-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REVIEW: fix shadow class building for anonymous classes #3567
Conversation
@@ -172,6 +172,11 @@ public boolean isClass() { | |||
|
|||
@Override | |||
public boolean isAnonymous() { | |||
// case 1: the java.lang.Class convention | |||
if ("".equals(getSimpleName())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#isEmpty() ?
getSimpleName.isEmpty()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would work also.
@nharrand ready for merge |
Neat. |
Fix #3553
Fix #3563