Bump commons-io to 2.11.0 (#11460)

* Bump commons-io to 2.11.0

* Address comments

* Remove try catch

* Fix checkstyle
This commit is contained in:
Dongjoon Hyun 2021-07-19 15:47:14 -07:00 committed by GitHub
parent 2705fe98fa
commit 5037493e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 16 deletions

View File

@ -9,5 +9,3 @@ updates:
# pin ZooKeeper dependencies to 3.5.x
- dependency-name: "org.apache.zookeeper"
versions: "[3.6,)"
# Keep commons-io at 2.6 until https://issues.apache.org/jira/browse/IO-741 is resolved
- dependency-name: "commons-io:commons-io"

View File

@ -35,7 +35,7 @@
<properties>
<confluent.version>6.0.1</confluent.version>
<commons-io.version>2.6</commons-io.version>
<commons-io.version>2.11.0</commons-io.version>
</properties>
<repositories>

View File

@ -545,13 +545,13 @@ name: Apache Commons IO
license_category: binary
module: java-core
license_name: Apache License version 2.0
version: 2.6
version: 2.11.0
libraries:
- commons-io: commons-io
notices:
- commons-io: |
Apache Commons IO
Copyright 2002-2017 The Apache Software Foundation
Copyright 2002-2021 The Apache Software Foundation
---

View File

@ -224,7 +224,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>

View File

@ -41,7 +41,7 @@ public class InlineFirehose implements Firehose
private final StringInputRowParser parser;
private final LineIterator lineIterator;
InlineFirehose(String data, StringInputRowParser parser) throws IOException
InlineFirehose(String data, StringInputRowParser parser)
{
this.parser = parser;

View File

@ -31,7 +31,6 @@ import org.apache.druid.data.input.impl.StringInputRowParser;
import javax.annotation.Nullable;
import java.io.File;
import java.io.IOException;
import java.util.Objects;
import java.util.stream.Stream;
@ -56,7 +55,7 @@ public class InlineFirehoseFactory implements FiniteFirehoseFactory<StringInputR
}
@Override
public Firehose connect(StringInputRowParser parser, @Nullable File temporaryDirectory) throws IOException
public Firehose connect(StringInputRowParser parser, @Nullable File temporaryDirectory)
{
return new InlineFirehose(data, parser);
}

View File

@ -153,7 +153,7 @@ public class LocalDataSegmentPusherTest
public void testPushCannotCreateDirectory() throws IOException
{
exception.expect(IOException.class);
exception.expectMessage("Unable to create directory");
exception.expectMessage("Cannot create directory");
config.storageDirectory = new File(config.storageDirectory, "xxx");
Assert.assertTrue(config.storageDirectory.mkdir());
config.storageDirectory.setWritable(false);

View File

@ -208,12 +208,7 @@ public class InlineFirehoseTest
private static InlineFirehose create(String data)
{
try {
return new InlineFirehose(data, PARSER);
}
catch (IOException e) {
throw new RuntimeException(e);
}
return new InlineFirehose(data, PARSER);
}
private static void assertRowValue(String expected, InputRow row)