Ignore:
Timestamp:
12/09/11 12:55:19 (12 years ago)
Author:
sherbold
Message:
  • fixed some code smells
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/TrainModelDialog.java

    r194 r287  
    11package de.ugoe.cs.eventbench.swt; 
     2 
     3import java.util.Arrays; 
    24 
    35import org.eclipse.swt.widgets.Dialog; 
     
    2022public class TrainModelDialog extends Dialog { 
    2123 
    22         protected Object result; 
    2324        protected Shell shlTrainUsageModel; 
    2425         
     
    4849        /** 
    4950         * Open the dialog. 
    50          * @return the result 
    5151         */ 
    52         public Object open() { 
     52        public void open() { 
    5353                createContents(); 
    5454                shlTrainUsageModel.open(); 
     
    6060                        } 
    6161                } 
    62                 return result; 
    6362        } 
    6463 
     
    227226         
    228227        public void setSequenceNames(String[] sequenceNames) { 
    229                 this.sequenceNames = sequenceNames; 
     228                this.sequenceNames = Arrays.copyOf(sequenceNames, sequenceNames.length); 
    230229        } 
    231230} 
Note: See TracChangeset for help on using the changeset viewer.