Skip to content

Commit 044705a

Browse files
committed
NonNls restored for Language
1 parent 56895f6 commit 044705a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

common/src/main/java/org/intellij/lang/annotations/Language.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.intellij.lang.annotations;
1818

19+
import org.jetbrains.annotations.NonNls;
20+
1921
import java.lang.annotation.Retention;
2022
import java.lang.annotation.RetentionPolicy;
2123
import java.lang.annotation.Target;
@@ -49,18 +51,18 @@
4951
* <li>"RegExp" - Regular expression supported by Java {@link java.util.regex.Pattern}</li>
5052
* </ul>
5153
*/
52-
String value();
54+
@NonNls String value();
5355

5456
/**
5557
* A constant prefix that is assumed to be implicitly added before the literal.
5658
* This helps to apply proper highlighting when the program element represents only a part of the valid program.
5759
* E.g. if the method parameter accepts a Java method, it could be annotated as
5860
* {@code void methodProcessor(@Language(value="JAVA", prefix="class X {", suffix="}")}.
5961
*/
60-
String prefix() default "";
62+
@NonNls String prefix() default "";
6163

6264
/**
6365
* A constant suffix that is assumed to be implicitly added after the literal. See {@link #prefix()} for details.
6466
*/
65-
String suffix() default "";
67+
@NonNls String suffix() default "";
6668
}

0 commit comments

Comments
 (0)