Drop getExternal method from JavaSignatureFormatter
This commit is contained in:
committed by
Alexander Udalov
parent
d7337fbe94
commit
735df2e340
+1
-1
@@ -91,7 +91,7 @@ public class PsiBasedMethodSignatureChecker implements MethodSignatureChecker {
|
|||||||
+ "super class = " + superFunction.getContainingDeclaration() + "\n"
|
+ "super class = " + superFunction.getContainingDeclaration() + "\n"
|
||||||
+ "sub function = " + function + "\n"
|
+ "sub function = " + function + "\n"
|
||||||
+ "sub class = " + function.getContainingDeclaration() + "\n"
|
+ "sub class = " + function.getContainingDeclaration() + "\n"
|
||||||
+ "sub method = " + JavaSignatureFormatter.getInstance().getExternalName(method) + "\n"
|
+ "sub method = " + method + "\n"
|
||||||
+ "@KotlinSignature = " + SignaturesUtil.getKotlinSignature(externalAnnotationResolver, method));
|
+ "@KotlinSignature = " + SignaturesUtil.getKotlinSignature(externalAnnotationResolver, method));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-7
@@ -31,11 +31,4 @@ public class JavaSignatureFormatterImpl extends JavaSignatureFormatter {
|
|||||||
return PsiFormatUtil.formatMethod(((JavaMethodImpl) method).getPsi(), PsiSubstitutor.EMPTY, SHOW_NAME | SHOW_PARAMETERS,
|
return PsiFormatUtil.formatMethod(((JavaMethodImpl) method).getPsi(), PsiSubstitutor.EMPTY, SHOW_NAME | SHOW_PARAMETERS,
|
||||||
SHOW_TYPE | SHOW_FQ_CLASS_NAMES);
|
SHOW_TYPE | SHOW_FQ_CLASS_NAMES);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
|
||||||
@Override
|
|
||||||
public String getExternalName(@NotNull JavaMethod method) {
|
|
||||||
String result = PsiFormatUtil.getExternalName(((JavaMethodImpl) method).getPsi());
|
|
||||||
return result == null ? "null" : result;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
-8
@@ -41,12 +41,4 @@ public abstract class JavaSignatureFormatter {
|
|||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
public abstract String formatMethod(@NotNull JavaMethod method);
|
public abstract String formatMethod(@NotNull JavaMethod method);
|
||||||
|
|
||||||
/**
|
|
||||||
* @return a formatted signature of a method, showing method's containing class, return type and parameter types, all names are fully
|
|
||||||
* qualified, e.g.:
|
|
||||||
* {@code "java.lang.Class boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>)"}
|
|
||||||
*/
|
|
||||||
@NotNull
|
|
||||||
public abstract String getExternalName(@NotNull JavaMethod method);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user