We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63688c9 commit 0064f14Copy full SHA for 0064f14
fixtures/java_lib/main/java/Library.java
@@ -2,7 +2,14 @@
2
* This Java source file was generated by the Gradle 'init' task.
3
*/
4
// FIXME
5
+
6
+import java.util.List;
7
+import java.util.Set;
8
9
public class Library {
10
+ List myList; // Noncompliant
11
+ Set mySet; // Noncompliant
12
13
public static void main(String[] args) {
14
}
15
@@ -13,4 +20,17 @@ public void foo() {
20
21
22
23
24
+ public boolean bar() {
25
+ String multi = """
26
+ this is a single line string""";
27
+ String textBlock = """
28
+ \"\"\" this \nis
29
+ text block!
30
+ !!!!
31
+ """;
32
+ Pattern p = Pattern.compile(".*|a");
33
+ Matcher m = p.matcher(multi);
34
+ return m.matches();
35
+ }
16
36
0 commit comments