File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
hibernate-core/src/main/java/org/hibernate/internal/util/collections Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
import java .util .ArrayList ;
10
10
import java .util .Collection ;
11
- import java .util .Collections ;
12
11
import java .util .HashMap ;
13
12
import java .util .HashSet ;
14
13
import java .util .LinkedHashMap ;
21
20
import java .util .function .Function ;
22
21
23
22
import static java .util .Arrays .asList ;
23
+ import static java .util .Collections .addAll ;
24
24
import static java .util .Collections .emptyList ;
25
25
import static java .util .Collections .emptyMap ;
26
26
import static java .util .Collections .emptySet ;
@@ -290,15 +290,17 @@ public static <T> List<T> listOf(T value1) {
290
290
return list ;
291
291
}
292
292
293
+ @ SafeVarargs
293
294
public static <T > List <T > listOf (T ... values ) {
294
295
final List <T > list = new ArrayList <>( values .length );
295
- Collections . addAll ( list , values );
296
+ addAll ( list , values );
296
297
return list ;
297
298
}
298
299
300
+ @ SafeVarargs
299
301
public static <T > Set <T > setOf (T ... values ) {
300
302
final HashSet <T > set = new HashSet <>( determineProperSizing ( values .length ) );
301
- Collections . addAll ( set , values );
303
+ addAll ( set , values );
302
304
return set ;
303
305
}
304
306
You can’t perform that action at this time.
0 commit comments