Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse2016-10-18 05:05:45 +0000
committerDavid Pursehouse2016-10-18 05:15:53 +0000
commitc0433f4fb7d729236f5d4b6e0e2341aa38a65fb3 (patch)
treed89112cc2a361bb51d18fb0138fdec500498b969 /org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http
parentbdf3e43d7652e8fbfbf3416d8b8df1c6dbddbc14 (diff)
downloadjgit-c0433f4fb7d729236f5d4b6e0e2341aa38a65fb3.tar.gz
jgit-c0433f4fb7d729236f5d4b6e0e2341aa38a65fb3.tar.xz
jgit-c0433f4fb7d729236f5d4b6e0e2341aa38a65fb3.zip
Use valueOf rather than constructor for Integer and Boolean
Change-Id: I1c65b2e40ba6ec5860903b11b4631e014f3dc5ce Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http')
-rw-r--r--org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java6
-rw-r--r--org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/TemporaryBufferEntity.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java b/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
index c6e557aba4..5a53490eed 100644
--- a/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
+++ b/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/HttpClientConnection.java
@@ -295,11 +295,11 @@ public class HttpClientConnection implements HttpConnection {
}
public void setConnectTimeout(int timeout) {
- this.timeout = new Integer(timeout);
+ this.timeout = Integer.valueOf(timeout);
}
public void setReadTimeout(int readTimeout) {
- this.readTimeout = new Integer(readTimeout);
+ this.readTimeout = Integer.valueOf(readTimeout);
}
public String getContentType() {
@@ -328,7 +328,7 @@ public class HttpClientConnection implements HttpConnection {
}
public void setInstanceFollowRedirects(boolean followRedirects) {
- this.followRedirects = new Boolean(followRedirects);
+ this.followRedirects = Boolean.valueOf(followRedirects);
}
public void setDoOutput(boolean dooutput) {
diff --git a/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/TemporaryBufferEntity.java b/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/TemporaryBufferEntity.java
index 377e5ca572..93328c96ca 100644
--- a/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/TemporaryBufferEntity.java
+++ b/org.eclipse.jgit.http.apache/src/org/eclipse/jgit/transport/http/apache/TemporaryBufferEntity.java
@@ -105,7 +105,7 @@ public class TemporaryBufferEntity extends AbstractHttpEntity
* @param contentLength
*/
public void setContentLength(int contentLength) {
- this.contentLength = new Integer(contentLength);
+ this.contentLength = Integer.valueOf(contentLength);
}
/**

Back to the top