Ignore:
Timestamp:
09/28/11 03:03:13 (13 years ago)
Author:
sherbold
Message:
  • greatly improved type checking and consistency of type checking for objects checked out of the GlobalDataContainer?
File:
1 edited

Legend:

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

    r171 r209  
    4949                if (dataObject == null) { 
    5050                        Console.println("Model " + modelname + "not found in storage."); 
    51                 } else if (!(dataObject instanceof IDotCompatible)) { 
     51                        return; 
     52                } 
     53                if (!(dataObject instanceof IDotCompatible)) { 
    5254                        Console.println("Object " + modelname 
    5355                                        + " does not implement IDotCompatible!"); 
    54                 } else { 
    55                         model = (IDotCompatible) dataObject; 
    56                         Console.println(model.getDotRepresentation()); 
     56                        return; 
    5757                } 
     58 
     59                model = (IDotCompatible) dataObject; 
     60                Console.println(model.getDotRepresentation()); 
    5861        } 
    5962 
Note: See TracChangeset for help on using the changeset viewer.