aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/testproxy
diff options
context:
space:
mode:
authornickl- <github@jigsoft.co.za>2017-10-28 06:18:43 +0200
committernickl- <github@jigsoft.co.za>2017-10-28 08:59:37 +0200
commitcd3aa325301e1db20c229f9dce92f86e914ad798 (patch)
treee616f82e21788f2dabd98504e1b005b7dc4b2eb8 /src/test/testproxy
parentce84f84a174b279ee3e8a38446ea3a1f23bf8287 (diff)
downloadjavassist-cd3aa325301e1db20c229f9dce92f86e914ad798.tar.gz
javassist-cd3aa325301e1db20c229f9dce92f86e914ad798.zip
Added default serialVersionUID.
Diffstat (limited to 'src/test/testproxy')
-rw-r--r--src/test/testproxy/ProxyFactoryPerformanceTest.java3
-rw-r--r--src/test/testproxy/ProxyTester.java9
2 files changed, 12 insertions, 0 deletions
diff --git a/src/test/testproxy/ProxyFactoryPerformanceTest.java b/src/test/testproxy/ProxyFactoryPerformanceTest.java
index 55bc7849..829f960a 100644
--- a/src/test/testproxy/ProxyFactoryPerformanceTest.java
+++ b/src/test/testproxy/ProxyFactoryPerformanceTest.java
@@ -163,6 +163,9 @@ class EnhancerUser extends Thread implements InvocationHandler {
*/
class SampleBean implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
long oid;
int version;
diff --git a/src/test/testproxy/ProxyTester.java b/src/test/testproxy/ProxyTester.java
index f325997d..b7f36bcf 100644
--- a/src/test/testproxy/ProxyTester.java
+++ b/src/test/testproxy/ProxyTester.java
@@ -398,6 +398,9 @@ public class ProxyTester extends TestCase {
}
public static class ReadWriteData implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public int foo() { return 4; }
}
@@ -416,10 +419,16 @@ public class ProxyTester extends TestCase {
}
public static class WriteReplace implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object writeReplace() { return this; }
}
public static class WriteReplace2 implements Serializable {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
+
public Object writeReplace(int i) { return Integer.valueOf(i); }
}