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

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.235 by jsr166, Sat Jul 22 18:23:59 2017 UTC vs.
Revision 1.236 by jsr166, Wed Aug 16 17:18:34 2017 UTC

# Line 1913 | Line 1913 | public class JSR166TestCase extends Test
1913          Collections.shuffle(Arrays.asList(array), ThreadLocalRandom.current());
1914      }
1915  
1916 +    /**
1917 +     * Returns the same String as would be returned by {@link
1918 +     * Object#toString}, whether or not the given object's class
1919 +     * overrides toString().
1920 +     *
1921 +     * @see System#identityHashCode
1922 +     */
1923 +    static String identityString(Object x) {
1924 +        return x.getClass().getName()
1925 +            + "@" + Integer.toHexString(System.identityHashCode(x));
1926 +    }
1927 +
1928      // --- Shared assertions for Executor tests ---
1929  
1930      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines