Skip to content

Commit

Permalink
Fix vararg warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
metatype committed Nov 7, 2018
1 parent 6f950fd commit 61083a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.List;

import com.fasterxml.jackson.databind.JsonNode;
Expand All @@ -31,7 +33,6 @@
import org.assertj.core.api.ListAssert;

import org.apache.geode.internal.logging.LogService;
import org.apache.geode.internal.util.ArrayUtils;

public class HttpResponseAssert extends AbstractAssert<HttpResponseAssert, HttpResponse> {
private static Logger logger = LogService.getLogger();
Expand Down Expand Up @@ -62,7 +63,7 @@ public HttpResponseAssert hasStatusCode(int... httpStatus) {
int statusCode = actual.getStatusLine().getStatusCode();
assertThat(statusCode)
.describedAs(logMessage + "\n" + descriptionText())
.isIn(ArrayUtils.toIntegerArray(httpStatus));
.isIn(Arrays.stream(httpStatus).boxed().collect(Collectors.toList()));
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <H1>Partitioned Regions</H1>
bucket splitting with extensible hashing.</P>

<P align="center">
<IMG src="{@docRoot}/javadoc-images/extensible-hashing.gif" width="641" width="292">
<IMG src="{@docRoot}/javadoc-images/extensible-hashing.gif" width="641" height="292">
</P>

<P>A <code>BucketInfo</code> contains metadata about a bucket (most
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public Result createRegion(
if (!specifiedGatewaySenders.isEmpty()) {
return ResultBuilder.createUserErrorResult(CliStrings.format(
CliStrings.CREATE_REGION__MSG__SPECIFY_VALID_GATEWAYSENDER_ID_UNKNOWN_0,
(String[]) gatewaySenderIds));
(Object[]) gatewaySenderIds));
}
}
}
Expand Down Expand Up @@ -429,7 +429,7 @@ public Result createRegion(
} else {
return ResultBuilder.createUserErrorResult(
CliStrings.format(CliStrings.CREATE_REGION__MSG__GROUPS_0_ARE_INVALID,
(String[]) groups));
(Object[]) groups));
}
}

Expand Down

0 comments on commit 61083a5

Please sign in to comment.