Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/11 12:00:36 (13 years ago)
Author:
mkommend
Message:

#1479: Integrated trunk changes.

Location:
branches/GP.Grammar.Editor/HeuristicLab.Core/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/Constraints/Constraint.cs

    r5445 r6784  
    4848    protected Constraint() {
    4949      this.Active = false;
    50       if (AllowedConstraintOperations != null && AllowedConstraintOperations.Count() != 0)
     50      if (AllowedConstraintOperations != null && AllowedConstraintOperations.Any())
    5151        this.ConstraintOperation = AllowedConstraintOperations.ElementAt(0);
    5252    }
  • branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/ThreadSafeLog.cs

    r6618 r6784  
    4646        try {
    4747          return log.Messages.ToArray(); // return copy of messages
    48         }
    49         finally { locker.ExitReadLock(); }
     48        } finally { locker.ExitReadLock(); }
    5049      }
    5150    }
     
    7271      try {
    7372        log = cloner.Clone(original.log);
    74       }
    75       finally { locker.ExitReadLock(); }
     73      } finally { original.locker.ExitReadLock(); }
    7674    }
    7775    public override IDeepCloneable Clone(Cloner cloner) {
     
    8381      try {
    8482        log.Clear();
    85       }
    86       finally { locker.ExitWriteLock(); }
     83      } finally { locker.ExitWriteLock(); }
    8784    }
    8885
     
    9188      try {
    9289        log.LogMessage(message);
    93       }
    94       finally { locker.ExitWriteLock(); }
     90      } finally { locker.ExitWriteLock(); }
    9591    }
    9692
     
    9995      try {
    10096        log.LogException(ex);
    101       }
    102       finally { locker.ExitWriteLock(); }
     97      } finally { locker.ExitWriteLock(); }
    10398    }
    10499
Note: See TracChangeset for help on using the changeset viewer.