diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/PsiElementOnlyDiagnosticFactory2.java b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/DiagnosticFactoryWithPsiElement2.java
similarity index 77%
rename from compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/PsiElementOnlyDiagnosticFactory2.java
rename to compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/DiagnosticFactoryWithPsiElement2.java
index 15afd5f517b..23a459ab801 100644
--- a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/PsiElementOnlyDiagnosticFactory2.java
+++ b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/DiagnosticFactoryWithPsiElement2.java
@@ -6,13 +6,13 @@ import org.jetbrains.annotations.NotNull;
/**
* @author abreslav
*/
-public class PsiElementOnlyDiagnosticFactory2 extends DiagnosticFactoryWithMessageFormat {
+public class DiagnosticFactoryWithPsiElement2 extends DiagnosticFactoryWithMessageFormat {
- public static PsiElementOnlyDiagnosticFactory2 create(Severity severity, String message) {
- return new PsiElementOnlyDiagnosticFactory2(severity, message);
+ public static DiagnosticFactoryWithPsiElement2 create(Severity severity, String message) {
+ return new DiagnosticFactoryWithPsiElement2(severity, message);
}
- public PsiElementOnlyDiagnosticFactory2(Severity severity, String message) {
+ public DiagnosticFactoryWithPsiElement2(Severity severity, String message) {
super(severity, message);
}
diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/Errors.java b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/Errors.java
index ff28ecd1f33..f5c3429414c 100644
--- a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/Errors.java
+++ b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/Errors.java
@@ -21,7 +21,7 @@ public interface Errors {
UnresolvedReferenceDiagnosticFactory UNRESOLVED_REFERENCE = UnresolvedReferenceDiagnosticFactory.INSTANCE;
RedeclarationDiagnosticFactory REDECLARATION = RedeclarationDiagnosticFactory.INSTANCE;
- PsiElementOnlyDiagnosticFactory2 TYPE_MISMATCH = PsiElementOnlyDiagnosticFactory2.create(ERROR, "Type mismatch: inferred type is {1} but {0} was expected");
+ DiagnosticFactoryWithPsiElement2 TYPE_MISMATCH = DiagnosticFactoryWithPsiElement2.create(ERROR, "Type mismatch: inferred type is {1} but {0} was expected");
SimpleDiagnosticFactory SAFE_CALLS_ARE_NOT_ALLOWED_ON_NAMESPACES = SimpleDiagnosticFactory.create(ERROR, "Safe calls are not allowed on namespaces");
SimpleDiagnosticFactory TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM = SimpleDiagnosticFactory.create(ERROR, "Type checking has run into a recursive problem"); // TODO: message
diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/ParameterizedDiagnosticFactory2.java b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/ParameterizedDiagnosticFactory2.java
index cae1d16b420..c30a9355c6b 100644
--- a/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/ParameterizedDiagnosticFactory2.java
+++ b/compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/ParameterizedDiagnosticFactory2.java
@@ -8,7 +8,7 @@ import org.jetbrains.annotations.NotNull;
/**
* @author abreslav
*/
-public class ParameterizedDiagnosticFactory2 extends PsiElementOnlyDiagnosticFactory2 {
+public class ParameterizedDiagnosticFactory2 extends DiagnosticFactoryWithPsiElement2 {
public static ParameterizedDiagnosticFactory2 create(Severity severity, String messageStub) {
return new ParameterizedDiagnosticFactory2(severity, messageStub);
}