cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r979436 - /cassandra/trunk/src/java/org/apache/cassandra/locator/SimpleSnitch.java
Date Mon, 26 Jul 2010 21:01:21 GMT
Author: jbellis
Date: Mon Jul 26 21:01:20 2010
New Revision: 979436

URL: http://svn.apache.org/viewvc?rev=979436&view=rev
Log:
s/NotImplementedException/UnsupportedOperationException/.  patch by jbellis

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/locator/SimpleSnitch.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/locator/SimpleSnitch.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/locator/SimpleSnitch.java?rev=979436&r1=979435&r2=979436&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/locator/SimpleSnitch.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/locator/SimpleSnitch.java Mon Jul 26 21:01:20
2010
@@ -23,8 +23,6 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 
-import org.apache.commons.lang.NotImplementedException;
-
 /**
  * A simple endpoint snitch implementation does not sort addresses by
  * proximity.
@@ -33,12 +31,12 @@ public class SimpleSnitch extends Abstra
 {
     public String getRack(InetAddress endpoint)
     {
-        throw new NotImplementedException();
+        throw new UnsupportedOperationException();
     }
 
     public String getDatacenter(InetAddress endpoint)
     {
-        throw new NotImplementedException();
+        throw new UnsupportedOperationException();
     }
     
     public List<InetAddress> getSortedListByProximity(final InetAddress address, Collection<InetAddress>
addresses)



Mime
View raw message