diff --git a/src/main/java/org/apache/commons/lang3/SerializationUtils.java b/src/main/java/org/apache/commons/lang3/SerializationUtils.java index e62827a57..69c3664e9 100644 --- a/src/main/java/org/apache/commons/lang3/SerializationUtils.java +++ b/src/main/java/org/apache/commons/lang3/SerializationUtils.java @@ -81,7 +81,7 @@ public class SerializationUtils { final byte[] objectData = serialize(object); final ByteArrayInputStream bais = new ByteArrayInputStream(objectData); - try (final ClassLoaderAwareObjectInputStream in = new ClassLoaderAwareObjectInputStream(bais, + try (ClassLoaderAwareObjectInputStream in = new ClassLoaderAwareObjectInputStream(bais, object.getClass().getClassLoader())) { /* * when we serialize and deserialize an object, diff --git a/src/main/java/org/apache/commons/lang3/concurrent/Computable.java b/src/main/java/org/apache/commons/lang3/concurrent/Computable.java index c949f083e..a74d1b1eb 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/Computable.java +++ b/src/main/java/org/apache/commons/lang3/concurrent/Computable.java @@ -37,5 +37,5 @@ public interface Computable { * @throws InterruptedException * thrown if the calculation is interrupted */ - O compute(final I arg) throws InterruptedException; + O compute(I arg) throws InterruptedException; }