mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
introduce constant from literal: ignore null anchors for non-physical elements (IDEA-118166)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
@Model(usages = @Usage("${<selection>__REQUEST_PARAMETERS</selection>}"))
|
||||
public class SomeClass {
|
||||
|
||||
public String getModelName() {
|
||||
return "__REQUEST_PARAMETERS";
|
||||
}
|
||||
}
|
||||
|
||||
@interface Model {
|
||||
Usage usages();
|
||||
}
|
||||
@interface Usage {
|
||||
String value();
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
@Model(usages = @Usage("${" + SomeClass.xxx + "}"))
|
||||
public class SomeClass {
|
||||
|
||||
public static final String xxx = "__REQUEST_PARAMETERS";
|
||||
|
||||
public String getModelName() {
|
||||
return xxx;
|
||||
}
|
||||
}
|
||||
|
||||
@interface Model {
|
||||
Usage usages();
|
||||
}
|
||||
@interface Usage {
|
||||
String value();
|
||||
}
|
||||
Reference in New Issue
Block a user