Skip to content

Commit

Permalink
Use varargs parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Feb 9, 2024
1 parent ae33ce0 commit eafbd44
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/io/calimero/tools/BaosClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public BaosClient(final String[] args)
*
* @param args command line options for BAOS communication
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
final BaosClient baos = new BaosClient(args);
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/DeviceInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public DeviceInfo(final String[] args)
*
* @param args command line options for running the device info tool
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
final DeviceInfo d = new DeviceInfo(args);
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/Discover.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public Discover(final String[] args) throws KNXException
*
* @param args command line options for discovery or self-description
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
final Discover d = new Discover(args);
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/IPConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ protected IPConfig(final String[] args)
*
* @param args command line options to run the tool
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
new IPConfig(args).run();
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private Main() {}
*
* @param args the first argument being the tool to invoke, followed by the command line options of that tool
*/
public static void main(final String[] args)
public static void main(final String... args)
{
if (args.length == 1 && (args[0].equals("-v") || args[0].equals("--version"))) {
System.out.println(Settings.getLibraryHeader(false));
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/Memory.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public Memory(final String[] args) {
*
* @param args command line options for running the device info tool
*/
public static void main(final String[] args) {
public static void main(final String... args) {
try {
final Memory d = new Memory(args);
final ShutdownHandler sh = new ShutdownHandler().register();
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/NetworkMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public NetworkMonitor(final String[] args)
*
* @param args command line options for network monitoring
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
// if listener is null, we create our default one
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/ProcComm.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public ProcComm(final String[] args)
*
* @param args command line options for process communication
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
final ProcComm pc = new ProcComm(args);
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/ProgMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public ProgMode(final String[] args)
*
* @param args command line arguments for the tool
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
new ProgMode(args).run();
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/PropClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public PropClient(final String[] args)
*
* @param args command line options for property client
*/
public static void main(final String[] args)
public static void main(final String... args)
{
Property.out = LogService.getLogger("io.calimero.tools");
try {
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/Property.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public Property(final String[] args)
*
* @param args command line options for the property tool
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
new Property(args).run();
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/Restart.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public Restart(final String[] args) {
*
* @param args command line arguments for the tool
*/
public static void main(final String[] args) {
public static void main(final String... args) {
try {
new Restart(args).run();
}
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/ScanDevices.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public class ScanDevices implements Runnable
*
* @param args command line options for running the device info tool
*/
public static void main(final String[] args)
public static void main(final String... args)
{
try {
final ScanDevices scan = new ScanDevices(args);
Expand Down
2 changes: 1 addition & 1 deletion src/io/calimero/tools/TrafficMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public TrafficMonitor(final String[] args) {
*
* @param args command line options for traffic monitoring
*/
public static void main(final String[] args) {
public static void main(final String... args) {
try {
final TrafficMonitor pc = new TrafficMonitor(args);
final ShutdownHandler sh = new Main.ShutdownHandler().register();
Expand Down

0 comments on commit eafbd44

Please sign in to comment.