mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
pull setter to the common class
This commit is contained in:
@@ -41,4 +41,5 @@ public interface JavaParameterInfo extends ParameterInfo {
|
||||
|
||||
boolean isVarargType();
|
||||
|
||||
default void setType(@Nullable PsiType type) {}
|
||||
}
|
||||
|
||||
@@ -124,6 +124,7 @@ public class ParameterInfoImpl implements JavaParameterInfo {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setType(PsiType type) {
|
||||
myType = CanonicalTypes.createTypeWrapper(type);
|
||||
}
|
||||
|
||||
+1
@@ -155,6 +155,7 @@ public class GrParameterInfo implements JavaParameterInfo {
|
||||
myName = newName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setType(@Nullable PsiType type) {
|
||||
myTypeWrapper = type == null ? null : CanonicalTypes.createTypeWrapper(type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user