コード例 #1
0
 private CheckedInChangeSet getChangeSetFor(String name) {
   ChangeSet[] sets = getSets();
   for (int i = 0; i < sets.length; i++) {
     ChangeSet set = sets[i];
     if (set.getName().equals(name)) {
       return (CheckedInChangeSet) set;
     }
   }
   return null;
 }
コード例 #2
0
 private CheckedInChangeSet getChangeSetFor(ILogEntry logEntry) {
   ChangeSet[] sets = getSets();
   for (int i = 0; i < sets.length; i++) {
     ChangeSet set = sets[i];
     if (set instanceof CheckedInChangeSet
         && set.getComment().equals(logEntry.getComment())
         && ((CheckedInChangeSet) set).getAuthor().equals(logEntry.getAuthor())) {
       return (CheckedInChangeSet) set;
     }
   }
   return null;
 }