pull setter to the common class

This commit is contained in:
Anna.Kozlova
2016-04-12 16:34:07 +02:00
parent 7db6ca94f7
commit f0b218fc5c
3 changed files with 3 additions and 0 deletions
@@ -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);
}
@@ -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);
}