Skip to content

Commit

Permalink
Update error-prone and fix missing fail warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Sep 13, 2019
1 parent 80174ec commit faef275
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<version>3.5</version>
<configuration>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<source>${java.version}</source>
<target>${java.version}</target>
<showWarnings>true</showWarnings>
<compilerArgs>
<arg>-Xep:MissingFail:ERROR</arg>
</compilerArgs>
</configuration>
<dependencies>
<dependency>
Expand All @@ -89,7 +93,7 @@
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.0.15</version>
<version>2.3.3</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.reactivestreams.Subscription;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

public final class ReplayingShareFlowableTest {
@Test public void noInitialValue() {
Expand Down Expand Up @@ -105,6 +106,7 @@ public final class ReplayingShareFlowableTest {
};
try {
flowable.subscribe(brokenAction);
fail();
} catch (OutOfMemoryError e) {
assertEquals("broken!", e.getMessage());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

public final class ReplayingShareObservableTest {
@Test public void noInitialValue() {
Expand Down Expand Up @@ -104,6 +105,7 @@ public final class ReplayingShareObservableTest {
};
try {
observable.subscribe(brokenAction);
fail();
} catch (OutOfMemoryError e) {
assertEquals("broken!", e.getMessage());
}
Expand Down

0 comments on commit faef275

Please sign in to comment.