diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/okio/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/okio/files')
-rw-r--r-- | dev-java/okio/files/okio-remove-maven-animal-jre.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/okio/files/okio-remove-maven-animal-jre.patch b/dev-java/okio/files/okio-remove-maven-animal-jre.patch new file mode 100644 index 000000000000..0e5e5d62880e --- /dev/null +++ b/dev-java/okio/files/okio-remove-maven-animal-jre.patch @@ -0,0 +1,44 @@ +--- okio/src/main/java/okio/DeflaterSink.java 2016-08-22 12:01:19.828823222 -0500 ++++ okio/src/main/java/okio/DeflaterSink.java 2016-08-22 12:01:25.039823574 -0500 +@@ -17,7 +17,6 @@ + + import java.io.IOException; + import java.util.zip.Deflater; +-import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement; + + import static okio.Util.checkOffsetAndCount; + +@@ -79,7 +78,6 @@ + } + } + +- @IgnoreJRERequirement + private void deflate(boolean syncFlush) throws IOException { + Buffer buffer = sink.buffer(); + while (true) { +--- okio/src/main/java/okio/Okio.java 2016-08-22 12:03:23.819831591 -0500 ++++ okio/src/main/java/okio/Okio.java 2016-08-22 12:03:34.874832337 -0500 +@@ -30,7 +30,6 @@ + import java.nio.file.Path; + import java.util.logging.Level; + import java.util.logging.Logger; +-import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement; + + import static okio.Util.checkOffsetAndCount; + +@@ -167,7 +166,6 @@ + } + + /** Returns a source that reads from {@code path}. */ +- @IgnoreJRERequirement // Should only be invoked on Java 7+. + public static Source source(Path path, OpenOption... options) throws IOException { + if (path == null) throw new IllegalArgumentException("path == null"); + return source(Files.newInputStream(path, options)); +@@ -186,7 +184,6 @@ + } + + /** Returns a sink that writes to {@code path}. */ +- @IgnoreJRERequirement // Should only be invoked on Java 7+. + public static Sink sink(Path path, OpenOption... options) throws IOException { + if (path == null) throw new IllegalArgumentException("path == null"); + return sink(Files.newOutputStream(path, options)); |