harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjanu...@apache.org
Subject svn commit: r721436 - in /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200: Pack200ClassReader.java Segment.java
Date Fri, 28 Nov 2008 11:22:54 GMT
Author: sjanuary
Date: Fri Nov 28 03:22:54 2008
New Revision: 721436

URL: http://svn.apache.org/viewvc?rev=721436&view=rev
Log:
Pack200 - remove static variable in case of concurrent packing

Modified:
    harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Pack200ClassReader.java
    harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Pack200ClassReader.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Pack200ClassReader.java?rev=721436&r1=721435&r2=721436&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Pack200ClassReader.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Pack200ClassReader.java
Fri Nov 28 03:22:54 2008
@@ -29,7 +29,7 @@
 
     private boolean lastConstantHadWideIndex;
     private int lastUnsignedShort;
-    private static boolean anySyntheticAttributes;
+    private boolean anySyntheticAttributes;
 
     /**
      * @param b
@@ -92,12 +92,8 @@
         return lastConstantHadWideIndex;
     }
 
-    public static boolean hasSyntheticAttributes() {
+    public boolean hasSyntheticAttributes() {
         return anySyntheticAttributes;
     }
 
-    public static void resetSyntheticCounter() {
-        anySyntheticAttributes = false;
-    }
-
 }

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java?rev=721436&r1=721435&r2=721436&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/Segment.java
Fri Nov 28 03:22:54 2008
@@ -45,7 +45,6 @@
 
     public void pack(List classes, List files, OutputStream out)
             throws IOException, Pack200Exception {
-        Pack200ClassReader.resetSyntheticCounter();
         segmentHeader = new SegmentHeader();
         segmentHeader.setFile_count(files.size());
         cpBands = new CpBands(this);



Mime
View raw message