Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constructor args for AbstractRange subclasses: int to long #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
public class ExcludeStartRange extends AbstractRange {

public ExcludeStartRange(int offset) {
public ExcludeStartRange(long offset) {
super(offset, -1);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Take the first bytes of the object until -- ie not including -- position 'until'
*/
public class FirstPartRange extends AbstractRange {
public FirstPartRange(int until) {
public FirstPartRange(long until) {
super(0, until);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
public class LastPartRange extends AbstractRange {

public LastPartRange(int lastBytes) {
public LastPartRange(long lastBytes) {
super(-1, lastBytes);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
public class MidPartRange extends AbstractRange {

public MidPartRange(int startPos, int endPos) {
public MidPartRange(long startPos, long endPos) {
super(startPos, endPos);
}

Expand Down