Bug 718760 - Crypto for the java passwords provider. r=blassey,bsmith

This commit is contained in:
Wes Johnston
2012-03-08 10:25:44 -08:00
parent b7a82b941b
commit 14a46bde6c
19 changed files with 749 additions and 64 deletions

View File

@@ -228,8 +228,21 @@ public class MatrixBlobCursor extends AbstractCursor {
}
}
// AbstractCursor implementation.
public void set(int column, Object value) {
if (column < 0 || column >= columnCount) {
throw new CursorIndexOutOfBoundsException("Requested column: "
+ column + ", # of columns: " + columnCount);
}
if (mPos < 0) {
throw new CursorIndexOutOfBoundsException("Before first row.");
}
if (mPos >= rowCount) {
throw new CursorIndexOutOfBoundsException("After last row.");
}
data[mPos * columnCount + column] = value;
}
// AbstractCursor implementation.
@Override
public int getCount() {
return rowCount;