[hornetq-commits] JBoss hornetq SVN: r11057 - branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jul 27 13:29:18 EDT 2011


Author: borges
Date: 2011-07-27 13:29:18 -0400 (Wed, 27 Jul 2011)
New Revision: 11057

Modified:
   branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/AIOSequentialFile.java
Log:
throw the right kind of exception.

Modified: branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/AIOSequentialFile.java
===================================================================
--- branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/AIOSequentialFile.java	2011-07-27 17:28:44 UTC (rev 11056)
+++ branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/AIOSequentialFile.java	2011-07-27 17:29:18 UTC (rev 11057)
@@ -26,9 +26,9 @@
 import org.hornetq.core.logging.Logger;
 
 /**
- * 
+ *
  * A AIOSequentialFile
- * 
+ *
  * @author <a href="mailto:clebert.suconic at jboss.com">Clebert Suconic</a>
  *
  */
@@ -227,7 +227,7 @@
 
    public void sync() throws Exception
    {
-      throw new IllegalArgumentException("This method is not supported on AIO");
+      throw new UnsupportedOperationException("This method is not supported on AIO");
    }
 
    public long size() throws Exception
@@ -268,7 +268,7 @@
    }
 
    /**
-    * 
+    *
     * @param sync Not used on AIO
     *  */
    public void writeDirect(final ByteBuffer bytes, final boolean sync, final IOAsyncTask callback)



More information about the hornetq-commits mailing list