cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1074773 - /cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java
Date Sat, 26 Feb 2011 01:19:04 GMT
Author: eevans
Date: Sat Feb 26 01:19:04 2011
New Revision: 1074773

URL: http://svn.apache.org/viewvc?rev=1074773&view=rev
Log:
invoke toString() instead of casting

Patch by eevans; reviewed by gdusbabek for CASSANDRA-2196

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java?rev=1074773&r1=1074772&r2=1074773&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java Sat
Feb 26 01:19:04 2011
@@ -49,7 +49,7 @@ public class UpdateColumnFamily extends 
         {
             for (ColumnDef entry : cf_def.column_metadata)
             {
-                if (entry.index_name != null && !Migration.isLegalName((String) entry.index_name))
+                if (entry.index_name != null && !Migration.isLegalName(entry.index_name.toString()))
                     throw new ConfigurationException("Invalid index name: " + entry.index_name);
             }
         }



Mime
View raw message