This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
The following commit(s) were added to refs/heads/master by this push: new 83300f5b6a allow prefixes to filter on exceptions to be modified 83300f5b6a is described below commit 83300f5b6a8fd88de091fbc4fa1804642c3e5957 Author: Alex Heneveld <a...@cloudsoft.io> AuthorDate: Wed Apr 10 22:21:22 2024 +0100 allow prefixes to filter on exceptions to be modified --- .../src/main/java/org/apache/brooklyn/util/exceptions/Exceptions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/common/src/main/java/org/apache/brooklyn/util/exceptions/Exceptions.java b/utils/common/src/main/java/org/apache/brooklyn/util/exceptions/Exceptions.java index 464d97131e..34c9030dc4 100644 --- a/utils/common/src/main/java/org/apache/brooklyn/util/exceptions/Exceptions.java +++ b/utils/common/src/main/java/org/apache/brooklyn/util/exceptions/Exceptions.java @@ -77,11 +77,11 @@ public class Exceptions { } }; - private static List<Class<? extends Throwable>> BORING_PREFIX_THROWABLE_EXACT_TYPES = ImmutableList.<Class<? extends Throwable>>of( + public static final Set<Class<? extends Throwable>> BORING_PREFIX_THROWABLE_EXACT_TYPES = MutableSet.<Class<? extends Throwable>>of( RuntimeException.class, Exception.class, Throwable.class, IllegalStateException.class, IllegalArgumentException.class); - private static List<Class<? extends Throwable>> BORING_PREFIX_THROWABLE_SUPERTYPES = ImmutableList.<Class<? extends Throwable>>of( + public static final Set<Class<? extends Throwable>> BORING_PREFIX_THROWABLE_SUPERTYPES = MutableSet.<Class<? extends Throwable>>of( ClassCastException.class, CompoundRuntimeException.class, PropagatedRuntimeException.class); /** Returns whether the prefix is throwable either known to be boring or to have an unhelpful type name (prefix)