aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Shapiro <shapiro.rd@gmail.com>2018-01-16 12:06:58 -0500
committerGitHub <noreply@github.com>2018-01-16 12:06:58 -0500
commitfadc3e2368d36141db4a67e7a7dea2ba64a999c8 (patch)
tree194839a9e2700dbfe33ad33d8bafb5fbbacb1b3d
parenta89928c001b2c98db356d5d226bd45dd1e369c64 (diff)
downloadjimfs-fadc3e2368d36141db4a67e7a7dea2ba64a999c8.tar.gz
Suppress errors for streams that contain closeable resources (#63)
RELNOTES=N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181787747
-rw-r--r--jimfs/src/test/java/com/google/common/jimfs/JimfsUnixLikeFileSystemTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/jimfs/src/test/java/com/google/common/jimfs/JimfsUnixLikeFileSystemTest.java b/jimfs/src/test/java/com/google/common/jimfs/JimfsUnixLikeFileSystemTest.java
index d42cada..8ab4e39 100644
--- a/jimfs/src/test/java/com/google/common/jimfs/JimfsUnixLikeFileSystemTest.java
+++ b/jimfs/src/test/java/com/google/common/jimfs/JimfsUnixLikeFileSystemTest.java
@@ -2048,6 +2048,7 @@ public class JimfsUnixLikeFileSystemTest extends AbstractJimfsIntegrationTest {
}
}
+ @SuppressWarnings("StreamResourceLeak")
@Test
public void testClosedSecureDirectoryStream() throws IOException {
Files.createDirectory(path("/foo"));
@@ -2105,6 +2106,7 @@ public class JimfsUnixLikeFileSystemTest extends AbstractJimfsIntegrationTest {
}
}
+ @SuppressWarnings("StreamResourceLeak")
@Test
public void testClosedSecureDirectoryStreamAttributeViewAndIterator() throws IOException {
Files.createDirectory(path("/foo"));