Changeset 190 for trunk/EventBenchConsole/src/de/ugoe/cs
- Timestamp:
- 09/24/11 02:00:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDdeleteObject.java
r189 r190 10 10 /** 11 11 * <p> 12 * Command to delete object from {@link GlobalDataContainer}. 12 * Command to delete object from {@link GlobalDataContainer}. 13 13 * </p> 14 14 * … … 18 18 public class CMDdeleteObject implements Command { 19 19 20 /* 21 * (non-Javadoc) 22 * 23 * @see de.ugoe.cs.util.console.Command#help() 24 */ 20 25 @Override 21 26 public void help() { … … 23 28 } 24 29 30 /* 31 * (non-Javadoc) 32 * 33 * @see de.ugoe.cs.util.console.Command#run(java.util.List) 34 */ 25 35 @Override 26 36 public void run(List<Object> parameters) { … … 31 41 throw new InvalidParameterException(); 32 42 } 33 boolean deleted = GlobalDataContainer.getInstance().removeData(objectName); 34 if( !deleted ) { 43 boolean deleted = GlobalDataContainer.getInstance().removeData( 44 objectName); 45 if (!deleted) { 35 46 Console.println("Object not found in storage!"); 36 47 }
Note: See TracChangeset
for help on using the changeset viewer.