Skip to content
Permalink
Browse files

Improved: Remove unnecessary semicolon

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867986 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Oct 4, 2019
1 parent 0ba98fb commit ee7772316886f392b245b584ed8dd5b7e2090933
Showing with 2 additions and 4 deletions.
  1. +2 −4 framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java
@@ -97,11 +97,9 @@ public static Object getObjectException(byte[] bytes) throws ClassNotFoundExcept
"java..*", "sun.util.calendar..*", "org.apache.ofbiz..*");
} // "foo" and, "SerializationInjector" are used in UtilObjectTests::testGetObject

ClassLoader classloader = Thread.currentThread().getContextClassLoader();
try (ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
SafeObjectInputStream wois = new SafeObjectInputStream(bis,
Thread.currentThread().getContextClassLoader(),
listOfSafeObjects)) {;

SafeObjectInputStream wois = new SafeObjectInputStream(bis, classloader, listOfSafeObjects)) {
return wois.readObject();
}
}

0 comments on commit ee77723

Please sign in to comment.
You can’t perform that action at this time.