Skip to content
Permalink
Browse files

8241921: Remove leftover diagnostic from test/jdk/java/io/Serializabl…

…e/records/SerialPersistentFieldsTest.java

Reviewed-by: lancea
  • Loading branch information
ChrisHegarty committed Apr 2, 2020
1 parent 15fcf27 commit c6b22388b78a88764ff424e9c9ac31d0c48dd449
Showing with 0 additions and 9 deletions.
  1. +0 −9 test/jdk/java/io/Serializable/records/SerialPersistentFieldsTest.java
@@ -32,14 +32,12 @@

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.ObjectStreamClass;
import java.io.ObjectStreamField;
import java.io.Serializable;
import java.io.UncheckedIOException;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.math.BigDecimal;
@@ -229,13 +227,6 @@ public void roundTrip(Object objToSerialize) throws Exception {
ClassReader reader = new ClassReader(classBytes);
ClassWriter writer = new ClassWriter(reader, COMPUTE_MAXS | COMPUTE_FRAMES);
reader.accept(new SerialPersistentFieldsVisitor(writer, spf), 0);
try {
FileOutputStream fos = new FileOutputStream("R1.class");
fos.write(writer.toByteArray());
fos.close();
} catch (IOException ioe) {
throw new UncheckedIOException(ioe);
}
return writer.toByteArray();
}

0 comments on commit c6b2238

Please sign in to comment.