Changeset 766 for trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/CoverageCalculatorProcess.java
- Timestamp:
- 09/04/12 17:15:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/CoverageCalculatorProcess.java
r655 r766 1 1 package de.ugoe.cs.quest.coverage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.List; … … 74 73 * @param length 75 74 * length of the subsequences for which the coverage is analyzed; must be >0 76 * @throws I nvalidParameterException75 * @throws IllegalArgumentException 77 76 * thrown if process or sequences is null or length less than or equal to 0 78 77 */ … … 82 81 { 83 82 if (process == null) { 84 throw new I nvalidParameterException("process must not be null");83 throw new IllegalArgumentException("process must not be null"); 85 84 } 86 85 if (sequences == null) { 87 throw new I nvalidParameterException("sequences must not be null");86 throw new IllegalArgumentException("sequences must not be null"); 88 87 } 89 88 if (length <= 0) { 90 throw new I nvalidParameterException("length must be >0; actual value: " + length);89 throw new IllegalArgumentException("length must be >0; actual value: " + length); 91 90 } 92 91 this.process = process; … … 191 190 * @param newSequences 192 191 * new collection of sequences 193 * @throws I nvalidParameterException192 * @throws IllegalArgumentException 194 193 * thrown is newSequences is null 195 194 */ 196 195 public void setSequences(Collection<List<Event>> newSequences) { 197 196 if (newSequences == null) { 198 throw new I nvalidParameterException("sequences must not be null");197 throw new IllegalArgumentException("sequences must not be null"); 199 198 } 200 199 this.sequences = newSequences;
Note: See TracChangeset
for help on using the changeset viewer.