j6.Thro Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle Show documentation
Show all versions of gradle Show documentation
fakeradnroid gradle builder
package j6;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Thro {
static Map> aa = new HashMap<>();
public static void addSuppressed(Throwable a, Throwable b) {
List list = aa.get(a);
if (list == null) {
list = new ArrayList<>();
aa.put(a, list);
}
list.add(b);
}
public static Throwable[] getSuppressed(Throwable a) {
List list = aa.remove(a);
if (list == null) {
return null;
}
return list.toArray(new Throwable[list.size()]);
}
}