Fix indentation and remove commented code
This commit is contained in:
1 parent
1be46776e5
commit
10c56bda27
1 file changed
+6
-6
@@ -78,11 +78,13 @@ class Request
|
|||||||
Response doSend() throws IOException
|
Response doSend() throws IOException
|
||||||
{
|
{
|
||||||
connection.setRequestMethod(this.verb.name());
|
connection.setRequestMethod(this.verb.name());
|
||||||
if (connectTimeout != null) {
|
if (connectTimeout != null)
|
||||||
connection.setConnectTimeout(connectTimeout.intValue());
|
{
|
||||||
|
connection.setConnectTimeout(connectTimeout.intValue());
|
||||||
}
|
}
|
||||||
if (readTimeout != null) {
|
if (readTimeout != null)
|
||||||
connection.setReadTimeout(readTimeout.intValue());
|
{
|
||||||
|
connection.setReadTimeout(readTimeout.intValue());
|
||||||
}
|
}
|
||||||
addHeaders(connection);
|
addHeaders(connection);
|
||||||
if (verb.equals(Verb.PUT) || verb.equals(Verb.POST))
|
if (verb.equals(Verb.PUT) || verb.equals(Verb.POST))
|
||||||
@@ -287,7 +289,6 @@ class Request
|
|||||||
public void setConnectTimeout(int duration, TimeUnit unit)
|
public void setConnectTimeout(int duration, TimeUnit unit)
|
||||||
{
|
{
|
||||||
this.connectTimeout = unit.toMillis(duration);
|
this.connectTimeout = unit.toMillis(duration);
|
||||||
//this.connection.setConnectTimeout((int) unit.toMillis(duration));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -300,7 +301,6 @@ class Request
|
|||||||
public void setReadTimeout(int duration, TimeUnit unit)
|
public void setReadTimeout(int duration, TimeUnit unit)
|
||||||
{
|
{
|
||||||
this.readTimeout = unit.toMillis(duration);
|
this.readTimeout = unit.toMillis(duration);
|
||||||
//this.connection.setReadTimeout((int) unit.toMillis(duration));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user