]> source.dussan.org Git - archiva.git/commitdiff
fix non standard variables names
authorOlivier Lamy <olamy@apache.org>
Mon, 31 Dec 2012 09:29:49 +0000 (09:29 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 31 Dec 2012 09:29:49 +0000 (09:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427060 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-artifact-converter/src/main/java/org/apache/archiva/converter/artifact/LegacyToDefaultConverter.java
archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/LatinEntityResolutionReader.java

index 83a1f4cff281699fe1893232cf81c56215304541..1faac13aa2ebb307d536a15dc4a61baad9291325 100644 (file)
@@ -265,8 +265,8 @@ public class LegacyToDefaultConverter
                                                  v3Model.getVersion(), v3Model.getPackage() );
 
                     writer = new StringWriter();
-                    MavenXpp3Writer Xpp3Writer = new MavenXpp3Writer();
-                    Xpp3Writer.write( writer, v4Model );
+                    MavenXpp3Writer xpp3Writer = new MavenXpp3Writer();
+                    xpp3Writer.write( writer, v4Model );
 
                     transaction.createFile( writer.toString(), targetFile, digesters );
 
index 17313d6425e75d31a3749d20bff05f477867b20c..9b62ee4124c4eb3a8dbd03fdce21d14f7c71899d 100644 (file)
@@ -58,9 +58,9 @@ public class LatinEntityResolutionReader
     public int read( char[] destbuf, int offset, int length )
         throws IOException
     {
-        int tmp_length;
-        int current_requested_offset = offset;
-        int current_requested_length = length;
+        int tmpLength;
+        int currentRequestedOffset = offset;
+        int currentRequestedLength = length;
 
         // Drain leftover from last read request.
         if ( leftover != null )
@@ -68,7 +68,7 @@ public class LatinEntityResolutionReader
             if ( leftover.length > length )
             {
                 // Copy partial leftover.
-                System.arraycopy( leftover, 0, destbuf, current_requested_offset, length );
+                System.arraycopy( leftover, 0, destbuf, currentRequestedOffset, length );
                 int copyLeftOverLength = leftover.length - length;
 
                 // Create new leftover of remaining.
@@ -82,30 +82,30 @@ public class LatinEntityResolutionReader
             }
             else
             {
-                tmp_length = leftover.length;
+                tmpLength = leftover.length;
 
                 // Copy full leftover
-                System.arraycopy( leftover, 0, destbuf, current_requested_offset, tmp_length );
+                System.arraycopy( leftover, 0, destbuf, currentRequestedOffset, tmpLength );
 
                 // Empty out leftover (as there is now none left)
                 leftover = null;
 
                 // Adjust offset and lengths.
-                current_requested_offset += tmp_length;
-                current_requested_length -= tmp_length;
+                currentRequestedOffset += tmpLength;
+                currentRequestedLength -= tmpLength;
             }
         }
 
-        StringBuilder sbuf = getExpandedBuffer( current_requested_length );
+        StringBuilder sbuf = getExpandedBuffer( currentRequestedLength );
 
         // Have we reached the end of the buffer?
         if ( sbuf == null )
         {
             // Do we have content?
-            if ( current_requested_offset > offset )
+            if ( currentRequestedOffset > offset )
             {
                 // Signal that we do, by calculating length.
-                return ( current_requested_offset - offset );
+                return ( currentRequestedOffset - offset );
             }
 
             // No content. signal end of buffer.
@@ -113,18 +113,18 @@ public class LatinEntityResolutionReader
         }
 
         // Copy from expanded buf whatever length we can accomodate.
-        tmp_length = Math.min( sbuf.length(), current_requested_length );
-        sbuf.getChars( 0, tmp_length, destbuf, current_requested_offset );
+        tmpLength = Math.min( sbuf.length(), currentRequestedLength );
+        sbuf.getChars( 0, tmpLength, destbuf, currentRequestedOffset );
 
         // Create the leftover (if any)
-        if ( tmp_length < sbuf.length() )
+        if ( tmpLength < sbuf.length() )
         {
-            leftover = new char[sbuf.length() - tmp_length];
-            sbuf.getChars( tmp_length, tmp_length + leftover.length, leftover, 0 );
+            leftover = new char[sbuf.length() - tmpLength];
+            sbuf.getChars( tmpLength, tmpLength + leftover.length, leftover, 0 );
         }
 
         // Calculate Actual Length and return.
-        return ( current_requested_offset - offset ) + tmp_length;
+        return ( currentRequestedOffset - offset ) + tmpLength;
     }
 
     private StringBuilder getExpandedBuffer( int minimum_length )