java-decompiler: minor optimization (no more empty array creation)

This commit is contained in:
Roman Shevchenko
2014-10-06 17:26:24 +02:00
parent 8462998a86
commit bef17b44fc
4 changed files with 10 additions and 6 deletions

View File

@@ -29,6 +29,8 @@ import java.util.zip.ZipFile;
public class InterpreterUtil {
public static final boolean IS_WINDOWS = System.getProperty("os.name", "").startsWith("Windows");
public static final int[] EMPTY_INT_ARRAY = new int[0];
private static final int CHANNEL_WINDOW_SIZE = IS_WINDOWS ? 64 * 1024 * 1024 - (32 * 1024) : 64 * 1024 * 1024; // magic number for Windows
private static final int BUFFER_SIZE = 16 * 1024;