159160161162163164165166167168
return new GenericTypeComparator<T>(this); } private void checkKryoInitialized() { if (this.kryo == null) { this.kryo = new Kryo(); this.kryo.setAsmEnabled(true); this.kryo.register(this.type); } }
// -------------------------------------------------------------------------------------------- private void checkKryoInitialized() { if (this.kryo == null) { this.kryo = new Kryo(); this.kryo.setAsmEnabled(true); this.kryo.register(type); } }
151152153154155156157158159160
} } private void checkKryoInitialized() { if (this.kryo == null) { this.kryo = new Kryo(); this.kryo.setAsmEnabled(true); this.kryo.register(type); } }
105106107108109110111112113114
} } private void checkKryoInitialized() { if (this.kryo == null) { this.kryo = new Kryo(); this.kryo.setAsmEnabled(true); this.kryo.register(typeClass); } }
525354555657585960
throw new NullPointerException("Type class cannot be null."); } this.type = type; this.typeToInstantiate = typeToInstantiate; kryo = new Kryo(); kryo.setAsmEnabled(true); kryo.register(type); }
114115116117118119120121122123
this.copyInstance.write(target); } private void checkKryoInitialized() { if (this.kryo == null) { this.kryo = new Kryo(); this.kryo.setAsmEnabled(true); this.kryo.register(type); } }
117118119120121122123124125126127
/** * @return the Kryo serializer for the current thread. */ protected Kryo getKryo() { if(this.kryo.get() == null) { Kryo kryo = createKryo(); internalInit(kryo); this.kryo.set(kryo); } return this.kryo.get(); }
3435363738394041
private Kryo _kryo; @BeforeTest protected void beforeTest() { _kryo = new Kryo(); _kryo.register( Interval.class, new JodaIntervalSerializer() ); }
3536373839404142
private Kryo _kryo; @BeforeTest protected void beforeTest() { _kryo = new Kryo(); _kryo.register( DateTime.class, new JodaDateTimeSerializer() ); }