File tree 3 files changed +19
-0
lines changed
qulice-maven-plugin/src/it/pmd-violations
src/main/java/com/qulice/foo
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 128
128
<artifactId >antlr4-runtime</artifactId >
129
129
<version >4.7.1</version >
130
130
</dependency >
131
+ <dependency >
132
+ <groupId >org.apache.commons</groupId >
133
+ <artifactId >commons-lang3</artifactId >
134
+ <version >3.7</version >
135
+ </dependency >
131
136
</dependencies >
132
137
</dependencyManagement >
133
138
<build >
Original file line number Diff line number Diff line change 37
37
<version >1.0-SNAPSHOT</version >
38
38
<packaging >jar</packaging >
39
39
<name >pmd-violations</name >
40
+ <properties >
41
+ <maven .compiler.source>8</maven .compiler.source>
42
+ <maven .compiler.target>8</maven .compiler.target>
43
+ </properties >
40
44
<build >
41
45
<plugins >
42
46
<plugin >
Original file line number Diff line number Diff line change 29
29
*/
30
30
package com .qulice .foo ;
31
31
32
+ import java .util .stream .Collectors ;
33
+ import java .util .stream .Stream ;
34
+
32
35
/**
33
36
* Sample class.
34
37
* @since 1.0
@@ -100,6 +103,13 @@ private static final class Foo {
100
103
public String toString () {
101
104
return this .name ;
102
105
}
106
+
107
+ public String something () {
108
+ return Stream .of (" one" , " two" )
109
+ .map (str -> str .trim ())
110
+ .collect (Collectors .joining ());
111
+
112
+ }
103
113
}
104
114
}
105
115
You can’t perform that action at this time.
0 commit comments