Skip to content

Commit d812f4a

Browse files
committed
Spotless applied
1 parent 6980703 commit d812f4a

File tree

1 file changed

+19
-20
lines changed
  • data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataimport

1 file changed

+19
-20
lines changed

data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommand.java

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
@CommandLine.Command(name = "import", description = "Import data into a ScalarDB table")
5151
public class ImportCommand extends ImportCommandOptions implements Callable<Integer> {
5252

53-
private static final Logger logger = LoggerFactory.getLogger(ImportCommand.class);
53+
private static final Logger logger = LoggerFactory.getLogger(ImportCommand.class);
5454

5555
/** Spec injected by PicoCli */
5656
@Spec CommandSpec spec;
@@ -284,28 +284,27 @@ private Optional<ControlFile> parseControlFileFromPath(String controlFilePath) {
284284
spec.commandLine(), DataLoaderError.INVALID_CONTROL_FILE.buildMessage(controlFilePath));
285285
}
286286
}
287-
/** Warns about deprecated options that are no longer used and have been completely ignored. */
288-
private void warnAboutIgnoredDeprecatedOptions() {
289-
CommandLine.ParseResult parseResult = spec.commandLine().getParseResult();
290-
boolean hasRawRecordOption =
291-
parseResult.hasMatchedOption(DEPRECATED_LOG_RAW_RECORDS_OPTION)
292-
|| parseResult.hasMatchedOption(DEPRECATED_LOG_RAW_RECORDS_OPTION_SHORT);
287+
/** Warns about deprecated options that are no longer used and have been completely ignored. */
288+
private void warnAboutIgnoredDeprecatedOptions() {
289+
CommandLine.ParseResult parseResult = spec.commandLine().getParseResult();
290+
boolean hasRawRecordOption =
291+
parseResult.hasMatchedOption(DEPRECATED_LOG_RAW_RECORDS_OPTION)
292+
|| parseResult.hasMatchedOption(DEPRECATED_LOG_RAW_RECORDS_OPTION_SHORT);
293293

294-
if (hasRawRecordOption) {
295-
// Use picocli's ANSI support for colored warning output
296-
CommandLine.Help.Ansi ansi = CommandLine.Help.Ansi.AUTO;
297-
String warning =
298-
ansi.string(
299-
"@|bold,yellow The "
300-
+ DEPRECATED_LOG_RAW_RECORDS_OPTION
301-
+ " option is deprecated and no longer has any effect. "
302-
+ "This option is no longer required because failure records are "
303-
+ "always logged by default.|@");
294+
if (hasRawRecordOption) {
295+
// Use picocli's ANSI support for colored warning output
296+
CommandLine.Help.Ansi ansi = CommandLine.Help.Ansi.AUTO;
297+
String warning =
298+
ansi.string(
299+
"@|bold,yellow The "
300+
+ DEPRECATED_LOG_RAW_RECORDS_OPTION
301+
+ " option is deprecated and no longer has any effect. "
302+
+ "This option is no longer required because failure records are "
303+
+ "always logged by default.|@");
304304

305-
logger.warn(warning);
306-
}
305+
logger.warn(warning);
307306
}
308-
307+
}
309308

310309
/**
311310
* Validates that deprecated and new options are not both specified.

0 commit comments

Comments
 (0)