This commit is contained in:
Looly 2023-02-28 21:39:27 +08:00
parent 8573b84d02
commit 28777b69b7
3 changed files with 12 additions and 1 deletions

View File

@ -179,6 +179,7 @@ public class LambdaUtilTest {
Assert.assertTrue(bean.isFlag());
}
@SuppressWarnings("unchecked")
@Test
public void lambdaTest() {
final Bean bean = new Bean();
@ -203,6 +204,7 @@ public class LambdaUtilTest {
Long pid;
boolean flag;
@SuppressWarnings("SameParameterValue")
private Tuple uniqueKey(final String name) {
return new Tuple(id, pid, flag, name);
}
@ -211,14 +213,17 @@ public class LambdaUtilTest {
return new Tuple(name, length, score);
}
@SuppressWarnings("unused")
public static Function<Bean, Long> idGetter() {
return Bean::getId;
}
@SuppressWarnings("unused")
public Function<Bean, Long> idGet() {
return bean -> bean.id;
}
@SuppressWarnings("unused")
public Function<Bean, Long> idGetting() {
return Bean::getId;
}

View File

@ -39,6 +39,12 @@
<artifactId>poi-ooxml</artifactId>
<version>${poi.version}</version>
<scope>compile</scope>
<exclusions>
<exclusion>
<artifactId>log4j-api</artifactId>
<groupId>org.apache.logging.log4j</groupId>
</exclusion>
</exclusions>
<optional>true</optional>
</dependency>
<!-- OFD -->

View File

@ -108,7 +108,7 @@
<Built-By>${user.name}</Built-By>
<Build-Jdk>${java.version}</Build-Jdk>
<Build-Timestamp>${maven.build.timestamp}</Build-Timestamp>
<Automatic-Module-Name>${project.artifactId}</Automatic-Module-Name>
<Automatic-Module-Name>${project.groupId}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>