summaryrefslogtreecommitdiffstats
path: root/utils-test/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'utils-test/src/main/java/org')
-rw-r--r--utils-test/src/main/java/org/onap/policy/common/utils/io/Serializer.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/utils-test/src/main/java/org/onap/policy/common/utils/io/Serializer.java b/utils-test/src/main/java/org/onap/policy/common/utils/io/Serializer.java
index 227b810a..31e0b850 100644
--- a/utils-test/src/main/java/org/onap/policy/common/utils/io/Serializer.java
+++ b/utils-test/src/main/java/org/onap/policy/common/utils/io/Serializer.java
@@ -83,9 +83,6 @@ public class Serializer {
* so we'll just do it with a factory method.
*/
return clazz.cast(factory.readObject(ois));
-
- } catch (ClassNotFoundException e) {
- throw new IOException(e);
}
}
@@ -127,8 +124,13 @@ public class Serializer {
oos.writeObject(object);
}
- public Object readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
- return ois.readObject();
+ public Object readObject(ObjectInputStream ois) throws IOException {
+ try {
+ return ois.readObject();
+
+ } catch (ClassNotFoundException e) {
+ throw new IOException(e);
+ }
}
}