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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user