summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/style
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/InspectionGadgets/test/com/siyeh/igtest/style')
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/ConfusingOctalEscape.java4
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/expected.xml7
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test/Bar.java5
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test1/Bar.java18
-rw-r--r--plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test1/Test1.java25
5 files changed, 59 insertions, 0 deletions
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/ConfusingOctalEscape.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/ConfusingOctalEscape.java
index 7ec51c717617..d7c858e0dadb 100644
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/ConfusingOctalEscape.java
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/ConfusingOctalEscape.java
@@ -22,4 +22,8 @@ public class ConfusingOctalEscape {
public String path() {
return "X:\\\\1234567890\\\\1234567890\\\\com\\\\company\\\\system\\\\subsystem";
}
+
+ String twoDigitOctalEscape() {
+ return "\444\344";
+ }
} \ No newline at end of file
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/expected.xml b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/expected.xml
index 3dcd031e691d..274b96c7c7cb 100644
--- a/plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/expected.xml
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/confusing_octal_escape/expected.xml
@@ -27,4 +27,11 @@
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Confusing octal escape sequence</problem_class>
<description>Octal escape sequence &lt;code&gt;\01&lt;/code&gt; immediately followed by digit #loc</description>
</problem>
+
+ <problem>
+ <file>ConfusingOctalEscape.java</file>
+ <line>27</line>
+ <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Confusing octal escape sequence</problem_class>
+ <description>Octal escape sequence &lt;code&gt;\44&lt;/code&gt; immediately followed by digit #loc</description>
+ </problem>
</problems> \ No newline at end of file
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test/Bar.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test/Bar.java
new file mode 100644
index 000000000000..18ca02f0fd30
--- /dev/null
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test/Bar.java
@@ -0,0 +1,5 @@
+package com.siyeh.igtest.style.unnecessary_fully_qualified_name.test;
+
+public class Bar {
+ public static void baz() {}
+}
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test1/Bar.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test1/Bar.java
new file mode 100644
index 000000000000..c22fac933e9e
--- /dev/null
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test1/Bar.java
@@ -0,0 +1,18 @@
+/*
+ * Copyright 2000-2013 JetBrains s.r.o.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.siyeh.igtest.style.unnecessary_fully_qualified_name.test1;
+
+public class Bar<T> {} \ No newline at end of file
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test1/Test1.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test1/Test1.java
new file mode 100644
index 000000000000..7b005fc5c938
--- /dev/null
+++ b/plugins/InspectionGadgets/test/com/siyeh/igtest/style/unnecessary_fully_qualified_name/test1/Test1.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2000-2013 JetBrains s.r.o.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.siyeh.igtest.style.unnecessary_fully_qualified_name.test1;
+
+
+class Test1 {
+ {
+ test.Bar.baz();
+ Bar<String> bar = null;
+ Bar bar1 = null;
+ }
+} \ No newline at end of file