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 88
99import java .util .ArrayList ;
1010import java .util .Collection ;
11- import java .util .Collections ;
1211import java .util .HashMap ;
1312import java .util .HashSet ;
1413import java .util .LinkedHashMap ;
2120import java .util .function .Function ;
2221
2322import static java .util .Arrays .asList ;
23+ import static java .util .Collections .addAll ;
2424import static java .util .Collections .emptyList ;
2525import static java .util .Collections .emptyMap ;
2626import static java .util .Collections .emptySet ;
@@ -290,15 +290,17 @@ public static <T> List<T> listOf(T value1) {
290290 return list ;
291291 }
292292
293+ @ SafeVarargs
293294 public static <T > List <T > listOf (T ... values ) {
294295 final List <T > list = new ArrayList <>( values .length );
295- Collections . addAll ( list , values );
296+ addAll ( list , values );
296297 return list ;
297298 }
298299
300+ @ SafeVarargs
299301 public static <T > Set <T > setOf (T ... values ) {
300302 final HashSet <T > set = new HashSet <>( determineProperSizing ( values .length ) );
301- Collections . addAll ( set , values );
303+ addAll ( set , values );
302304 return set ;
303305 }
304306
You can’t perform that action at this time.
0 commit comments