From 5b5d1f7253aeae925b45aba8bf771a79ec77cefc Mon Sep 17 00:00:00 2001 From: Jan-Olav Eide Date: Fri, 4 Jun 2021 19:55:16 +0200 Subject: [PATCH] public --- .../rest/jersey/ExceptionTranslatingInvoker.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/jersey/ExceptionTranslatingInvoker.java b/integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/jersey/ExceptionTranslatingInvoker.java index d8f7a55c9..fafb6441c 100644 --- a/integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/jersey/ExceptionTranslatingInvoker.java +++ b/integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/jersey/ExceptionTranslatingInvoker.java @@ -5,13 +5,14 @@ import no.nav.vedtak.exception.IntegrasjonException; -class ExceptionTranslatingInvoker { +@SuppressWarnings("unchecked") +public class ExceptionTranslatingInvoker { - T invoke(Invocation i, Class clazz) { + public T invoke(Invocation i, Class clazz) { return invoke(i, clazz, ProcessingException.class); } - T invoke(Invocation i, Class clazz, Class... translatableExceptions) { + public T invoke(Invocation i, Class clazz, Class... translatableExceptions) { try { return i.invoke(clazz); } catch (Exception ex) {