cf.setTarget(System.getProperty("java.specification.version"));
} catch (Exception e) {
}
cf.addInterface(Comparator.class);
cf.addInterface(Serializable.class);
// Define fields to hold usage comparator and collator.
TypeDesc comparatorType = TypeDesc.forClass(Comparator.class);
TypeDesc comparatorArrayType = comparatorType.toArrayType();
cf.addField(Modifiers.PRIVATE,