else if (fieldClass == long.class)
cachedField = new AsmLongField();
else if (fieldClass == float.class)
cachedField = new AsmFloatField();
else if (fieldClass == double.class)
cachedField = new AsmDoubleField();
else {
cachedField = new AsmObjectField(ser);
}
} else if (fieldClass == String.class
&& (!ser.kryo.getReferences() || !ser.kryo.getReferenceResolver().useReferences(String.class))) {