File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
inject-generator/src/main/java/io/avaje/inject/generator Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
class Util {
11
11
12
+ private static final String PROVIDER_PREFIX = "javax.inject.Provider<" ;
13
+
14
+ private static final int PROVIDER_LENGTH = PROVIDER_PREFIX .length ();
15
+
12
16
static boolean isVoid (String type ) {
13
17
return "void" .equalsIgnoreCase (type );
14
18
}
@@ -79,11 +83,11 @@ static UtilType determineType(TypeMirror rawType) {
79
83
}
80
84
81
85
private static boolean isProvider (String rawType ) {
82
- return rawType .startsWith ("javax.inject.Provider<" );
86
+ return rawType .startsWith (PROVIDER_PREFIX );
83
87
}
84
88
85
89
private static String extractProviderType (String rawType ) {
86
- return rawType .substring (22 , rawType .length () - 1 );
90
+ return rawType .substring (PROVIDER_LENGTH , rawType .length () - 1 );
87
91
}
88
92
89
93
/**
You can’t perform that action at this time.
0 commit comments