@@ -73,12 +73,12 @@ public static ImportCandidates load(Class<?> annotation, ClassLoader classLoader
73
73
ClassLoader classLoaderToUse = decideClassloader (classLoader );
74
74
String location = String .format (LOCATION , annotation .getName ());
75
75
Enumeration <URL > urls = findUrlsInClasspath (classLoaderToUse , location );
76
- List <String > autoConfigurations = new ArrayList <>();
76
+ List <String > importCandidates = new ArrayList <>();
77
77
while (urls .hasMoreElements ()) {
78
78
URL url = urls .nextElement ();
79
- autoConfigurations .addAll (readAutoConfigurations (url ));
79
+ importCandidates .addAll (readCandidateConfigurations (url ));
80
80
}
81
- return new ImportCandidates (autoConfigurations );
81
+ return new ImportCandidates (importCandidates );
82
82
}
83
83
84
84
private static ClassLoader decideClassloader (ClassLoader classLoader ) {
@@ -93,28 +93,28 @@ private static Enumeration<URL> findUrlsInClasspath(ClassLoader classLoader, Str
93
93
return classLoader .getResources (location );
94
94
}
95
95
catch (IOException ex ) {
96
- throw new IllegalArgumentException ("Failed to load autoconfigurations from location [" + location + "]" ,
96
+ throw new IllegalArgumentException ("Failed to load configurations from location [" + location + "]" ,
97
97
ex );
98
98
}
99
99
}
100
100
101
- private static List <String > readAutoConfigurations (URL url ) {
101
+ private static List <String > readCandidateConfigurations (URL url ) {
102
102
try (BufferedReader reader = new BufferedReader (
103
103
new InputStreamReader (new UrlResource (url ).getInputStream (), StandardCharsets .UTF_8 ))) {
104
- List <String > autoConfigurations = new ArrayList <>();
104
+ List <String > candidates = new ArrayList <>();
105
105
String line ;
106
106
while ((line = reader .readLine ()) != null ) {
107
107
line = stripComment (line );
108
108
line = line .trim ();
109
109
if (line .isEmpty ()) {
110
110
continue ;
111
111
}
112
- autoConfigurations .add (line );
112
+ candidates .add (line );
113
113
}
114
- return autoConfigurations ;
114
+ return candidates ;
115
115
}
116
116
catch (IOException ex ) {
117
- throw new IllegalArgumentException ("Unable to load autoconfigurations from location [" + url + "]" , ex );
117
+ throw new IllegalArgumentException ("Unable to load configurations from location [" + url + "]" , ex );
118
118
}
119
119
}
120
120
0 commit comments