@@ -116,7 +116,7 @@ public static Try<Class<?>> tryToLoadClass(String name, ClassLoader classLoader)
116
116
}
117
117
118
118
/**
119
- * Tries to get the {@linkplain Resource resources} for the supplied classpath
119
+ * Try to get the {@linkplain Resource resources} for the supplied classpath
120
120
* resource name.
121
121
*
122
122
* <p>The name of a <em>classpath resource</em> must follow the semantics
@@ -130,15 +130,16 @@ public static Try<Class<?>> tryToLoadClass(String name, ClassLoader classLoader)
130
130
* @return a successful {@code Try} containing the loaded resources or a failed
131
131
* {@code Try} containing the exception if no such resources could be loaded;
132
132
* never {@code null}
133
- * @since 1.11
133
+ * @since 1.12
134
+ * @see #tryToGetResources(String, ClassLoader)
134
135
*/
135
136
@ API (status = EXPERIMENTAL , since = "1.12" )
136
137
public static Try <Set <Resource >> tryToGetResources (String classpathResourceName ) {
137
138
return ReflectionUtils .tryToGetResources (classpathResourceName );
138
139
}
139
140
140
141
/**
141
- * Tries to load the {@linkplain Resource resources} for the supplied classpath
142
+ * Try to load the {@linkplain Resource resources} for the supplied classpath
142
143
* resource name, using the supplied {@link ClassLoader}.
143
144
*
144
145
* <p>The name of a <em>classpath resource</em> must follow the semantics
@@ -153,7 +154,8 @@ public static Try<Set<Resource>> tryToGetResources(String classpathResourceName)
153
154
* @return a successful {@code Try} containing the loaded resources or a failed
154
155
* {@code Try} containing the exception if no such resources could be loaded;
155
156
* never {@code null}
156
- * @since 1.11
157
+ * @since 1.12
158
+ * @see #tryToGetResources(String)
157
159
*/
158
160
@ API (status = EXPERIMENTAL , since = "1.12" )
159
161
public static Try <Set <Resource >> tryToGetResources (String classpathResourceName , ClassLoader classLoader ) {
@@ -201,7 +203,6 @@ public static List<Class<?>> findAllClassesInClasspathRoot(URI root, Predicate<C
201
203
*/
202
204
@ API (status = EXPERIMENTAL , since = "1.11" )
203
205
public static List <Resource > findAllResourcesInClasspathRoot (URI root , Predicate <Resource > resourceFilter ) {
204
-
205
206
return ReflectionUtils .findAllResourcesInClasspathRoot (root , resourceFilter );
206
207
}
207
208
@@ -248,7 +249,6 @@ public static Stream<Class<?>> streamAllClassesInClasspathRoot(URI root, Predica
248
249
*/
249
250
@ API (status = EXPERIMENTAL , since = "1.11" )
250
251
public static Stream <Resource > streamAllResourcesInClasspathRoot (URI root , Predicate <Resource > resourceFilter ) {
251
-
252
252
return ReflectionUtils .streamAllResourcesInClasspathRoot (root , resourceFilter );
253
253
}
254
254
@@ -296,7 +296,6 @@ public static List<Class<?>> findAllClassesInPackage(String basePackageName, Pre
296
296
*/
297
297
@ API (status = EXPERIMENTAL , since = "1.11" )
298
298
public static List <Resource > findAllResourcesInPackage (String basePackageName , Predicate <Resource > resourceFilter ) {
299
-
300
299
return ReflectionUtils .findAllResourcesInPackage (basePackageName , resourceFilter );
301
300
}
302
301
@@ -370,6 +369,7 @@ public static Stream<Resource> streamAllResourcesInPackage(String basePackageNam
370
369
* @see #findAllClassesInClasspathRoot(URI, Predicate, Predicate)
371
370
* @see #findAllClassesInPackage(String, Predicate, Predicate)
372
371
*/
372
+ @ API (status = MAINTAINED , since = "1.1.1" )
373
373
public static List <Class <?>> findAllClassesInModule (String moduleName , Predicate <Class <?>> classFilter ,
374
374
Predicate <String > classNameFilter ) {
375
375
@@ -394,7 +394,6 @@ public static List<Class<?>> findAllClassesInModule(String moduleName, Predicate
394
394
*/
395
395
@ API (status = EXPERIMENTAL , since = "1.11" )
396
396
public static List <Resource > findAllResourcesInModule (String moduleName , Predicate <Resource > resourceFilter ) {
397
-
398
397
return ReflectionUtils .findAllResourcesInModule (moduleName , resourceFilter );
399
398
}
400
399
@@ -441,7 +440,6 @@ public static Stream<Class<?>> streamAllClassesInModule(String moduleName, Predi
441
440
*/
442
441
@ API (status = EXPERIMENTAL , since = "1.11" )
443
442
public static Stream <Resource > streamAllResourcesInModule (String moduleName , Predicate <Resource > resourceFilter ) {
444
-
445
443
return ReflectionUtils .streamAllResourcesInModule (moduleName , resourceFilter );
446
444
}
447
445
@@ -711,10 +709,10 @@ public static Stream<Class<?>> streamNestedClasses(Class<?> clazz, Predicate<Cla
711
709
*
712
710
* @param field the field to make accessible; never {@code null}
713
711
* @return the supplied field
714
- * @since 1.11.1
712
+ * @since 1.12
715
713
* @see Field#setAccessible(boolean)
716
714
*/
717
- @ API (status = EXPERIMENTAL , since = "1.11.1 " )
715
+ @ API (status = EXPERIMENTAL , since = "1.12 " )
718
716
public static Field makeAccessible (Field field ) {
719
717
return ReflectionUtils .makeAccessible (Preconditions .notNull (field , "field must not be null" ));
720
718
}
0 commit comments