File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/java/org/apache/parquet/cli
test/java/org/apache/parquet/cli Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2727import com .google .common .collect .ImmutableSet ;
2828import java .io .FileInputStream ;
2929import java .io .InputStream ;
30- import java .util .Properties ;
3130import java .util .List ;
31+ import java .util .Properties ;
3232import java .util .Set ;
3333import org .apache .commons .logging .LogFactory ;
3434import 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
Original file line number Diff line number Diff line change 2020
2121import java .io .File ;
2222import java .io .FileWriter ;
23- import java .io .IOException ;
24- import org .apache .hadoop .conf .Configurable ;
2523import org .apache .hadoop .conf .Configuration ;
2624import org .apache .hadoop .util .ToolRunner ;
2725import 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 ());
You can’t perform that action at this time.
0 commit comments