提交 d83f81ad authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 ae6f7b84
......@@ -23,11 +23,11 @@ public class StringUtils {
private static SoftReference<String[]> softCache =
new SoftReference<String[]>(null);
private static long softCacheCreated;
private static final char[] HEX = "0123456789abcdef".toCharArray();
private static final int[] HEX_DECODE = new int['f' + 1];
// memory used by this cache:
// memory used by this cache:
// 4 * 1024 * 2 (strings per pair) * 64 * 2 (bytes per char) = 0.5 MB
private static final int TO_UPPER_CACHE_LENGTH = 2 * 1024;
private static final int TO_UPPER_CACHE_MAX_ENTRY_LENGTH = 64;
......
......@@ -18,7 +18,7 @@ public abstract class Task implements Runnable {
/**
* A flag indicating the get() method has been called.
*/
protected volatile boolean stop;
public volatile boolean stop;
/**
* The result, if any.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论