fix testdata; restore again ExpectedHighlightingData

This commit is contained in:
Anna Kozlova
2014-05-26 12:51:34 +04:00
parent f587cf6706
commit a6d22defa3
2 changed files with 4 additions and 5 deletions
@@ -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(), "\"", "&quot;") + "\">");
sb.insert(0, "<" + severity + " descr=\"" + info.getDescription() + "\">");
endPos = info.startOffset;
i++;
@@ -2,7 +2,7 @@ package com.siyeh.igtest.style.simplifiable_annotation;
public class SimplifiableAnnotation {
<warning descr="Annotation '@ SuppressWarnings(value = &quot;blabla&quot;)' 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({&quot;the value&quot;})' can be simplified">@ValueAnnotation({"the value"})</warning>
<warning descr="Annotation '@ArrayAnnotation(array = {&quot;first&quot;})' 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>