Laszlo Hornyak has uploaded a new change for review.

Change subject: engine: cleanup RedirectServlet (5/N)
......................................................................

engine: cleanup RedirectServlet (5/N)

- removed declaration of variables before they are used

Change-Id: I2a9193e02ac219f1a281e017aa2b69d57211b53e
Signed-off-by: Laszlo Hornyak <[email protected]>
---
M 
backend/manager/modules/root/src/main/java/org/ovirt/engine/core/redirect/RedirectServlet.java
1 file changed, 4 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/54/14554/1

diff --git 
a/backend/manager/modules/root/src/main/java/org/ovirt/engine/core/redirect/RedirectServlet.java
 
b/backend/manager/modules/root/src/main/java/org/ovirt/engine/core/redirect/RedirectServlet.java
index f2332f8..0009722 100644
--- 
a/backend/manager/modules/root/src/main/java/org/ovirt/engine/core/redirect/RedirectServlet.java
+++ 
b/backend/manager/modules/root/src/main/java/org/ovirt/engine/core/redirect/RedirectServlet.java
@@ -40,16 +40,14 @@
 
     private String getConfigValue(ConfigurationValues conf) {
         String retVal = null;
-        BackendInternal backend = null;
-        GetConfigurationValueParameters params = null;
-        VdcQueryReturnValue v = null;
 
         try {
-            backend = (BackendInternal) EjbUtils.findBean(BeanType.BACKEND, 
BeanProxyType.LOCAL);
+            BackendInternal backend = (BackendInternal) 
EjbUtils.findBean(BeanType.BACKEND, BeanProxyType.LOCAL);
 
-            params = new GetConfigurationValueParameters(conf, 
ConfigCommon.defaultConfigurationVersion);
+            GetConfigurationValueParameters params =
+                    new GetConfigurationValueParameters(conf, 
ConfigCommon.defaultConfigurationVersion);
 
-            v = backend.runInternalQuery(VdcQueryType.GetConfigurationValue, 
params);
+            VdcQueryReturnValue v = 
backend.runInternalQuery(VdcQueryType.GetConfigurationValue, params);
             if (v != null) {
                 retVal = (v.getSucceeded() && StringUtils.isNotEmpty((String) 
v.getReturnValue()))
                     ? v.getReturnValue().toString() : null;


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a9193e02ac219f1a281e017aa2b69d57211b53e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to