Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove redundant array creation for varargs

  • Loading branch information...
commit 2c7cee0f80bf0acd32b6f50b40c65bd4479b16e9 1 parent 030502d
@peterlynch peterlynch authored
View
16 ...main/java/org/sonatype/nexus/proxy/storage/remote/httpclient/HttpClientRemoteStorage.java
@@ -70,7 +70,7 @@
/**
* Apache HTTP client (4) {@link RemoteRepositoryStorage} implementation.
- *
+ *
* @since 2.0
*/
@Named( HttpClientRemoteStorage.PROVIDER_STRING )
@@ -431,7 +431,7 @@ protected String getS3FlagKey()
* <p/>
* In case of any exception thrown by HttpClient, it will release the connection. In other cases it is the duty of
* caller to do it, or process the input stream.
- *
+ *
* @param repository to execute the HTTP method fpr
* @param request resource store request that triggered the HTTP request
* @param httpRequest HTTP request to be executed
@@ -455,8 +455,8 @@ HttpResponse executeRequest( final ProxyRepository repository, final ResourceSto
stopwatch.stop();
if ( timingLog.isDebugEnabled() )
{
- timingLog.debug( "[{}] {} {} took {}", new Object[] { repository.getId(), httpRequest.getMethod(),
- httpRequest.getURI(), stopwatch } );
+ timingLog.debug( "[{}] {} {} took {}", repository.getId(), httpRequest.getMethod(),
+ httpRequest.getURI(), stopwatch );
}
}
}
@@ -546,7 +546,7 @@ else if ( statusCode == HttpStatus.SC_OK && proxyReturnedError )
/**
* Executes the HTTP request and automatically releases any related resources.
- *
+ *
* @param repository to execute the HTTP method fpr
* @param request resource store request that triggered the HTTP request
* @param httpRequest HTTP request to be executed
@@ -564,7 +564,7 @@ private HttpResponse executeRequestAndRelease( final ProxyRepository repository,
/**
* Make date from header.
- *
+ *
* @param date the date
* @return the long
*/
@@ -592,7 +592,7 @@ private long makeDateFromHeader( final Header date )
/**
* Appends repository configured additional query string to provided URL.
- *
+ *
* @param url to append to
* @param repository that may contain additional query string
* @return URL with appended query string or original URL if repository does not have an configured query string
@@ -629,7 +629,7 @@ private URL appendQueryString( final URL url, final ProxyRepository repository )
/**
* Releases connection resources (back to pool). If an exception appears during releasing, exception is just logged.
- *
+ *
* @param httpResponse to be released
*/
private void release( final HttpResponse httpResponse )

0 comments on commit 2c7cee0

Please sign in to comment.
Something went wrong with that request. Please try again.