Removed Diagnostic.getMessage() method.

This commit is contained in:
Evgeny Gerashchenko
2012-04-13 14:03:17 +04:00
parent 623cbe7cca
commit 4900839c09
9 changed files with 0 additions and 51 deletions
@@ -320,12 +320,6 @@ public class CheckerTestUtil {
return SyntaxErrorDiagnosticFactory.instance;
}
@NotNull
@Override
public String getMessage() {
throw new IllegalStateException();
}
@NotNull
@Override
public Severity getSeverity() {
@@ -54,7 +54,6 @@ public abstract class AbstractDiagnostic<E extends PsiElement> implements Parame
return severity;
}
@Override
@NotNull
public E getPsiElement() {
@@ -31,10 +31,6 @@ public interface Diagnostic {
@NotNull
AbstractDiagnosticFactory getFactory();
@Deprecated
@NotNull
String getMessage();
@NotNull
Severity getSeverity();
@@ -43,12 +43,6 @@ public class DiagnosticWithParameters1<E extends PsiElement, A> extends Abstract
return (DiagnosticFactory1<E, A>)super.getFactory();
}
@NotNull
@Override
public String getMessage() {
return getFactory().makeMessage(a);
}
@Override
@NotNull
public List<TextRange> getTextRanges() {
@@ -46,12 +46,6 @@ public class DiagnosticWithParameters2<E extends PsiElement, A, B> extends Abstr
return (DiagnosticFactory2<E, A, B>)super.getFactory();
}
@NotNull
@Override
public String getMessage() {
return getFactory().makeMessage(a, b);
}
@Override
@NotNull
public List<TextRange> getTextRanges() {
@@ -49,12 +49,6 @@ public class DiagnosticWithParameters3<E extends PsiElement, A, B, C> extends Ab
return (DiagnosticFactory3<E, A, B, C>)super.getFactory();
}
@NotNull
@Override
public String getMessage() {
return getFactory().makeMessage(a, b, c);
}
@Override
@NotNull
public List<TextRange> getTextRanges() {
@@ -18,13 +18,9 @@ package org.jetbrains.jet.lang.diagnostics;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jet.lang.descriptors.DeclarationDescriptor;
import org.jetbrains.jet.lang.psi.JetFile;
import org.jetbrains.jet.lang.psi.JetNamedDeclaration;
import org.jetbrains.jet.lang.resolve.BindingContext;
import org.jetbrains.jet.lang.resolve.BindingContextUtils;
import java.util.List;
@@ -48,12 +44,6 @@ public interface RedeclarationDiagnostic extends Diagnostic {
return (RedeclarationDiagnosticFactory)super.getFactory();
}
@NotNull
@Override
public String getMessage() {
return getFactory().makeMessage(name);
}
@Override
public String getName() {
return name;
@@ -38,12 +38,6 @@ public class SimpleDiagnostic<E extends PsiElement> extends AbstractDiagnostic<E
return (SimpleDiagnosticFactory<E>)super.getFactory();
}
@NotNull
@Override
public String getMessage() {
return getFactory().getMessage();
}
@Override
@NotNull
public List<TextRange> getTextRanges() {
@@ -41,12 +41,6 @@ public class UnresolvedReferenceDiagnostic extends AbstractDiagnostic<JetReferen
super(referenceExpression, factory, ERROR);
}
@NotNull
@Override
public String getMessage() {
return getFactory().getMessage() + ": " + getPsiElement().getText();
}
@NotNull
@Override
public List<TextRange> getTextRanges() {