ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentLinkedDequeTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentLinkedDequeTest.java (file contents):
Revision 1.38 by jsr166, Wed Jan 27 01:57:24 2021 UTC vs.
Revision 1.40 by jsr166, Wed Jan 27 02:55:18 2021 UTC

# Line 687 | Line 687 | public class ConcurrentLinkedDequeTest e
687      /**
688       * toArray(incompatible array type) throws ArrayStoreException
689       */
690 <    public void testToArray1_BadArg() {
690 >    @SuppressWarnings("CollectionToArraySafeParameter")
691 >    public void testToArray_incompatibleArrayType() {
692          ConcurrentLinkedDeque<Item> q = populatedDeque(SIZE);
693          try {
694              q.toArray(new String[10]);
# Line 930 | Line 931 | public class ConcurrentLinkedDequeTest e
931                  else
932                      throw new AssertionError(
933                          String.format(
934 <                            "unexpected value %d after %d nulls and %d zeros",
934 >                            "unexpected value %s after %d nulls and %d zeros",
935                              x, nulls.sum(), zeros.sum()));
936              };
937  
# Line 957 | Line 958 | public class ConcurrentLinkedDequeTest e
958                  else
959                      throw new AssertionError(
960                          String.format(
961 <                            "unexpected value %d after %d nulls and %d zeros",
961 >                            "unexpected value %s after %d nulls and %d zeros",
962                              x, nulls.sum(), zeros.sum()));
963              };
964  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines