Skip to content

Commit 9d8b659

Browse files
committed
house keeping
1 parent a0a3ce9 commit 9d8b659

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

jmolecules-bytebuddy/src/main/java/org/jmolecules/bytebuddy/VaadooImplementor.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)