示例#1
0
文件: Output.java 项目: pgoelz/xfp
 public synchronized void warnOnce(String s, Parameter p1) {
   if (!oneTimeWarnings.contains(s)) {
     oneTimeWarnings.add(s);
     println("ONCE-ONLY WARNING:\n" + s, ALL_LOGS, true);
     if (p1 != null) println("PARAMETER: " + p1, ALL_LOGS, true);
   }
 }
示例#2
0
文件: Output.java 项目: pgoelz/xfp
 /** Posts a warning one time only. */
 public synchronized void warnOnce(String s) {
   if (!oneTimeWarnings.contains(s)) {
     oneTimeWarnings.add(s);
     println("ONCE-ONLY WARNING:\n" + s, ALL_LOGS, true);
   }
 }