8068887: java.lang.Throwable could use Collections.emptyList for suppressedException
Java.lang.Throwable could use Collections.emptyList for suppressedException Reviewed-by: mchung, alanb, shade, redestad
This commit is contained in:
parent
43fd9baef4
commit
392da5db2d
@ -211,8 +211,7 @@ public class Throwable implements Serializable {
|
|||||||
|
|
||||||
// Setting this static field introduces an acceptable
|
// Setting this static field introduces an acceptable
|
||||||
// initialization dependency on a few java.util classes.
|
// initialization dependency on a few java.util classes.
|
||||||
private static final List<Throwable> SUPPRESSED_SENTINEL =
|
private static final List<Throwable> SUPPRESSED_SENTINEL = Collections.emptyList();
|
||||||
Collections.unmodifiableList(new ArrayList<Throwable>(0));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The list of suppressed exceptions, as returned by {@link
|
* The list of suppressed exceptions, as returned by {@link
|
||||||
|
Loading…
x
Reference in New Issue
Block a user