Made some fields final in AlternativeSignatureData.
This commit is contained in:
+7
-4
@@ -46,17 +46,17 @@ import java.util.Map;
|
|||||||
* @since 6/5/12
|
* @since 6/5/12
|
||||||
*/
|
*/
|
||||||
class AlternativeSignatureData {
|
class AlternativeSignatureData {
|
||||||
private JetNamedFunction altFunDeclaration;
|
private final JetNamedFunction altFunDeclaration;
|
||||||
private PsiMethodWrapper method;
|
private final PsiMethodWrapper method;
|
||||||
|
|
||||||
private boolean none;
|
private final boolean none;
|
||||||
private String error;
|
private String error;
|
||||||
|
|
||||||
private JavaDescriptorResolver.ValueParameterDescriptors altValueParameters;
|
private JavaDescriptorResolver.ValueParameterDescriptors altValueParameters;
|
||||||
private JetType altReturnType;
|
private JetType altReturnType;
|
||||||
private List<TypeParameterDescriptor> altTypeParameters;
|
private List<TypeParameterDescriptor> altTypeParameters;
|
||||||
|
|
||||||
private Map<TypeParameterDescriptor, TypeParameterDescriptorImpl> originalToAltTypeParameters =
|
private final Map<TypeParameterDescriptor, TypeParameterDescriptorImpl> originalToAltTypeParameters =
|
||||||
new HashMap<TypeParameterDescriptor, TypeParameterDescriptorImpl>();
|
new HashMap<TypeParameterDescriptor, TypeParameterDescriptorImpl>();
|
||||||
|
|
||||||
AlternativeSignatureData(
|
AlternativeSignatureData(
|
||||||
@@ -67,9 +67,12 @@ class AlternativeSignatureData {
|
|||||||
String signature = method.getSignatureAnnotation().signature();
|
String signature = method.getSignatureAnnotation().signature();
|
||||||
if (signature.isEmpty()) {
|
if (signature.isEmpty()) {
|
||||||
none = true;
|
none = true;
|
||||||
|
altFunDeclaration = null;
|
||||||
|
this.method = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
none = false;
|
||||||
this.method = method;
|
this.method = method;
|
||||||
Project project = method.getPsiMethod().getProject();
|
Project project = method.getPsiMethod().getProject();
|
||||||
altFunDeclaration = JetPsiFactory.createFunction(project, signature);
|
altFunDeclaration = JetPsiFactory.createFunction(project, signature);
|
||||||
|
|||||||
Reference in New Issue
Block a user