cleanup
This commit is contained in:
@@ -20,16 +20,13 @@ import java.util.*;
|
|||||||
public class Converter {
|
public class Converter {
|
||||||
private final static Set<String> NOT_NULL_ANNOTATIONS = new HashSet<String>() {
|
private final static Set<String> NOT_NULL_ANNOTATIONS = new HashSet<String>() {
|
||||||
{
|
{
|
||||||
add("org.jetbrains.annotations.NotNull");
|
add("org.jetbrains.annotations.NotNull");
|
||||||
add("com.sun.istack.internal.NotNull");
|
add("com.sun.istack.internal.NotNull");
|
||||||
add("javax.annotation.Nonnull");
|
add("javax.annotation.Nonnull");
|
||||||
}
|
}
|
||||||
} ;
|
};
|
||||||
private static Set<String> ourClassIdentifiers = new HashSet<String>();
|
private static Set<String> ourClassIdentifiers = new HashSet<String>();
|
||||||
private static final Dispatcher ourDispatcher = new Dispatcher();
|
private static final Dispatcher ourDispatcher = new Dispatcher();
|
||||||
// private static ExpressionVisitor ourExpressionVisitor = new ExpressionVisitor();
|
|
||||||
|
|
||||||
private static final java.lang.Class<ExpressionVisitor> visitorClass = ExpressionVisitor.class;
|
|
||||||
|
|
||||||
public static void setClassIdentifiers(Set<String> identifiers) {
|
public static void setClassIdentifiers(Set<String> identifiers) {
|
||||||
ourClassIdentifiers = identifiers;
|
ourClassIdentifiers = identifiers;
|
||||||
@@ -512,10 +509,10 @@ public class Converter {
|
|||||||
|
|
||||||
private static boolean isReadOnly(PsiParameter parameter) {
|
private static boolean isReadOnly(PsiParameter parameter) {
|
||||||
for (PsiReference r : (ReferencesSearch.search(parameter))) {
|
for (PsiReference r : (ReferencesSearch.search(parameter))) {
|
||||||
if (r instanceof PsiExpression && PsiUtil.isAccessedForWriting((PsiExpression) r)) {
|
if (r instanceof PsiExpression && PsiUtil.isAccessedForWriting((PsiExpression) r)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user