ClassMetadata meta = Weaver.scan(cr);
meta.type = Type.getObjectType(cr.getClassName());
ClassWriter cw = null;
if (meta.annotation != WeaverType.NONE) {
ComponentTypeTransmuter weaver = new ComponentTypeTransmuter(null, cr, meta);
weaver.call();
cw = weaver.getClassWriter();
} else if (meta.sysetemOptimizable != OptimizationType.NOT_OPTIMIZABLE) {
EsOptimizationTransmuter weaver = new EsOptimizationTransmuter(null, cr, meta);
weaver.call();
cw = weaver.getClassWriter();
}
assertEquals("", ClassUtil.verifyClass(cw));
classStream.close();