@SuppressFBWarnings(value = "NP_NONNULL_PARAM_VIOLATION", justification = "https://github.com/findbugsproject/findbugs/issues/79") private void handleExceptions(ObserverExceptionHandler handler) { List<Throwable> handledExceptions = handler.getHandledExceptions(); if (!handledExceptions.isEmpty()) { CompletionException exception = null; if (handledExceptions.size() == 1) { exception = new CompletionException(handledExceptions.get(0)); } else { exception = new CompletionException(null); } for (Throwable handledException : handledExceptions) { exception.addSuppressed(handledException); } throw exception; } }
@SuppressFBWarnings(value = "NP_NONNULL_PARAM_VIOLATION", justification = "https://github.com/findbugsproject/findbugs/issues/79") private void handleExceptions(ObserverExceptionHandler handler) { List<Throwable> handledExceptions = handler.getHandledExceptions(); if (!handledExceptions.isEmpty()) { CompletionException exception = null; if (handledExceptions.size() == 1) { exception = new CompletionException(handledExceptions.get(0)); } else { exception = new CompletionException(null); } for (Throwable handledException : handledExceptions) { exception.addSuppressed(handledException); } throw exception; } }
@SuppressFBWarnings(value = "NP_NONNULL_PARAM_VIOLATION", justification = "https://github.com/findbugsproject/findbugs/issues/79") private void handleExceptions(ObserverExceptionHandler handler) { List<Throwable> handledExceptions = handler.getHandledExceptions(); if (!handledExceptions.isEmpty()) { CompletionException exception = null; if (handledExceptions.size() == 1) { exception = new CompletionException(handledExceptions.get(0)); } else { exception = new CompletionException(null); } for (Throwable handledException : handledExceptions) { exception.addSuppressed(handledException); } throw exception; } }
@SuppressFBWarnings(value = "NP_NONNULL_PARAM_VIOLATION", justification = "https://github.com/findbugsproject/findbugs/issues/79") private void handleExceptions(ObserverExceptionHandler handler) { List<Throwable> handledExceptions = handler.getHandledExceptions(); if (!handledExceptions.isEmpty()) { CompletionException exception = null; if (handledExceptions.size() == 1) { exception = new CompletionException(handledExceptions.get(0)); } else { exception = new CompletionException(null); } for (Throwable handledException : handledExceptions) { exception.addSuppressed(handledException); } throw exception; } }
@SuppressFBWarnings(value = "NP_NONNULL_PARAM_VIOLATION", justification = "https://github.com/findbugsproject/findbugs/issues/79") private void handleExceptions(ObserverExceptionHandler handler) { List<Throwable> handledExceptions = handler.getHandledExceptions(); if (!handledExceptions.isEmpty()) { CompletionException exception = null; if (handledExceptions.size() == 1) { exception = new CompletionException(handledExceptions.get(0)); } else { exception = new CompletionException(null); } for (Throwable handledException : handledExceptions) { exception.addSuppressed(handledException); } throw exception; } }