Changeset 320


Ignore:
Timestamp:
12/14/11 16:42:44 (13 years ago)
Author:
sherbold
Message:
  • improved handling of invalid package names (empty string, null) of the de.ugoe.cs.util.console.CommandExecuter?
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaHelperLib/src/de/ugoe/cs/util/console/CommandExecuter.java

    r244 r320  
    8484         * @param pkg 
    8585         *            package where commands are located 
     86         * @throws InvalidParameterException 
     87         *             thrown if the package name is null or empty string 
    8688         */ 
    8789        public void addCommandPackage(String pkg) { 
     90                if ("".equals(pkg) || pkg == null) { 
     91                        throw new InvalidParameterException( 
     92                                        "package name must not be null or empty string"); 
     93                } 
    8894                commandPackageList.add(pkg); 
    8995        } 
Note: See TracChangeset for help on using the changeset viewer.