@@ -259,7 +259,6 @@ public void copyOf() {
259259_.elementAt(arr, 1) // => 2
260260*/
261261 @ Test
262- @ SuppressWarnings ("unchecked" )
263262 public void elementAt () {
264263 assertEquals (2 , U .<Integer >elementAt (asList (1 , 2 , 3 ), 1 ).intValue ());
265264 assertEquals (2 , new U <Integer >(asList (1 , 2 , 3 )).elementAt (1 ).intValue ());
@@ -270,7 +269,6 @@ public void elementAt() {
270269_.get(arr, 1) // => 2
271270*/
272271 @ Test
273- @ SuppressWarnings ("unchecked" )
274272 public void get () {
275273 assertEquals (2 , U .<Integer >get (asList (1 , 2 , 3 ), 1 ).intValue ());
276274 assertEquals (2 , new U <Integer >(asList (1 , 2 , 3 )).get (1 ).intValue ());
@@ -281,7 +279,6 @@ public void get() {
281279_.set(arr, 1, 100) // => 2
282280*/
283281 @ Test
284- @ SuppressWarnings ("unchecked" )
285282 public void set () {
286283 Tuple <Integer , List <Integer >> result = U .<Integer >set (asList (1 , 2 , 3 ), 1 , 100 );
287284 assertEquals (2 , result .fst ().intValue ());
@@ -306,7 +303,6 @@ public void elementAtOutOfBounds() {
306303_.elementAtOrElse(arr, 3, 0) // => 0
307304*/
308305 @ Test
309- @ SuppressWarnings ("unchecked" )
310306 public void elementAtOrElse () {
311307 assertEquals (2 , U .<Integer >elementAtOrElse (asList (1 , 2 , 3 ), 1 , 0 ).intValue ());
312308 assertEquals (2 , new U <Integer >(asList (1 , 2 , 3 )).elementAtOrElse (1 , 0 ).intValue ());
@@ -320,7 +316,6 @@ public void elementAtOrElse() {
320316_.elementAtOrNull(arr, 3) // => null
321317*/
322318 @ Test
323- @ SuppressWarnings ("unchecked" )
324319 public void elementAtOrNull () {
325320 assertEquals (2 , U .<Integer >elementAtOrNull (asList (1 , 2 , 3 ), 1 ).intValue ());
326321 assertEquals (2 , new U <Integer >(asList (1 , 2 , 3 )).elementAtOrNull (1 ).intValue ());
@@ -342,7 +337,6 @@ public void reverse() {
342337 }
343338
344339 @ Test
345- @ SuppressWarnings ("unchecked" )
346340 public void findLastWithCustomIterable () {
347341 final int [] array = new int [] {1 , 2 , 3 , 4 , 5 , 6 };
348342 Iterable <Integer > iterable = new Iterable <Integer >() {
@@ -411,6 +405,7 @@ public void remove() {
411405 }
412406
413407 @ Test
408+ @ SuppressWarnings ("unlikely-arg-type" )
414409 public void optional () {
415410 assertTrue (Optional .absent ().equals (Optional .absent ()));
416411 assertTrue (Optional .of (1 ).equals (Optional .of (1 )));
@@ -578,7 +573,6 @@ public boolean test(Integer value) {
578573 }
579574
580575 @ Test
581- @ SuppressWarnings ("unchecked" )
582576 public void stackoverflow () {
583577 // http://stackoverflow.com/questions/109383/how-to-sort-a-mapkey-value-on-the-values-in-java?rq=1
584578 assertEquals ("{D=67.3, B=67.4, C=67.4, A=99.5}" , U .chain ((new LinkedHashMap <String , Double >() { {
@@ -594,7 +588,6 @@ public Double apply(Map.Entry<String, Double> item) {
594588 }
595589
596590 @ Test
597- @ SuppressWarnings ("unchecked" )
598591 public void stackoverflow2 () {
599592 // http://stackoverflow.com/questions/12229577/java-hashmap-sorting-string-integer-how-to-sort-it?lq=1
600593 assertEquals ("{a=5, f=5, c=4, e=3, b=2, d=2}" , U .chain ((new LinkedHashMap <String , Integer >() { {
@@ -612,7 +605,6 @@ public Integer apply(Map.Entry<String, Integer> item) {
612605 }
613606
614607 @ Test
615- @ SuppressWarnings ("unchecked" )
616608 public void stackoverflow3 () {
617609// http://stackoverflow.com/questions/11647889/sorting-the-mapkey-value-in-descending-order-based-on-the-value?lq=1
618610 assertEquals ("{C=50, A=34, B=25}" , U .chain ((new LinkedHashMap <String , Integer >() { {
@@ -662,7 +654,6 @@ public void stackoverflow5() {
662654 }
663655
664656 @ Test
665- @ SuppressWarnings ("unchecked" )
666657 public void jobtest () {
667658 String [] strings = {
668659 "Sound boy proceed to blast into the galaxy" ,
0 commit comments