mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -27,8 +27,7 @@ import java.util.List;
|
||||
* @since 5.1
|
||||
*/
|
||||
public abstract class HierarchicalMethodSignature extends MethodSignatureBackedByPsiMethod {
|
||||
|
||||
public HierarchicalMethodSignature(final MethodSignatureBackedByPsiMethod signature) {
|
||||
public HierarchicalMethodSignature(@NotNull MethodSignatureBackedByPsiMethod signature) {
|
||||
super(signature.getMethod(), signature.getSubstitutor(), signature.isRaw(),
|
||||
signature.getParameterTypes(), signature.getTypeParameters());
|
||||
}
|
||||
|
||||
@@ -26,10 +26,10 @@ public class MethodSignatureBackedByPsiMethod extends MethodSignatureBase {
|
||||
private final boolean myIsRaw;
|
||||
|
||||
protected MethodSignatureBackedByPsiMethod(@NotNull PsiMethod method,
|
||||
PsiSubstitutor substitutor,
|
||||
@NotNull PsiSubstitutor substitutor,
|
||||
boolean isRaw,
|
||||
PsiType[] parameterTypes,
|
||||
PsiTypeParameter[] methodTypeParameters) {
|
||||
@NotNull PsiType[] parameterTypes,
|
||||
@NotNull PsiTypeParameter[] methodTypeParameters) {
|
||||
super(substitutor, parameterTypes, methodTypeParameters);
|
||||
myIsRaw = isRaw;
|
||||
if (!method.isValid()) {
|
||||
@@ -67,11 +67,11 @@ public class MethodSignatureBackedByPsiMethod extends MethodSignatureBase {
|
||||
return myMethod;
|
||||
}
|
||||
|
||||
public static MethodSignatureBackedByPsiMethod create(PsiMethod method, PsiSubstitutor substitutor) {
|
||||
public static MethodSignatureBackedByPsiMethod create(@NotNull PsiMethod method, @NotNull PsiSubstitutor substitutor) {
|
||||
return create(method, substitutor, PsiUtil.isRawSubstitutor(method, substitutor));
|
||||
}
|
||||
|
||||
public static MethodSignatureBackedByPsiMethod create(PsiMethod method, PsiSubstitutor substitutor, boolean isRaw) {
|
||||
public static MethodSignatureBackedByPsiMethod create(@NotNull PsiMethod method, @NotNull PsiSubstitutor substitutor, boolean isRaw) {
|
||||
PsiTypeParameter[] methodTypeParameters = method.getTypeParameters();
|
||||
final PsiParameter[] parameters = method.getParameterList().getParameters();
|
||||
PsiType[] parameterTypes = new PsiType[parameters.length];
|
||||
|
||||
@@ -27,7 +27,7 @@ public abstract class MethodSignatureBase implements MethodSignature {
|
||||
private final PsiType[] myParameterTypes;
|
||||
protected final PsiTypeParameter[] myTypeParameters;
|
||||
|
||||
protected MethodSignatureBase(PsiSubstitutor substitutor, @NotNull PsiType[] parameterTypes, @NotNull PsiTypeParameter[] typeParameters) {
|
||||
protected MethodSignatureBase(@NotNull PsiSubstitutor substitutor, @NotNull PsiType[] parameterTypes, @NotNull PsiTypeParameter[] typeParameters) {
|
||||
mySubstitutor = substitutor;
|
||||
myParameterTypes = parameterTypes.length == 0 ? PsiType.EMPTY_ARRAY : new PsiType[parameterTypes.length];
|
||||
for (int i = 0; i < parameterTypes.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user