Fixing contracts

changed return type to Pair, changing contracts accordingly.
This commit is contained in:
Mauricio Carneiro 2011-09-28 11:19:17 -04:00
parent eacbee3fe5
commit 89544c209c
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ public class ReadUtils {
* @return the read coordinate corresponding to the requested reference coordinate. (see warning!)
*/
@Requires({"refCoord >= read.getUnclippedStart()", "refCoord <= read.getUnclippedEnd()"})
@Ensures({"result >= 0", "result < read.getReadLength()"})
@Ensures({"result.getFirst() >= 0", "result.getFirst() < read.getReadLength()"})
public static Pair<Integer, Boolean> getReadCoordinateForReferenceCoordinate(SAMRecord read, int refCoord) {
int readBases = 0;
int refBases = 0;