Skip to content

Commit 916c7c5

Browse files
committed
Remove superfluous (Object) casts
1 parent 71f6d59 commit 916c7c5

File tree

1 file changed

+20
-20
lines changed
  • java/ql/test/library-tests/frameworks/spring/util

1 file changed

+20
-20
lines changed

java/ql/test/library-tests/frameworks/spring/util/Test.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -453,42 +453,42 @@ public void test() throws Exception {
453453
{
454454
// "org.springframework.util;MultiValueMap;true;add;;;Argument[0];MapKey of Argument[-1];value"
455455
MultiValueMapAdapter out = null;
456-
Object in = (Object)source();
456+
Object in = source();
457457
out.add(in, null);
458458
sink(getMapKey(out)); // $hasValueFlow
459459
}
460460
{
461461
// "org.springframework.util;MultiValueMap;true;add;;;Argument[0];MapKey of Argument[-1];value"
462462
MultiValueMap out = null;
463-
Object in = (Object)source();
463+
Object in = source();
464464
out.add(in, null);
465465
sink(getMapKey(out)); // $hasValueFlow
466466
}
467467
{
468468
// "org.springframework.util;MultiValueMap;true;add;;;Argument[0];MapKey of Argument[-1];value"
469469
MultiValueMap out = null;
470-
Object in = (Object)source();
470+
Object in = source();
471471
out.add(in, (Object)null);
472472
sink(getMapKey(out)); // $hasValueFlow
473473
}
474474
{
475475
// "org.springframework.util;MultiValueMap;true;add;;;Argument[1];Element of MapValue of Argument[-1];value"
476476
MultiValueMapAdapter out = null;
477-
Object in = (Object)source();
477+
Object in = source();
478478
out.add(null, in);
479479
sink(getElement((List)getMapValue(out))); // $hasValueFlow
480480
}
481481
{
482482
// "org.springframework.util;MultiValueMap;true;add;;;Argument[1];Element of MapValue of Argument[-1];value"
483483
MultiValueMap out = null;
484-
Object in = (Object)source();
484+
Object in = source();
485485
out.add(null, in);
486486
sink(getElement((List)getMapValue(out))); // $hasValueFlow
487487
}
488488
{
489489
// "org.springframework.util;MultiValueMap;true;add;;;Argument[1];Element of MapValue of Argument[-1];value"
490490
MultiValueMap out = null;
491-
Object in = (Object)source();
491+
Object in = source();
492492
out.add((Object)null, in);
493493
sink(getElement((List)getMapValue(out))); // $hasValueFlow
494494
}
@@ -530,14 +530,14 @@ public void test() throws Exception {
530530
{
531531
// "org.springframework.util;MultiValueMap;true;addAll;;;Argument[0];MapKey of Argument[-1];value"
532532
MultiValueMapAdapter out = null;
533-
Object in = (Object)source();
533+
Object in = source();
534534
out.addAll(in, null);
535535
sink(getMapKey(out)); // $hasValueFlow
536536
}
537537
{
538538
// "org.springframework.util;MultiValueMap;true;addAll;;;Argument[0];MapKey of Argument[-1];value"
539539
MultiValueMap out = null;
540-
Object in = (Object)source();
540+
Object in = source();
541541
out.addAll(in, (List)null);
542542
sink(getMapKey(out)); // $hasValueFlow
543543
}
@@ -560,28 +560,28 @@ public void test() throws Exception {
560560
{
561561
// "org.springframework.util;MultiValueMap;true;addIfAbsent;;;Argument[0];MapKey of Argument[-1];value"
562562
MultiValueMap out = null;
563-
Object in = (Object)source();
563+
Object in = source();
564564
out.addIfAbsent(in, null);
565565
sink(getMapKey(out)); // $hasValueFlow
566566
}
567567
{
568568
// "org.springframework.util;MultiValueMap;true;addIfAbsent;;;Argument[0];MapKey of Argument[-1];value"
569569
MultiValueMap out = null;
570-
Object in = (Object)source();
570+
Object in = source();
571571
out.addIfAbsent(in, (Object)null);
572572
sink(getMapKey(out)); // $hasValueFlow
573573
}
574574
{
575575
// "org.springframework.util;MultiValueMap;true;addIfAbsent;;;Argument[1];Element of MapValue of Argument[-1];value"
576576
MultiValueMap out = null;
577-
Object in = (Object)source();
577+
Object in = source();
578578
out.addIfAbsent(null, in);
579579
sink(getElement((List)getMapValue(out))); // $hasValueFlow
580580
}
581581
{
582582
// "org.springframework.util;MultiValueMap;true;addIfAbsent;;;Argument[1];Element of MapValue of Argument[-1];value"
583583
MultiValueMap out = null;
584-
Object in = (Object)source();
584+
Object in = source();
585585
out.addIfAbsent((Object)null, in);
586586
sink(getElement((List)getMapValue(out))); // $hasValueFlow
587587
}
@@ -609,42 +609,42 @@ public void test() throws Exception {
609609
{
610610
// "org.springframework.util;MultiValueMap;true;set;;;Argument[0];MapKey of Argument[-1];value"
611611
MultiValueMapAdapter out = null;
612-
Object in = (Object)source();
612+
Object in = source();
613613
out.set(in, null);
614614
sink(getMapKey(out)); // $hasValueFlow
615615
}
616616
{
617617
// "org.springframework.util;MultiValueMap;true;set;;;Argument[0];MapKey of Argument[-1];value"
618618
MultiValueMap out = null;
619-
Object in = (Object)source();
619+
Object in = source();
620620
out.set(in, null);
621621
sink(getMapKey(out)); // $hasValueFlow
622622
}
623623
{
624624
// "org.springframework.util;MultiValueMap;true;set;;;Argument[0];MapKey of Argument[-1];value"
625625
MultiValueMap out = null;
626-
Object in = (Object)source();
626+
Object in = source();
627627
out.set(in, (Object)null);
628628
sink(getMapKey(out)); // $hasValueFlow
629629
}
630630
{
631631
// "org.springframework.util;MultiValueMap;true;set;;;Argument[1];Element of MapValue of Argument[-1];value"
632632
MultiValueMapAdapter out = null;
633-
Object in = (Object)source();
633+
Object in = source();
634634
out.set(null, in);
635635
sink(getElement((List)getMapValue(out))); // $hasValueFlow
636636
}
637637
{
638638
// "org.springframework.util;MultiValueMap;true;set;;;Argument[1];Element of MapValue of Argument[-1];value"
639639
MultiValueMap out = null;
640-
Object in = (Object)source();
640+
Object in = source();
641641
out.set(null, in);
642642
sink(getElement((List)getMapValue(out))); // $hasValueFlow
643643
}
644644
{
645645
// "org.springframework.util;MultiValueMap;true;set;;;Argument[1];Element of MapValue of Argument[-1];value"
646646
MultiValueMap out = null;
647-
Object in = (Object)source();
647+
Object in = source();
648648
out.set((Object)null, in);
649649
sink(getElement((List)getMapValue(out))); // $hasValueFlow
650650
}
@@ -984,7 +984,7 @@ public void test() throws Exception {
984984
{
985985
// "org.springframework.util;SerializationUtils;false;serialize;;;Argument[0];ReturnValue;taint"
986986
byte[] out = null;
987-
Object in = (Object)source();
987+
Object in = source();
988988
out = SerializationUtils.serialize(in);
989989
sink(out); // $hasTaintFlow
990990
}
@@ -1243,7 +1243,7 @@ public void test() throws Exception {
12431243
{
12441244
// "org.springframework.util;StringUtils;false;quoteIfString;;;Argument[0];ReturnValue;taint"
12451245
Object out = null;
1246-
Object in = (Object)source();
1246+
Object in = source();
12471247
out = StringUtils.quoteIfString(in);
12481248
sink(out); // $hasTaintFlow
12491249
}

0 commit comments

Comments
 (0)