Roy Golan has uploaded a new change for review.

Change subject: core: fix generics errors in CommandFactory
......................................................................

core: fix generics errors in CommandFactory

Change-Id: I6ea20e92b214162ea4a19c2194f1ae85b52c3614
Signed-off-by: Roy Golan <rgo...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandsFactory.java
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/14/17614/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandsFactory.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandsFactory.java
index b445082..4e1c953 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandsFactory.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandsFactory.java
@@ -124,9 +124,9 @@
         }
         for (String commandPackage : COMMAND_PACKAGES) {
             String className = String.format(CLASS_NAME_FORMAT, 
commandPackage, name, suffix);
-            Class<CommandBase<?>> type = loadClass(className);
+            Class<CommandBase<? extends VdcActionParametersBase>> type = 
loadClass(className);
             if (type != null) {
-                Class<CommandBase<?>> cachedType = 
commandsCache.putIfAbsent(key, type); // update cache
+                Class<CommandBase<? extends VdcActionParametersBase>> 
cachedType = commandsCache.putIfAbsent(key, type); // update cache
                 return cachedType == null ? type : cachedType;
             }
         }
@@ -174,4 +174,5 @@
     }
 
     private static Log log = LogFactory.getLog(CommandsFactory.class);
+
 }


-- 
To view, visit http://gerrit.ovirt.org/17614
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6ea20e92b214162ea4a19c2194f1ae85b52c3614
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to