cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject git commit: fix build
Date Fri, 27 Jan 2012 02:50:00 GMT
Updated Branches:
  refs/heads/trunk 2f9518591 -> 998dbcef2


fix build


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/998dbcef
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/998dbcef
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/998dbcef

Branch: refs/heads/trunk
Commit: 998dbcef21e1075b4d64031281c467b2172fa8f9
Parents: 2f95185
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Thu Jan 26 20:48:59 2012 -0600
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Thu Jan 26 20:48:59 2012 -0600

----------------------------------------------------------------------
 .../statements/CreateColumnFamilyStatement.java    |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/998dbcef/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
b/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
index eec47cf..44d187c 100644
--- a/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
+++ b/src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
@@ -70,17 +70,9 @@ public class CreateColumnFamilyStatement extends SchemaAlteringStatement
 
         for (Map.Entry<ColumnIdentifier, String> col : columns.entrySet())
         {
-            try
-            {
-                AbstractType<?> validator = CFPropDefs.parseType(col.getValue());
-                columnDefs.put(col.getKey().key, new ColumnDefinition(col.getKey().key, validator,
null, null, null));
-            }
-            catch (ConfigurationException e)
-            {
-                InvalidRequestException ex = new InvalidRequestException(e.toString());
-                ex.initCause(e);
-                throw ex;
-            }
+            AbstractType<?> validator = CFPropDefs.parseType(col.getValue());
+            
+            columnDefs.put(col.getKey().key, new ColumnDefinition(col.getKey().key, validator,
null, null, null));
         }
 
         return columnDefs;


Mime
View raw message