mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix testdata; restore again ExpectedHighlightingData
This commit is contained in:
@@ -278,7 +278,6 @@ public class ExpectedHighlightingData {
|
||||
}
|
||||
if (descr != null) {
|
||||
descr = descr.replaceAll("\\\\\\\\\"", "\""); // replace: \\" to ", doesn't check symbol before sequence \\"
|
||||
descr = StringUtil.replace(descr, """, "\"");
|
||||
}
|
||||
|
||||
HighlightInfoType type = WHATEVER;
|
||||
@@ -564,7 +563,7 @@ public class ExpectedHighlightingData {
|
||||
endPos = result.second;
|
||||
}
|
||||
sb.insert(0, text.substring(info.startOffset, endPos));
|
||||
sb.insert(0, "<" + severity + " descr=\"" + StringUtil.replace(info.getDescription(), "\"", """) + "\">");
|
||||
sb.insert(0, "<" + severity + " descr=\"" + info.getDescription() + "\">");
|
||||
|
||||
endPos = info.startOffset;
|
||||
i++;
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@ package com.siyeh.igtest.style.simplifiable_annotation;
|
||||
|
||||
public class SimplifiableAnnotation {
|
||||
|
||||
<warning descr="Annotation '@ SuppressWarnings(value = "blabla")' can be simplified">@ SuppressWarnings(value = "blabla")</warning>
|
||||
<warning descr="Annotation '@ SuppressWarnings(value = \\"blabla\\")' can be simplified">@ SuppressWarnings(value = "blabla")</warning>
|
||||
<warning descr="Annotation '@ Deprecated()' can be simplified">@ Deprecated()</warning>
|
||||
Object foo() {
|
||||
return null;
|
||||
@@ -14,8 +14,8 @@ public class SimplifiableAnnotation {
|
||||
@interface ArrayAnnotation {
|
||||
String[] array();
|
||||
}
|
||||
<warning descr="Annotation '@ValueAnnotation({"the value"})' can be simplified">@ValueAnnotation({"the value"})</warning>
|
||||
<warning descr="Annotation '@ArrayAnnotation(array = {"first"})' can be simplified">@ArrayAnnotation(array = {"first"})</warning>
|
||||
<warning descr="Annotation '@ValueAnnotation({\\"the value\\"})' can be simplified">@ValueAnnotation({"the value"})</warning>
|
||||
<warning descr="Annotation '@ArrayAnnotation(array = {\\"first\\"})' can be simplified">@ArrayAnnotation(array = {"first"})</warning>
|
||||
class MyClass {
|
||||
|
||||
@ <error descr="'value' missing though required">ValueAnnotation</error>
|
||||
|
||||
Reference in New Issue
Block a user