Make warnings in Java code fatal (#28402)

This commit is contained in:
Arnout Engelen 2020-08-04 13:47:38 +02:00 committed by GitHub
parent 58fa1e3604
commit 327e16980d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 480 additions and 213 deletions

View file

@ -91,7 +91,7 @@ public class JavaAPI extends JUnitSuite {
public void mustBeAbleToCreateActorWIthConstructorParams() {
ActorRef ref =
system.actorOf(
Props.create(ActorWithConstructorParams.class, "a", "b", new Integer(17), 18));
Props.create(ActorWithConstructorParams.class, "a", "b", Integer.valueOf(17), 18));
final TestProbe probe = new TestProbe(system);
probe.send(ref, "get");
probe.expectMsg("a-b-17-18");
@ -101,7 +101,7 @@ public class JavaAPI extends JUnitSuite {
public void mustBeAbleToCreateActorWIthBoxedAndUnBoxedConstructorParams() {
ActorRef ref =
system.actorOf(
Props.create(ActorWithConstructorParams.class, "a", "b", 17, new Integer(18)));
Props.create(ActorWithConstructorParams.class, "a", "b", 17, Integer.valueOf(18)));
final TestProbe probe = new TestProbe(system);
probe.send(ref, "get");
probe.expectMsg("a-b-17-18");