aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/util/proxy/ProxyObjectOutputStream.java
diff options
context:
space:
mode:
authorChristian Melchior <christian@ilios.dk>2017-11-12 15:37:15 +0100
committerChristian Melchior <christian@ilios.dk>2017-11-12 15:37:15 +0100
commit215a61f3a0a1d2794df51611218068ab09a90d56 (patch)
tree7309f91e448e346a26d7f339fbd84464402d9406 /src/main/javassist/util/proxy/ProxyObjectOutputStream.java
parentf4769c7ad702fa529a790106ea5c318a7af5c7b7 (diff)
parente1f0bba5de4dc03a9debfab333683f07cfbcb594 (diff)
downloadjavassist-215a61f3a0a1d2794df51611218068ab09a90d56.tar.gz
javassist-215a61f3a0a1d2794df51611218068ab09a90d56.zip
Merge branch 'master' into cm/bug/classpath-close
# Conflicts: # pom.xml # src/main/javassist/ByteArrayClassPath.java # src/main/javassist/ClassClassPath.java # src/main/javassist/ClassPoolTail.java # src/main/javassist/LoaderClassPath.java # src/main/javassist/URLClassPath.java
Diffstat (limited to 'src/main/javassist/util/proxy/ProxyObjectOutputStream.java')
-rw-r--r--src/main/javassist/util/proxy/ProxyObjectOutputStream.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/javassist/util/proxy/ProxyObjectOutputStream.java b/src/main/javassist/util/proxy/ProxyObjectOutputStream.java
index 31c3861b..87351685 100644
--- a/src/main/javassist/util/proxy/ProxyObjectOutputStream.java
+++ b/src/main/javassist/util/proxy/ProxyObjectOutputStream.java
@@ -44,19 +44,20 @@ public class ProxyObjectOutputStream extends ObjectOutputStream
super(out);
}
+ @Override
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException {
- Class cl = desc.forClass();
+ Class<?> cl = desc.forClass();
if (ProxyFactory.isProxyClass(cl)) {
writeBoolean(true);
- Class superClass = cl.getSuperclass();
- Class[] interfaces = cl.getInterfaces();
+ Class<?> superClass = cl.getSuperclass();
+ Class<?>[] interfaces = cl.getInterfaces();
byte[] signature = ProxyFactory.getFilterSignature(cl);
String name = superClass.getName();
writeObject(name);
// we don't write the marker interface ProxyObject
writeInt(interfaces.length - 1);
for (int i = 0; i < interfaces.length; i++) {
- Class interfaze = interfaces[i];
+ Class<?> interfaze = interfaces[i];
if (interfaze != ProxyObject.class && interfaze != Proxy.class) {
name = interfaces[i].getName();
writeObject(name);