ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [37/50] incubator-ignite git commit: # IGNITE-748 Fixed check for empty parts.
Date Thu, 23 Apr 2015 06:05:36 GMT
# IGNITE-748 Fixed check for empty parts.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/b2cae730
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/b2cae730
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/b2cae730

Branch: refs/heads/ignite-80
Commit: b2cae730b690470283a289ffe159927918bbab85
Parents: 476f329
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Wed Apr 22 11:23:58 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Wed Apr 22 11:23:58 2015 +0700

----------------------------------------------------------------------
 .../java/org/apache/ignite/schema/generator/CodeGenerator.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/b2cae730/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
----------------------------------------------------------------------
diff --git a/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
b/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
index c4fe111..ebfe682 100644
--- a/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
+++ b/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
@@ -76,6 +76,9 @@ public class CodeGenerator {
         String[] parts = split ? identifier.split("\\.") : new String[] {identifier};
 
         for (String part : parts) {
+            if (part.isEmpty())
+                throw new IllegalStateException(msg + " could not has empty parts!");
+
             if (javaKeywords.contains(part))
                 throw new IllegalStateException(msg + " could not contains reserved keyword:"
+
                     " [type = " + type + ", identifier=" + identifier + ", keyword=" + part
+ "]");


Mime
View raw message