Debian Codegraph @

debian/patches/guava-compatibility.patch

raw symbols SCIP
1 Description: Replaced the deprecated class LimitInputStream removed in Guava 15.0
2 with ByteStreams.limit() introduced in Guava 14.0. This was fixed upstream
3 in the v20130411 release.
4 Author: Emmanuel Bourg <[email protected]>
5 Forwarded: not-needed
6 --- a/src/com/google/javascript/jscomp/CommandLineRunner.java
7 +++ b/src/com/google/javascript/jscomp/CommandLineRunner.java
8 @@ -22,7 +22,7 @@
9 import com.google.common.collect.Maps;
10 import com.google.common.collect.Sets;
11 import com.google.common.io.Files;
12 -import com.google.common.io.LimitInputStream;
13 +import com.google.common.io.ByteStreams;
14
15 import org.kohsuke.args4j.Argument;
16 import org.kohsuke.args4j.CmdLineException;
17 @@ -931,7 +931,7 @@
18 Map<String, SourceFile> externsMap = Maps.newHashMap();
19 for (ZipEntry entry = null; (entry = zip.getNextEntry()) != null; ) {
20 BufferedInputStream entryStream = new BufferedInputStream(
21 - new LimitInputStream(zip, entry.getSize()));
22 + ByteStreams.limit(zip, entry.getSize()));
23 externsMap.put(entry.getName(),
24 SourceFile.fromInputStream(
25 // Give the files an odd prefix, so that they do not conflict