diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-09-22 03:27:03 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-09-22 13:11:58 +0400 |
commit | d599f9513e119de581b778d49f5e92c1e6b0008f (patch) | |
tree | 9ba7a1c1e9aadf7b0567c5d94c1e8e9f9fc04ac8 /plugins/sonar-squid-java-plugin/test-resources | |
parent | a02d4600fe04f3a70e2d9cf0fa42b9b9ce5378f3 (diff) | |
download | sonarqube-d599f9513e119de581b778d49f5e92c1e6b0008f.tar.gz sonarqube-d599f9513e119de581b778d49f5e92c1e6b0008f.zip |
SONAR-1836 Add tests against bugs in Checkstyle
Those tests will allow us to be notified during update of Checkstyle
that bugs were fixed :
* escaped unicode (exists in Checkstyle 5.1 - 5.4)
* line comment at the end of file (exists in Checkstyle 5.2 - 5.4)
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources')
2 files changed, 12 insertions, 0 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java new file mode 100644 index 00000000000..a9b876911a4 --- /dev/null +++ b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java @@ -0,0 +1,3 @@ +public class LineCommentAtTheEndOfFile +{ +} // EOF on this line
\ No newline at end of file diff --git a/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java new file mode 100644 index 00000000000..38ea3a84081 --- /dev/null +++ b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java @@ -0,0 +1,9 @@ +public class UnicodeEscape { + + public void foo() { + char a = '\u005Cr'; + char b = '\uuuu005Cr'; + char c = '\u005c\u005c'; + } + +} |