Skip to content
Permalink
Browse files

Merge branch 'findbugs' into spotbugs

 Conflicts:
	build.xml
	pom.xml
  • Loading branch information...
mebigfatguy committed May 7, 2019
2 parents 0b0d9a7 + e0401c0 commit e771d321a0ad941504f7e7d24fc5ec7d7b8327ff
@@ -31,7 +31,7 @@
<property name="javac.debug" value="on" />
<property name="test_reports.dir" value="${target.dir}/reports/test"/>

<property name="sb-contrib.version" value="7.4.5" />
<property name="sb-contrib.version" value="7.4.6-SNAPSHOT" />

<property name="sonatype.dir" value="${user.home}/.sb-contrib-${sb-contrib.version}-sonatype" />

@@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.mebigfatguy.sb-contrib</groupId>
<artifactId>sb-contrib</artifactId>
<version>7.4.5</version>
<version>7.4.6-SNAPSHOT</version>

<!-- TODO: Oss parent is obsolete, define items directly for releasing -->
<parent>
@@ -154,6 +154,14 @@ public void visitCode(Code obj) {
functionalInterfaceInfo.remove(m.getName());
} else {
isParmLambda = numParms == 2;
if (isParmLambda) {
String parmType = SignatureUtils.getParameterSignatures(m.getSignature()).get(1);
if (Values.SIG_JAVA_LANG_VOID.equals(parmType)) {
isParmLambda = false;
functionalInterfaceInfo.remove(getMethod().getName());
return;
}
}
try {
anonState = AnonState.SEEN_NOTHING;
super.visitCode(obj);
@@ -7,6 +7,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@@ -86,6 +87,14 @@ public void fpUseIdentity283() {
return m;
});
}

public static void foo(Consumer<Void> consumer) {
}

public static void bar342(Runnable runnable) {
foo(_unused -> runnable.run());
}


public void put(Function<Map<String, Object>, Map<String, Object>> updateFunction) {
}

0 comments on commit e771d32

Please sign in to comment.
You can’t perform that action at this time.