From 33884b226454324f27700f9069f4702b44ef8ced Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 23 Oct 2016 10:59:32 -0700 Subject: [PATCH] Add final modifier to local variables. --- src/main/java/org/apache/commons/lang3/SerializationUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/SerializationUtils.java b/src/main/java/org/apache/commons/lang3/SerializationUtils.java index aadea866e..f64869575 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 (ClassLoaderAwareObjectInputStream in = new ClassLoaderAwareObjectInputStream(bais, + try (final ClassLoaderAwareObjectInputStream in = new ClassLoaderAwareObjectInputStream(bais, object.getClass().getClassLoader())) { /* * when we serialize and deserialize an object,