Warning: session_start(): open(/var/lib/php/sessions/sess_eihjce1j9pqh6ob0u438pp1evr, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static Object shallowClone(Object o) {
if (o == null)
return o;
if (o instanceof List)
ret cloneList((List) o);
if (o instanceof Map) {
final Map m = o instanceof TreeMap ? new TreeMap() : new HashMap();
m.putAll((Map) o);
return m;
}
if (o instanceof String || o instanceof Number || o instanceof Boolean)
return o;
if (o instanceof Object[]) {
Object[] l = (Object[]) o;
ret l.clone();
}
// clone an arbitrary custom object
//print("Cloning custom: " + o);
Class c = o.getClass();
final Object clone = nuEmptyObject(c);
copyFields(o, clone);
ret clone;
}