Skip to content

Commit 3b0a56f

Browse files
authored
---
yaml --- r: 5213 b: refs/heads/master c: 89f83f3 h: refs/heads/master i: 5211: 548d175
1 parent 998b12b commit 3b0a56f

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6383cc123036214a9170f8da6d9dfa42fdb3dbc5
2+
refs/heads/master: 89f83f3baaa8939d484da7ec5a24297a6a061840
33
refs/heads/travis: dae77e558b884bc1b165155482d76c8e40b0fca4
44
refs/heads/gh-pages: c2885dba4ca5fa546ec268ea30687d296281695c
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/google-cloud-core/src/main/java/com/google/cloud/BaseWriteChannel.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public abstract class BaseWriteChannel<
4141
private final ServiceOptionsT options;
4242
private final EntityT entity;
4343
private final String uploadId;
44-
private int position;
44+
private long position;
4545
private byte[] buffer = new byte[0];
4646
private int limit;
4747
private boolean isOpen = true;
@@ -101,11 +101,11 @@ protected String getUploadId() {
101101
}
102102

103103
@Deprecated
104-
protected int position() {
104+
protected long position() {
105105
return getPosition();
106106
}
107107

108-
protected int getPosition() {
108+
protected long getPosition() {
109109
return position;
110110
}
111111

@@ -119,7 +119,7 @@ protected byte[] getBuffer() {
119119
}
120120

121121
@Deprecated
122-
protected int limit() {
122+
protected long limit() {
123123
return getLimit();
124124
}
125125

@@ -245,7 +245,7 @@ protected abstract static class BaseState<
245245
protected final ServiceOptionsT serviceOptions;
246246
protected final EntityT entity;
247247
protected final String uploadId;
248-
protected final int position;
248+
protected final long position;
249249
protected final byte[] buffer;
250250
protected final boolean isOpen;
251251
protected final int chunkSize;
@@ -274,7 +274,7 @@ public abstract static class Builder<
274274
private final ServiceOptionsT serviceOptions;
275275
private final EntityT entity;
276276
private final String uploadId;
277-
private int position;
277+
private long position;
278278
private byte[] buffer;
279279
private boolean isOpen;
280280
private int chunkSize;
@@ -290,7 +290,7 @@ public Builder<ServiceOptionsT, EntityT> position(int position) {
290290
return setPosition(position);
291291
}
292292

293-
public Builder<ServiceOptionsT, EntityT> setPosition(int position) {
293+
public Builder<ServiceOptionsT, EntityT> setPosition(long position) {
294294
this.position = position;
295295
return this;
296296
}

0 commit comments

Comments
 (0)