File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
inject-generator/src/main/java/io/avaje/inject/generator Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class MethodReader {
53
53
this .isVoid = Util .isVoid (returnTypeRaw );
54
54
this .initMethod = (bean == null ) ? null : bean .initMethod ();
55
55
this .destroyMethod = (bean == null ) ? null : bean .destroyMethod ();
56
- this .name = (named == null ) ? null : named .value ();
56
+ this .name = (named == null ) ? null : named .value (). toLowerCase () ;
57
57
TypeElement returnElement = context .element (returnTypeRaw );
58
58
if (returnElement == null ) {
59
59
this .typeReader = null ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ void process() {
41
41
Qualifier qualifier = annotationType .asElement ().getAnnotation (Qualifier .class );
42
42
String annType = annotationType .toString ();
43
43
if (qualifier != null ) {
44
- qualifierName = Util .shortName (annType );
44
+ qualifierName = Util .shortName (annType ). toLowerCase () ;
45
45
} else if (annType .indexOf ('.' ) == -1 ) {
46
46
context .logWarn ("skip when no package on annotation " + annType );
47
47
} else {
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ void process() {
41
41
String baseName = baseType .getSimpleName ().toString ();
42
42
String superName = superElement .getSimpleName ().toString ();
43
43
if (baseName .endsWith (superName )) {
44
- qualifierName = baseName .substring (0 , baseName .length () - superName .length ());
44
+ qualifierName = baseName .substring (0 , baseName .length () - superName .length ()). toLowerCase () ;
45
45
}
46
46
addSuperType (superElement );
47
47
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void process() {
60
60
String getName () {
61
61
Named named = beanType .getAnnotation (Named .class );
62
62
if (named != null ) {
63
- return named .value ();
63
+ return named .value (). toLowerCase () ;
64
64
}
65
65
if (annotationReader .hasQualifierName ()) {
66
66
return annotationReader .getQualifierName ();
You can’t perform that action at this time.
0 commit comments