ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [02/50] [abbrv] incubator-ignite git commit: # IGNITE-1121 fix warnings.
Date Fri, 31 Jul 2015 06:10:38 GMT
# IGNITE-1121 fix warnings.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/8e050e9f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/8e050e9f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/8e050e9f

Branch: refs/heads/ignite-843
Commit: 8e050e9fa4ab1556ea853d7d7cdb6078bdd2c09f
Parents: ea15083
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Fri Jul 24 13:57:29 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Fri Jul 24 13:57:29 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/agent/Agent.java         | 5 ++---
 .../main/java/org/apache/ignite/agent/AgentCommandLine.java  | 2 +-
 .../java/org/apache/ignite/agent/messages/AuthMessage.java   | 8 ++++----
 .../java/org/apache/ignite/agent/messages/AuthResult.java    | 6 +++---
 .../java/org/apache/ignite/agent/messages/RestRequest.java   | 2 +-
 .../java/org/apache/ignite/agent/messages/RestResult.java    | 4 ++--
 6 files changed, 13 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e050e9f/modules/control-center-agent/src/main/java/org/apache/ignite/agent/Agent.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/Agent.java
b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/Agent.java
index d34854d..ca2ff51 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/Agent.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/Agent.java
@@ -24,7 +24,6 @@ import org.apache.http.client.methods.*;
 import org.apache.http.client.utils.*;
 import org.apache.http.entity.*;
 import org.apache.http.impl.client.*;
-import org.apache.http.message.*;
 import org.apache.ignite.agent.messages.*;
 
 import java.io.*;
@@ -68,8 +67,6 @@ public class Agent {
      * @param restReq Request.
      */
     public RestResult executeRest(RestRequest restReq) throws IOException, URISyntaxException
{
-        HttpRequestBase httpReq;
-
         URIBuilder builder = new URIBuilder(cfg.getNodeUri());
 
         String path = restReq.getPath();
@@ -89,6 +86,8 @@ public class Agent {
         if (restReq.getHeaders() != null)
             restReq.setHeaders(restReq.getHeaders());
 
+        HttpRequestBase httpReq;
+
         if ("GET".equalsIgnoreCase(restReq.getMethod()))
             httpReq = new HttpGet(builder.build());
         else if ("POST".equalsIgnoreCase(restReq.getMethod())) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e050e9f/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentCommandLine.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentCommandLine.java
b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentCommandLine.java
index 849c94b..f45bd86 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentCommandLine.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/AgentCommandLine.java
@@ -80,7 +80,7 @@ public class AgentCommandLine {
      * @param srvUri Server uri.
      */
     public void setServerUri(String srvUri) {
-        this.serverUri = srvUri;
+        serverUri = srvUri;
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e050e9f/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthMessage.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthMessage.java
b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthMessage.java
index 2cb3945..9a32a99 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthMessage.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthMessage.java
@@ -36,11 +36,11 @@ public class AuthMessage extends AbstractMessage {
 
     /**
      * @param login Login.
-     * @param password Password.
+     * @param pwd Password.
      */
-    public AuthMessage(String login, String password) {
+    public AuthMessage(String login, String pwd) {
         this.login = login;
-        this.password = password;
+        password = pwd;
     }
 
     /**
@@ -68,6 +68,6 @@ public class AuthMessage extends AbstractMessage {
      * @param pwd Password.
      */
     public void setPassword(String pwd) {
-        this.password = pwd;
+        password = pwd;
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e050e9f/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthResult.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthResult.java
b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthResult.java
index 85871ac..5513193 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthResult.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/AuthResult.java
@@ -49,9 +49,9 @@ public class AuthResult extends AbstractMessage {
     }
 
     /**
-     * @param message Message.
+     * @param msg Message.
      */
-    public void setMessage(String message) {
-        this.message = message;
+    public void setMessage(String msg) {
+        message = msg;
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e050e9f/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestRequest.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestRequest.java
b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestRequest.java
index e1f6db8..9c06332 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestRequest.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestRequest.java
@@ -94,7 +94,7 @@ public class RestRequest extends AbstractMessage {
      * @param mtd Method.
      */
     public void setMethod(String mtd) {
-        this.method = mtd;
+        method = mtd;
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/8e050e9f/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestResult.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestResult.java
b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestResult.java
index 5da5f18..16ffa1b 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestResult.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/messages/RestResult.java
@@ -44,7 +44,7 @@ public class RestResult extends AbstractMessage {
      * @param reqId Request id.
      */
     public void setRequestId(int reqId) {
-        this.requestId = reqId;
+        requestId = reqId;
     }
 
     /**
@@ -72,7 +72,7 @@ public class RestResult extends AbstractMessage {
      * @param msg Message.
      */
     public void setMessage(String msg) {
-        this.message = msg;
+        message = msg;
     }
 
     /**


Mime
View raw message