harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjanu...@apache.org
Subject svn commit: r785994 - /harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/PopulationCodec.java
Date Thu, 18 Jun 2009 09:58:36 GMT
Author: sjanuary
Date: Thu Jun 18 09:58:35 2009
New Revision: 785994

URL: http://svn.apache.org/viewvc?rev=785994&view=rev
Log:
Pack200 - fix spelling mistake

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

Modified: harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/PopulationCodec.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/PopulationCodec.java?rev=785994&r1=785993&r2=785994&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/PopulationCodec.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/pack200/src/main/java/org/apache/harmony/pack200/PopulationCodec.java
Thu Jun 18 09:58:35 2009
@@ -30,7 +30,7 @@
 
     private final Codec favouredCodec;
     private Codec tokenCodec;
-    private final Codec unvafouredCodec;
+    private final Codec unfavouredCodec;
     private int l;
     private int[] favoured;
 
@@ -38,7 +38,7 @@
             Codec unvafouredCodec) {
         this.favouredCodec = favouredCodec;
         this.tokenCodec = tokenCodec;
-        this.unvafouredCodec = unvafouredCodec;
+        this.unfavouredCodec = unvafouredCodec;
     }
 
     public PopulationCodec(Codec favouredCodec, int l, Codec unvafouredCodec) {
@@ -46,7 +46,7 @@
             throw new IllegalArgumentException("L must be between 1..255");
         this.favouredCodec = favouredCodec;
         this.l = l;
-        this.unvafouredCodec = unvafouredCodec;
+        this.unfavouredCodec = unvafouredCodec;
     }
 
     public int decode(InputStream in) throws IOException, Pack200Exception {
@@ -112,7 +112,7 @@
             int index = result[i];
             if (index == 0) {
                 lastBandLength++;
-                result[i] = last = unvafouredCodec.decode(in, last);
+                result[i] = last = unfavouredCodec.decode(in, last);
             } else {
                 result[i] = favoured[index - 1];
             }
@@ -129,7 +129,7 @@
     }
 
     public Codec getUnfavouredCodec() {
-        return unvafouredCodec;
+        return unfavouredCodec;
     }
 
     public byte[] encode(int value, int last) throws Pack200Exception {
@@ -145,7 +145,7 @@
     public byte[] encode(int[] favoured, int[] tokens, int[] unfavoured) throws Pack200Exception
{
         byte[] favouredEncoded = favouredCodec.encode(favoured);
         byte[] tokensEncoded = tokenCodec.encode(tokens);
-        byte[] unfavouredEncoded = unvafouredCodec.encode(unfavoured);
+        byte[] unfavouredEncoded = unfavouredCodec.encode(unfavoured);
         byte[] band = new byte[favouredEncoded.length + tokensEncoded.length + unfavouredEncoded.length];
 
         return band;



Mime
View raw message