Suppress spurious ignored return value errors

Found with Guava 20.
This commit is contained in:
Andrew Gaul 2016-02-04 14:57:16 -08:00
parent d83282ca53
commit be96b9f270
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ public class RegionIdToURIFromAccessForTypeAndVersionTest {
}
}).getInstance(RegionIdToURISupplier.Factory.class);
@SuppressWarnings("CheckReturnValue")
@Test(expectedExceptions = NoSuchElementException.class)
public void testRegionUnmatches() {
Maps.transformValues(factory.createForApiTypeAndVersion("compute", "1.0").get(),

View File

@ -61,6 +61,7 @@ public class ZoneIdToURIFromAccessForTypeAndVersionTest {
}).getInstance(ZoneIdToURISupplier.Factory.class);
@SuppressWarnings("CheckReturnValue")
@Test(expectedExceptions = NoSuchElementException.class)
public void testZoneUnmatches() {
Maps.transformValues(factory.createForApiTypeAndVersion("compute", "1.0").get(),