You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixesalibaba#471
Previously, the following code can't pass EqualsAvoidNullRule:
public class Test {
private static final String VERSION = System.getProperty("v");
public boolean isJava6(){
return "1.6".equals(VERSION);
}
}
This PR fixes this issue by checking if the caller is a literal.
This fixes#471
Previously, the following code can't pass EqualsAvoidNullRule:
public class Test {
private static final String VERSION = System.getProperty("v");
public boolean isJava6(){
return "1.6".equals(VERSION);
}
}
This PR fixes this issue by checking if the caller is a literal.
Context
The following code can't pass
EqualsAvoidNullRule
:Another sample:
The text was updated successfully, but these errors were encountered: