Skip to content

Commit af71b7c

Browse files
committed
lint
1 parent a6b4194 commit af71b7c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

parquet-cli/src/main/java/org/apache/parquet/cli/Main.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
import com.google.common.collect.ImmutableSet;
2828
import java.io.FileInputStream;
2929
import java.io.InputStream;
30-
import java.util.Properties;
3130
import java.util.List;
31+
import java.util.Properties;
3232
import java.util.Set;
3333
import org.apache.commons.logging.LogFactory;
3434
import org.apache.hadoop.conf.Configurable;
@@ -188,7 +188,8 @@ public int run(String[] args) throws Exception {
188188
props.forEach((key, value) -> merged.set(key.toString(), value.toString()));
189189
console.debug("Loaded configuration from file: {}", configFilePath);
190190
} catch (Exception e) {
191-
throw new IllegalArgumentException("Failed to load config file '" + configFilePath + "': " + e.getMessage(), e);
191+
throw new IllegalArgumentException(
192+
"Failed to load config file '" + configFilePath + "': " + e.getMessage(), e);
192193
}
193194
}
194195

parquet-cli/src/test/java/org/apache/parquet/cli/MainTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
import java.io.File;
2222
import java.io.FileWriter;
23-
import java.io.IOException;
24-
import org.apache.hadoop.conf.Configurable;
2523
import org.apache.hadoop.conf.Configuration;
2624
import org.apache.hadoop.util.ToolRunner;
2725
import org.junit.Assert;
@@ -46,7 +44,8 @@ public void testConfigFileLoading() throws Exception {
4644
}
4745

4846
try {
49-
new Main(LoggerFactory.getLogger(MainTest.class)).run(new String[]{"--config-file", configFile.getAbsolutePath(), "help"});
47+
new Main(LoggerFactory.getLogger(MainTest.class))
48+
.run(new String[] {"--config-file", configFile.getAbsolutePath(), "help"});
5049
Assert.assertTrue("Config file loading should not throw exception", true);
5150
} catch (IllegalArgumentException e) {
5251
Assert.fail("Config file loading failed: " + e.getMessage());

0 commit comments

Comments
 (0)