Repository: asterixdb Updated Branches: refs/heads/master d5839b93e -> 2da225b70
remove more useless curly braces Change-Id: I581d268b12017fcf17b5b29f7183e07deae6e931 Reviewed-on: https://asterix-gerrit.ics.uci.edu/1363 Reviewed-by: abdullah alamoudi <[email protected]> Sonar-Qube: Jenkins <[email protected]> Tested-by: Jenkins <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/2da225b7 Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/2da225b7 Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/2da225b7 Branch: refs/heads/master Commit: 2da225b702311847e32765a15f75f0901ec16159 Parents: d5839b9 Author: Till Westmann <[email protected]> Authored: Mon Nov 28 18:39:58 2016 -0800 Committer: Till Westmann <[email protected]> Committed: Mon Nov 28 20:47:39 2016 -0800 ---------------------------------------------------------------------- ...AqlNormalizedKeyComputerFactoryProvider.java | 42 +++++++------------- 1 file changed, 14 insertions(+), 28 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/2da225b7/asterixdb/asterix-om/src/main/java/org/apache/asterix/formats/nontagged/AqlNormalizedKeyComputerFactoryProvider.java ---------------------------------------------------------------------- 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 @@ public class AqlNormalizedKeyComputerFactoryProvider implements INormalizedKeyCo 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; - } } } }
