mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
'v3.6.3.3'
This commit is contained in:
@@ -19,7 +19,7 @@ package gplx.core.criterias; import gplx.*; import gplx.core.*;
|
||||
public class Criteria_eq implements Criteria {
|
||||
@gplx.Internal protected Criteria_eq(boolean neg, Object val) {this.neg = neg; this.val = val;}
|
||||
public byte Tid() {return Criteria_.Tid_eq;}
|
||||
public boolean Neg() {return neg;} private final boolean neg;
|
||||
public boolean Neg() {return neg;} private final boolean neg;
|
||||
public Object Val() {return val;} private Object val;
|
||||
public void Val_as_obj_(Object v) {this.val = v;}
|
||||
public void Val_from_args(Hash_adp args) {throw Err_.new_unimplemented();}
|
||||
|
||||
@@ -38,7 +38,8 @@ public abstract class Hash_adp_base implements Hash_adp {
|
||||
return Fetch_base(key);
|
||||
}
|
||||
|
||||
private final java.util.Hashtable hash = new java.util.Hashtable();
|
||||
// private final java.util.HashMap<Object, Object> hash = new java.util.HashMap<Object, Object>();
|
||||
private final java.util.Hashtable hash = new java.util.Hashtable();
|
||||
@gplx.Virtual public int Count() {return hash.size();}
|
||||
@gplx.Virtual public void Clear() {hash.clear();}
|
||||
@gplx.Virtual protected void Add_base(Object key, Object val) {hash.put(key, val);}
|
||||
|
||||
@@ -26,8 +26,17 @@ public class Gfo_log__file extends Gfo_log__base {
|
||||
@Override public List_adp Itms() {return itms;} @Override public Gfo_log Itms_(List_adp v) {this.itms = v; return this;} private List_adp itms;
|
||||
@Override public void Exec(byte type, long time, long elapsed, String msg, Object[] args) {
|
||||
if (type == Gfo_log_itm.Type__prog) return;
|
||||
|
||||
// add itm
|
||||
Gfo_log_itm itm = new Gfo_log_itm(type, time, elapsed, msg, args);
|
||||
itms.Add(itm);
|
||||
|
||||
// flush if warning or failure; needed for download central
|
||||
switch (type) {
|
||||
case Gfo_log_itm.Type__note:
|
||||
case Gfo_log_itm.Type__warn:
|
||||
case Gfo_log_itm.Type__fail: this.Flush(); break;
|
||||
}
|
||||
}
|
||||
@Override public void Flush() {
|
||||
int len = itms.Len();
|
||||
|
||||
Reference in New Issue
Block a user