Skip to content

Commit a174a44

Browse files
committed
now class aspects are included
1 parent 525a3e2 commit a174a44

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ build/
33
.idea/
44
*.iml
55
.gradle
6+
*.prefs
7+
*.class*
8+
*.factorypath
9+
*.project
10+
*.processors
11+
*/bin/
12+
*.editorconfig
13+
*.Module

inject-generator/src/main/java/io/avaje/inject/generator/TypeExtendsInjection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ private void checkForAspect(ExecutableElement methodElement) {
136136
}
137137
int nameIndex = methodNameIndex(methodElement.getSimpleName().toString());
138138
List<AspectPair> aspectPairs = new AspectAnnotationReader(context, baseType, methodElement).read();
139+
aspectPairs.addAll(typeAspects);
140+
139141
if (!aspectPairs.isEmpty()) {
140142
aspectMethods.add(new AspectMethod(nameIndex, aspectPairs, methodElement));
141-
} else if (!typeAspects.isEmpty()) {
142-
aspectMethods.add(new AspectMethod(nameIndex, typeAspects, methodElement));
143143
}
144144
}
145145

0 commit comments

Comments
 (0)