Fixed: Fix Default or Empty Catch block in Java and Groovy files

(OFBIZ-8341)

While reviewing recent Michael's FB commits I spotted a bunch of (unrelated) 
swallowed exceptions. This fixes them

Also few formatting and use of multi catches



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2017-12-10 12:00:07 +00:00
parent 9e74309d5d
commit 48a2f6dc8b
4 changed files with 14 additions and 18 deletions
@@ -118,7 +118,7 @@ public final class SSLUtil {
((X509TrustManager) mgr).checkClientTrusted(chain, authType);
return true;
} catch (CertificateException e) {
// do nothing; just loop
Debug.logError(e, module);
}
}
}
@@ -257,6 +257,7 @@ public class ResourceBundleMapWrapper implements Map<String, Object>, Serializab
value = this.resourceBundle.getObject((String) arg0);
} catch (MissingResourceException mre) {
// do nothing, this will be handled by recognition that the value is still null
Debug.logError(mre, module);
}
}
}