File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
jmolecules-bytebuddy/src/main/java/org/jmolecules/bytebuddy Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ private static class ConfigEntry {
8282 private final TypeDescription type ;
8383
8484 public ConfigEntry (Class <? extends Annotation > anno ) {
85- this .anno = TypeDescription . ForLoadedType . of (anno );
86- this .type = this . anno ;
85+ this .anno = type (anno );
86+ this .type = type ( anno ) ;
8787 }
8888
8989 TypeDescription anno () {
@@ -98,8 +98,12 @@ TypeDescription resolveSuperType(TypeDescription actual) {
9898 return actual ;
9999 }
100100
101+ static TypeDescription type (Class <?> clazz ) {
102+ return TypeDescription .ForLoadedType .of (clazz );
103+ }
104+
101105 static List <TypeDescription > descriptors (Class <?>... classses ) {
102- return Stream .of (classses ).map (TypeDescription . ForLoadedType :: of ).collect (toList ());
106+ return Stream .of (classses ).map (ConfigEntry :: type ).collect (toList ());
103107 }
104108
105109 }
You can’t perform that action at this time.
0 commit comments