]> source.dussan.org Git - aspectj.git/commitdiff
312839: smaller class files
authoraclement <aclement>
Wed, 19 May 2010 15:13:28 +0000 (15:13 +0000)
committeraclement <aclement>
Wed, 19 May 2010 15:13:28 +0000 (15:13 +0000)
weaver5/java5-testsrc/org/aspectj/weaver/patterns/WildTypePatternResolutionTestCase.java

index 6211d5db93f91f05a5dd20ad93e8fcd6f4a9bd72..5eda5d577cb48df84013fe919c0ab7c4b82c01f2 100644 (file)
@@ -387,12 +387,13 @@ public class WildTypePatternResolutionTestCase extends TestCase {
        private TypePattern writeAndRead(TypePattern etp) {
                try {
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
-                       CompressingDataOutputStream dos = new CompressingDataOutputStream(baos);
+                       ConstantPoolSimulator cps = new ConstantPoolSimulator();
+                       CompressingDataOutputStream dos = new CompressingDataOutputStream(baos, cps);
                        etp.write(dos);
                        dos.flush();
                        dos.close();
                        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
-                       VersionedDataInputStream in = new VersionedDataInputStream(bais);
+                       VersionedDataInputStream in = new VersionedDataInputStream(bais, cps);
                        in.setVersion(new WeaverVersionInfo());
                        TypePattern ret = TypePattern.read(in, null);
                        return ret;