mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-82043: change signature detection: ignore changes in annotations
This commit is contained in:
+7
@@ -155,6 +155,13 @@ class DetectedJavaChangeInfo extends JavaChangeInfoImpl {
|
||||
isReturnTypeChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0, length = Math.min(newParms.length, oldParameterNames.length); i < length; i++) {
|
||||
ParameterInfoImpl parm = newParms[i];
|
||||
if (parm.getName().equals(oldParameterNames[i]) && parm.getTypeText().equals(oldParameterTypes[i])) {
|
||||
parm.oldParameterIndex = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
javaChangeInfo.setSuperMethod(getSuperMethod());
|
||||
|
||||
@@ -33,7 +33,7 @@ import java.util.List;
|
||||
|
||||
public class ParameterInfoImpl implements JavaParameterInfo {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.refactoring.changeSignature.ParameterInfoImpl");
|
||||
public final int oldParameterIndex;
|
||||
public int oldParameterIndex;
|
||||
boolean useAnySingleVariable;
|
||||
private String name = "";
|
||||
public static final ParameterInfoImpl[] EMPTY_ARRAY = new ParameterInfoImpl[0];
|
||||
|
||||
Reference in New Issue
Block a user