Changeset 190


Ignore:
Timestamp:
09/24/11 02:00:59 (13 years ago)
Author:
sherbold
Message:
  • code documentation and formatting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDdeleteObject.java

    r189 r190  
    1010/** 
    1111 * <p> 
    12  * Command to delete object from {@link GlobalDataContainer}.  
     12 * Command to delete object from {@link GlobalDataContainer}. 
    1313 * </p> 
    1414 *  
     
    1818public class CMDdeleteObject implements Command { 
    1919 
     20        /* 
     21         * (non-Javadoc) 
     22         *  
     23         * @see de.ugoe.cs.util.console.Command#help() 
     24         */ 
    2025        @Override 
    2126        public void help() { 
     
    2328        } 
    2429 
     30        /* 
     31         * (non-Javadoc) 
     32         *  
     33         * @see de.ugoe.cs.util.console.Command#run(java.util.List) 
     34         */ 
    2535        @Override 
    2636        public void run(List<Object> parameters) { 
     
    3141                        throw new InvalidParameterException(); 
    3242                } 
    33                 boolean deleted = GlobalDataContainer.getInstance().removeData(objectName); 
    34                 if( !deleted ) { 
     43                boolean deleted = GlobalDataContainer.getInstance().removeData( 
     44                                objectName); 
     45                if (!deleted) { 
    3546                        Console.println("Object not found in storage!"); 
    3647                } 
Note: See TracChangeset for help on using the changeset viewer.