]> source.dussan.org Git - aspectj.git/commitdiff
change all relevant DataOutputStream usage to use CompressingDataOutputStream
authoraclement <aclement>
Tue, 18 May 2010 16:20:16 +0000 (16:20 +0000)
committeraclement <aclement>
Tue, 18 May 2010 16:20:16 +0000 (16:20 +0000)
weaver5/java5-testsrc/org/aspectj/weaver/patterns/WildTypePatternResolutionTestCase.java

index 4767367db7d96bde6782ce6c19545859fda4aeb4..6211d5db93f91f05a5dd20ad93e8fcd6f4a9bd72 100644 (file)
@@ -13,12 +13,12 @@ package org.aspectj.weaver.patterns;
 
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
-import java.io.DataOutputStream;
 import java.io.IOException;
 
 import junit.framework.TestCase;
 
 import org.aspectj.weaver.BoundedReferenceType;
+import org.aspectj.weaver.CompressingDataOutputStream;
 import org.aspectj.weaver.ResolvedType;
 import org.aspectj.weaver.TypeFactory;
 import org.aspectj.weaver.UnresolvedType;
@@ -387,7 +387,7 @@ public class WildTypePatternResolutionTestCase extends TestCase {
        private TypePattern writeAndRead(TypePattern etp) {
                try {
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
-                       DataOutputStream dos = new DataOutputStream(baos);
+                       CompressingDataOutputStream dos = new CompressingDataOutputStream(baos);
                        etp.write(dos);
                        dos.flush();
                        dos.close();