mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
8573b84d02
commit
28777b69b7
@ -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;
|
||||
}
|
||||
|
@ -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 -->
|
||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user