langtools/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java
changeset 22165 ec53c8946fc2
parent 22163 3651128c74eb
child 23115 97722ad6c874
equal deleted inserted replaced
22164:c8eb1ae29c58 22165:ec53c8946fc2
   576         }
   576         }
   577         return log.nerrors;
   577         return log.nerrors;
   578     }
   578     }
   579 
   579 
   580     protected final <T> Queue<T> stopIfError(CompileState cs, Queue<T> queue) {
   580     protected final <T> Queue<T> stopIfError(CompileState cs, Queue<T> queue) {
   581         return shouldStop(cs) ? new ListBuffer<>() : queue;
   581         return shouldStop(cs) ? new ListBuffer<T>() : queue;
   582     }
   582     }
   583 
   583 
   584     protected final <T> List<T> stopIfError(CompileState cs, List<T> list) {
   584     protected final <T> List<T> stopIfError(CompileState cs, List<T> list) {
   585         return shouldStop(cs) ? List.<T>nil() : list;
   585         return shouldStop(cs) ? List.<T>nil() : list;
   586     }
   586     }