Ignore:
Timestamp:
2015-05-15T22:50:00+02:00 (5 years ago)
Author:
Don-vip
Message:

remove public mutable array Main.commandLineArgs

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/RestartAction.java

    r7937 r8356  
    1111import java.lang.management.ManagementFactory;
    1212import java.util.ArrayList;
    13 import java.util.Arrays;
    1413import java.util.List;
    1514
     
    137136                }
    138137                // finally add program arguments
    139                 cmd.addAll(Arrays.asList(Main.commandLineArgs));
     138                cmd.addAll(Main.getCommandLineArgs());
    140139            }
    141140            Main.info("Restart "+cmd);
  • trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java

    r8061 r8356  
    132132            // Ignore exception
    133133        }
    134         if (Main.commandLineArgs.length > 0) {
    135             text.append("Program arguments: "+ Arrays.toString(Main.commandLineArgs));
     134        List<String> commandLineArgs = Main.getCommandLineArgs();
     135        if (!commandLineArgs.isEmpty()) {
     136            text.append("Program arguments: "+ Arrays.toString(commandLineArgs.toArray()));
    136137            text.append("\n");
    137138        }
Note: See TracChangeset for help on using the changeset viewer.