asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Westmann (Code Review)" <do-not-re...@asterixdb.incubator.apache.org>
Subject Change in asterixdb[master]: remove more useless curly braces
Date Tue, 29 Nov 2016 02:40:51 GMT
Till Westmann has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/1363

Change subject: remove more useless curly braces
......................................................................

remove more useless curly braces

Change-Id: I581d268b12017fcf17b5b29f7183e07deae6e931
---
M asterixdb/asterix-om/src/main/java/org/apache/asterix/formats/nontagged/AqlNormalizedKeyComputerFactoryProvider.java
1 file changed, 14 insertions(+), 28 deletions(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/63/1363/1

diff --git a/asterixdb/asterix-om/src/main/java/org/apache/asterix/formats/nontagged/AqlNormalizedKeyComputerFactoryProvider.java
b/asterixdb/asterix-om/src/main/java/org/apache/asterix/formats/nontagged/AqlNormalizedKeyComputerFactoryProvider.java
index 8e424ec..a819b67 100644
--- a/asterixdb/asterix-om/src/main/java/org/apache/asterix/formats/nontagged/AqlNormalizedKeyComputerFactoryProvider.java
+++ b/asterixdb/asterix-om/src/main/java/org/apache/asterix/formats/nontagged/AqlNormalizedKeyComputerFactoryProvider.java
@@ -45,58 +45,44 @@
                 case DATE:
                 case TIME:
                 case YEARMONTHDURATION:
-                case INT32: {
+                case INT32:
                     return new AWrappedAscNormalizedKeyComputerFactory(new IntegerNormalizedKeyComputerFactory());
-                }
                 case DATETIME:
                 case DAYTIMEDURATION:
-                case INT64: {
+                case INT64:
                     return new AWrappedAscNormalizedKeyComputerFactory(new Integer64NormalizedKeyComputerFactory());
-                }
-                case FLOAT: {
+                case FLOAT:
                     return new AWrappedAscNormalizedKeyComputerFactory(new FloatNormalizedKeyComputerFactory());
-                }
-                case DOUBLE: {
+                case DOUBLE:
                     return new AWrappedAscNormalizedKeyComputerFactory(new DoubleNormalizedKeyComputerFactory());
-                }
-                case STRING: {
+                case STRING:
                     return new AWrappedAscNormalizedKeyComputerFactory(new UTF8StringNormalizedKeyComputerFactory());
-                }
-                case BINARY: {
+                case BINARY:
                     return new AWrappedAscNormalizedKeyComputerFactory(new ByteArrayNormalizedKeyComputerFactory());
-                }
-                default: {
+                default:
                     return null;
-                }
             }
         } else {
             switch (aqlType.getTypeTag()) {
                 case DATE:
                 case TIME:
                 case YEARMONTHDURATION:
-                case INT32: {
+                case INT32:
                     return new AWrappedDescNormalizedKeyComputerFactory(new IntegerNormalizedKeyComputerFactory());
-                }
                 case DATETIME:
                 case DAYTIMEDURATION:
-                case INT64: {
+                case INT64:
                     return new AWrappedDescNormalizedKeyComputerFactory(new Integer64NormalizedKeyComputerFactory());
-                }
-                case FLOAT: {
+                case FLOAT:
                     return new AWrappedDescNormalizedKeyComputerFactory(new FloatNormalizedKeyComputerFactory());
-                }
-                case DOUBLE: {
+                case DOUBLE:
                     return new AWrappedDescNormalizedKeyComputerFactory(new DoubleNormalizedKeyComputerFactory());
-                }
-                case STRING: {
+                case STRING:
                     return new AWrappedDescNormalizedKeyComputerFactory(new UTF8StringNormalizedKeyComputerFactory());
-                }
-                case BINARY: {
+                case BINARY:
                     return new AWrappedDescNormalizedKeyComputerFactory(new ByteArrayNormalizedKeyComputerFactory());
-                }
-                default: {
+                default:
                     return null;
-                }
             }
         }
     }

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1363
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I581d268b12017fcf17b5b29f7183e07deae6e931
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Till Westmann <tillw@apache.org>

Mime
View raw message