Closes gh-4572
This commit is contained in:
Johnny Lim
2015-11-21 12:12:05 +09:00
committed by Stephane Nicoll
parent 31d7ebc96e
commit 8ec00c35bf
40 changed files with 70 additions and 70 deletions

View File

@@ -71,17 +71,17 @@ public final class ConfigurationMetadataRepositoryJsonBuilder {
* ignored.
* <p>
* Leaves the stream open when done.
* @param inputstream the source input stream
* @param inputStream the source input stream
* @param charset the charset of the input
* @return this builder
* @throws IOException in case of I/O errors
*/
public ConfigurationMetadataRepositoryJsonBuilder withJsonResource(
InputStream inputstream, Charset charset) throws IOException {
if (inputstream == null) {
InputStream inputStream, Charset charset) throws IOException {
if (inputStream == null) {
throw new IllegalArgumentException("InputStream must not be null.");
}
this.repositories.add(add(inputstream, charset));
this.repositories.add(add(inputStream, charset));
return this;
}