Changeset 317


Ignore:
Timestamp:
12/14/11 14:21:02 (12 years ago)
Author:
sherbold
Message:
  • fixed two small bugs in the JFCLogParser. Parsing is now fully functional.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/jfc/JFCLogParser.java

    r305 r317  
    8787        public JFCLogParser() { 
    8888                sequences = new LinkedList<List<JFCEvent>>(); 
     89                currentSequence = new LinkedList<JFCEvent>(); 
    8990        } 
    9091 
     
    111112                if (qName.equals("newsession")) { 
    112113                        Console.traceln("start of session"); 
    113                         if (currentSequence != null && currentSequence.size() != 0) { 
     114                        if (currentSequence != null && !currentSequence.isEmpty()) { 
    114115                                sequences.add(currentSequence); 
    115116                                currentSequence = new LinkedList<JFCEvent>(); 
     
    151152                } else if (qName.equals("parent")) { 
    152153                        paramSource = ParamSource.SOURCE; 
     154                } else if (qName.equals("sessions")) { 
     155                        if(currentSequence!=null && !currentSequence.isEmpty() ) { 
     156                                sequences.add(currentSequence); 
     157                        } 
    153158                } 
    154159        } 
Note: See TracChangeset for help on using the changeset viewer.