incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cr...@apache.org
Subject [02/45] git commit: Fixing strange problem where eclipse was compiling correctly and javac via maven was not.
Date Sun, 26 Oct 2014 17:55:00 GMT
Fixing strange problem where eclipse was compiling correctly and javac via maven was not.


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

Branch: refs/heads/blur-384-random-port-cleanup
Commit: 7701555c702ec7f110663de828f04adc293b2520
Parents: ac9b75f
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Fri Sep 26 13:57:43 2014 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Fri Sep 26 13:57:43 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/blur/command/BaseCommandManager.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/7701555c/blur-core/src/main/java/org/apache/blur/command/BaseCommandManager.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/command/BaseCommandManager.java b/blur-core/src/main/java/org/apache/blur/command/BaseCommandManager.java
index 436f641..30b8fc8 100644
--- a/blur-core/src/main/java/org/apache/blur/command/BaseCommandManager.java
+++ b/blur-core/src/main/java/org/apache/blur/command/BaseCommandManager.java
@@ -124,18 +124,18 @@ public class BaseCommandManager implements Closeable {
     if (command == null) {
       return null;
     }
-    Class<? extends Command<?>> clazz = (Class<? extends Command<?>>)
command.getClass();
+    Class<Command<?>> clazz = (Class<Command<?>>) command.getClass();
     Map<String, String> arguments = new TreeMap<String, String>();
     Argument[] args = getArgumentArray(clazz, optional);
     addArguments(arguments, args);
     if (optional) {
       if (!(command instanceof ShardRoute)) {
-        Argument[] argumentArray = getArgumentArray((Class<? extends Command<?>>)
Command.class, optional);
+        Argument[] argumentArray = getArgumentArray(Command.class, optional);
         addArguments(arguments, argumentArray);
       }
     } else {
       if (!(command instanceof TableRoute)) {
-        Argument[] argumentArray = getArgumentArray((Class<? extends Command<?>>)
Command.class, optional);
+        Argument[] argumentArray = getArgumentArray(Command.class, optional);
         addArguments(arguments, argumentArray);
       }
     }
@@ -151,7 +151,7 @@ public class BaseCommandManager implements Closeable {
     }
   }
 
-  protected Argument[] getArgumentArray(Class<? extends Command<?>> clazz, boolean
optional) {
+  protected Argument[] getArgumentArray(Class<?> clazz, boolean optional) {
     if (optional) {
       OptionalArguments arguments = clazz.getAnnotation(OptionalArguments.class);
       if (arguments == null) {


Mime
View raw message