Skip to content

Commit

Permalink
fix spotless findings
Browse files Browse the repository at this point in the history
  • Loading branch information
belagertem committed Dec 12, 2024
1 parent 945e1ce commit d4db819
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public class CommandLineOptions {
* @param commandLineArguments array of commandline options, as usually passed to a main function.
*/
@SuppressFBWarnings(
value = {"DM_EXIT"},
justification = "Invalid arguments must lead to a halt.")
value = {"DM_EXIT"},
justification = "Invalid arguments must lead to a halt.")
public CommandLineOptions(final String[] commandLineArguments) {

final var options = setupOptions();
Expand Down Expand Up @@ -181,21 +181,21 @@ private Options setupOptions() {
}
{
final String description =
"Facility of the target provider, overrides setting from configuration if provided";
"Facility of the target provider, overrides setting from configuration if provided";
final var deviceLocOpt = new Option("fac", DEVICE_LOCATION_FACILITY, true, description);
deviceLocOpt.setRequired(false);
options.addOption(deviceLocOpt);
}
{
final String description =
"Building of the target provider, overrides setting from configuration if provided";
"Building of the target provider, overrides setting from configuration if provided";
final var deviceLocOpt = new Option("bldng", DEVICE_LOCATION_BUILDING, true, description);
deviceLocOpt.setRequired(false);
options.addOption(deviceLocOpt);
}
{
final String description =
"Point of care of the target provider, overrides setting from configuration if provided";
"Point of care of the target provider, overrides setting from configuration if provided";
final var deviceLocOpt = new Option("poc", DEVICE_LOCATION_POINT_OF_CARE, true, description);
deviceLocOpt.setRequired(false);
options.addOption(deviceLocOpt);
Expand All @@ -220,21 +220,21 @@ private Options setupOptions() {
}
{
final String description = "IP address of the adapter to use for communication,"
+ " overrides setting from configuration if provided";
+ " overrides setting from configuration if provided";
final var consumerTargetIpOpt = new Option("ip", IP_ADDRESS, true, description);
consumerTargetIpOpt.setRequired(false);
options.addOption(consumerTargetIpOpt);
}
{
final String description = "Base directory to store test runs in, creates a timestamped SDCcc run"
+ " directory inside the base directory. Defaults to current working directory as base.";
+ " directory inside the base directory. Defaults to current working directory as base.";
final var testRunDirectoryOpt = new Option("d", TEST_RUN_DIRECTORY, true, description);
testRunDirectoryOpt.setRequired(false);
options.addOption(testRunDirectoryOpt);
}
{
final String description =
"If set to true, no directories are created in the directory configured with test_run_directory";
"If set to true, no directories are created in the directory configured with test_run_directory";
final var noSubdirectoriesOpt = new Option("ns", NO_SUBDIRECTORIES, true, description);
noSubdirectoriesOpt.setRequired(false);
noSubdirectoriesOpt.setType(Boolean.class);
Expand Down Expand Up @@ -322,19 +322,19 @@ public Level getFileLogLevel() {
private static void printNetworkAdapterInformation() throws SocketException {
System.out.println("%nAvailable network adapters are:%n");
final Iterator<NetworkInterface> networkInterfaceIterator =
NetworkInterface.getNetworkInterfaces().asIterator();
NetworkInterface.getNetworkInterfaces().asIterator();
while (networkInterfaceIterator.hasNext()) {
final NetworkInterface networkInterface = networkInterfaceIterator.next();
System.out.printf(
"\tNetwork interface: %s [isUp=%s;isLoopBack=%s,supportsMulticast=%s,MTU=%s,isVirtual=%s]%n",
networkInterface.getName(),
networkInterface.isUp(),
networkInterface.isLoopback(),
networkInterface.supportsMulticast(),
networkInterface.getMTU(),
networkInterface.isVirtual());
"\tNetwork interface: %s [isUp=%s;isLoopBack=%s,supportsMulticast=%s,MTU=%s,isVirtual=%s]%n",
networkInterface.getName(),
networkInterface.isUp(),
networkInterface.isLoopback(),
networkInterface.supportsMulticast(),
networkInterface.getMTU(),
networkInterface.isVirtual());
final Iterator<InetAddress> inetAddressIterator =
networkInterface.getInetAddresses().asIterator();
networkInterface.getInetAddresses().asIterator();
int i = 0;
while (inetAddressIterator.hasNext()) {
final var addr = inetAddressIterator.next();
Expand Down

0 comments on commit d4db819

Please sign in to comment.