3.5 安全发布3.5.1 不正确的发布 public class Holder { private int n;public Holder(int n){ this.n=n;} public void assertSanity(){ if(n!n)throw new AssertionError("This statement is false.");} } 由于没有使用同步来确保Holder...
java并发编程实战*5.3.1桌面搜索*爬虫查找所有文件并放入队列*Created by mrf on 2016/3/7.*/public class FileCrawler implements Runnable { private final BlockingQueue<File>fileQueue;private final FileFilter fileFilter;private ...