@@ -56,7 +56,6 @@ static Holder<?> wrap(KubeJSContext cx, Object from, TypeInfo param) {
5656 return holder .isEmpty () ? DeferredHolder .create (registry .key (), id ) : holder .get ();
5757 }
5858
59- @ SuppressWarnings ({"rawtypes" , "unchecked" })
6059 static HolderSet <?> wrapSet (KubeJSContext cx , Object from , TypeInfo param ) {
6160 var registry = cx .lookupRegistry (param , from );
6261
@@ -86,14 +85,14 @@ static HolderSet<?> wrapSet(KubeJSContext cx, Object from, TypeInfo param) {
8685 return switch (complex .size ()) {
8786 case 0 -> HolderSet .empty ();
8887 case 1 -> complex .getFirst ();
89- default -> new OrHolderSet <> (complex );
88+ default -> new OrHolderSet (complex );
9089 };
9190 } else {
9291 if (complex .isEmpty ()) {
9392 return HolderSet .direct ((List ) compressedDirects );
9493 } else {
9594 complex .add (HolderSet .direct ((List ) compressedDirects ));
96- return new OrHolderSet <> (complex );
95+ return new OrHolderSet (complex );
9796 }
9897 }
9998 } else {
@@ -102,7 +101,6 @@ static HolderSet<?> wrapSet(KubeJSContext cx, Object from, TypeInfo param) {
102101 }
103102 }
104103
105- @ SuppressWarnings ({"unchecked" , "rawtypes" })
106104 @ Nullable
107105 static <T > HolderSet <T > wrapSimpleSet (Registry <T > registry , Object from ) {
108106 return switch (from ) {
0 commit comments