# HG changeset patch # User vtewari # Date 1445921076 -19800 # Node ID de27000120de8ee47b8fed15a720321b9d08c2b9 # Parent 489f8e536bc0542fd8c89cbb44f0613ccf995189 8068887: java.lang.Throwable could use Collections.emptyList for suppressedException Summary: java.lang.Throwable could use Collections.emptyList for suppressedException Reviewed-by: mchung, alanb, shade, redestad diff -r 489f8e536bc0 -r de27000120de jdk/src/java.base/share/classes/java/lang/Throwable.java --- a/jdk/src/java.base/share/classes/java/lang/Throwable.java Tue Oct 27 09:09:37 2015 +0100 +++ b/jdk/src/java.base/share/classes/java/lang/Throwable.java Tue Oct 27 10:14:36 2015 +0530 @@ -211,8 +211,7 @@ // Setting this static field introduces an acceptable // initialization dependency on a few java.util classes. - private static final List SUPPRESSED_SENTINEL = - Collections.unmodifiableList(new ArrayList(0)); + private static final List SUPPRESSED_SENTINEL = Collections.emptyList(); /** * The list of suppressed exceptions, as returned by {@link