Skip to content

Commit fa76c15

Browse files
committedAug 28, 2018
#925 fix error with commons-lang3
1 parent 8bdbbff commit fa76c15

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
 

‎pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@
128128
<artifactId>antlr4-runtime</artifactId>
129129
<version>4.7.1</version>
130130
</dependency>
131+
<dependency>
132+
<groupId>org.apache.commons</groupId>
133+
<artifactId>commons-lang3</artifactId>
134+
<version>3.7</version>
135+
</dependency>
131136
</dependencies>
132137
</dependencyManagement>
133138
<build>

‎qulice-maven-plugin/src/it/pmd-violations/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
<version>1.0-SNAPSHOT</version>
3838
<packaging>jar</packaging>
3939
<name>pmd-violations</name>
40+
<properties>
41+
<maven.compiler.source>8</maven.compiler.source>
42+
<maven.compiler.target>8</maven.compiler.target>
43+
</properties>
4044
<build>
4145
<plugins>
4246
<plugin>

‎qulice-maven-plugin/src/it/pmd-violations/src/main/java/com/qulice/foo/Violations.java

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
*/
3030
package com.qulice.foo;
3131

32+
import java.util.stream.Collectors;
33+
import java.util.stream.Stream;
34+
3235
/**
3336
* Sample class.
3437
* @since 1.0
@@ -100,6 +103,13 @@ private static final class Foo {
100103
public String toString() {
101104
return this.name;
102105
}
106+
107+
public String something() {
108+
return Stream.of(" one", " two")
109+
.map(str -> str.trim())
110+
.collect(Collectors.joining());
111+
112+
}
103113
}
104114
}
105115

0 commit comments

Comments
 (0)
Please sign in to comment.