You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by tr...@apache.org on 2007/04/04 05:07:03 UTC

svn commit: r525370 - in /mina/trunk/core/src: main/java/org/apache/mina/common/ByteBuffer.java main/java/org/apache/mina/filter/executor/ExecutorFilter.java test/java/org/apache/mina/common/ByteBufferTest.java

Author: trustin
Date: Tue Apr  3 20:07:02 2007
New Revision: 525370

URL: http://svn.apache.org/viewvc?view=rev&rev=525370
Log:
Removed tabs in the source code

Modified:
    mina/trunk/core/src/main/java/org/apache/mina/common/ByteBuffer.java
    mina/trunk/core/src/main/java/org/apache/mina/filter/executor/ExecutorFilter.java
    mina/trunk/core/src/test/java/org/apache/mina/common/ByteBufferTest.java

Modified: mina/trunk/core/src/main/java/org/apache/mina/common/ByteBuffer.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/common/ByteBuffer.java?view=diff&rev=525370&r1=525369&r2=525370
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/common/ByteBuffer.java (original)
+++ mina/trunk/core/src/main/java/org/apache/mina/common/ByteBuffer.java Tue Apr  3 20:07:02 2007
@@ -1031,10 +1031,10 @@
 
             if( cr.isError() )
             {
-            	// Revert the buffer back to the previous state.
-            	limit( oldLimit );
-            	position( oldPos );
-            	cr.throwException();
+                // Revert the buffer back to the previous state.
+                limit( oldLimit );
+                position( oldPos );
+                cr.throwException();
             }
         }
 
@@ -1158,10 +1158,10 @@
 
             if( cr.isError() )
             {
-            	// Revert the buffer back to the previous state.
-            	limit( oldLimit );
-            	position( oldPos );
-            	cr.throwException();
+                // Revert the buffer back to the previous state.
+                limit( oldLimit );
+                position( oldPos );
+                cr.throwException();
             }
         }
 

Modified: mina/trunk/core/src/main/java/org/apache/mina/filter/executor/ExecutorFilter.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/filter/executor/ExecutorFilter.java?view=diff&rev=525370&r1=525369&r2=525370
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/filter/executor/ExecutorFilter.java (original)
+++ mina/trunk/core/src/main/java/org/apache/mina/filter/executor/ExecutorFilter.java Tue Apr  3 20:07:02 2007
@@ -96,7 +96,7 @@
             }
             else
             {
-            	execute = false;
+                execute = false;
             }
         }
         

Modified: mina/trunk/core/src/test/java/org/apache/mina/common/ByteBufferTest.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/test/java/org/apache/mina/common/ByteBufferTest.java?view=diff&rev=525370&r1=525369&r2=525370
==============================================================================
--- mina/trunk/core/src/test/java/org/apache/mina/common/ByteBufferTest.java (original)
+++ mina/trunk/core/src/test/java/org/apache/mina/common/ByteBufferTest.java Tue Apr  3 20:07:02 2007
@@ -247,33 +247,33 @@
     
     public void testGetStringWithFailure() throws Exception
     {
-		String test = "\u30b3\u30e1\u30f3\u30c8\u7de8\u96c6";
-		ByteBuffer buffer = ByteBuffer.wrap( test.getBytes( "Shift_JIS" ) );
-		
-		// Make sure the limit doesn't change when an exception arose.
-		int oldLimit = buffer.limit();
-		int oldPos = buffer.position();
-		try
-		{
-			buffer.getString( 3, Charset.forName( "ASCII" ).newDecoder() );
-			Assert.fail();
-		}
-		catch( Exception e )
-		{
-			Assert.assertEquals( oldLimit, buffer.limit() );
-			Assert.assertEquals( oldPos, buffer.position() );
-		}
+        String test = "\u30b3\u30e1\u30f3\u30c8\u7de8\u96c6";
+        ByteBuffer buffer = ByteBuffer.wrap( test.getBytes( "Shift_JIS" ) );
+        
+        // Make sure the limit doesn't change when an exception arose.
+        int oldLimit = buffer.limit();
+        int oldPos = buffer.position();
+        try
+        {
+            buffer.getString( 3, Charset.forName( "ASCII" ).newDecoder() );
+            Assert.fail();
+        }
+        catch( Exception e )
+        {
+            Assert.assertEquals( oldLimit, buffer.limit() );
+            Assert.assertEquals( oldPos, buffer.position() );
+        }
 
-		try
-		{
-			buffer.getString( Charset.forName( "ASCII" ).newDecoder() );
-			Assert.fail();
-		}
-		catch( Exception e )
-		{
-			Assert.assertEquals( oldLimit, buffer.limit() );
-			Assert.assertEquals( oldPos, buffer.position() );
-		}
+        try
+        {
+            buffer.getString( Charset.forName( "ASCII" ).newDecoder() );
+            Assert.fail();
+        }
+        catch( Exception e )
+        {
+            Assert.assertEquals( oldLimit, buffer.limit() );
+            Assert.assertEquals( oldPos, buffer.position() );
+        }
     }
 
     public void testPutString() throws Exception