Skip to content

Commit dcbe37f

Browse files
committed
Remove public modifiers from channels StateImpl Builder
1 parent ab56573 commit dcbe37f

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobReadChannelImpl.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static class StateImpl implements RestorableState<BlobReadChannel>, Serializable
167167
this.chunkSize = builder.chunkSize;
168168
}
169169

170-
public static class Builder {
170+
static class Builder {
171171
private final StorageOptions serviceOptions;
172172
private final BlobId blob;
173173
private final Map<StorageRpc.Option, ?> requestOptions;
@@ -182,32 +182,32 @@ private Builder(StorageOptions options, BlobId blob, Map<StorageRpc.Option, ?> r
182182
this.requestOptions = reqOptions;
183183
}
184184

185-
public Builder position(int position) {
185+
Builder position(int position) {
186186
this.position = position;
187187
return this;
188188
}
189189

190-
public Builder isOpen(boolean isOpen) {
190+
Builder isOpen(boolean isOpen) {
191191
this.isOpen = isOpen;
192192
return this;
193193
}
194194

195-
public Builder endOfStream(boolean endOfStream) {
195+
Builder endOfStream(boolean endOfStream) {
196196
this.endOfStream = endOfStream;
197197
return this;
198198
}
199199

200-
public Builder chunkSize(int chunkSize) {
200+
Builder chunkSize(int chunkSize) {
201201
this.chunkSize = chunkSize;
202202
return this;
203203
}
204204

205-
public RestorableState<BlobReadChannel> build() {
205+
RestorableState<BlobReadChannel> build() {
206206
return new StateImpl(this);
207207
}
208208
}
209209

210-
public static Builder builder(
210+
static Builder builder(
211211
StorageOptions options, BlobId blob, Map<StorageRpc.Option, ?> reqOptions) {
212212
return new Builder(options, blob, reqOptions);
213213
}

gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobWriteChannelImpl.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static class StateImpl implements RestorableState<BlobWriteChannel>, Serializabl
180180
this.chunkSize = builder.chunkSize;
181181
}
182182

183-
public static class Builder {
183+
static class Builder {
184184
private final StorageOptions serviceOptions;
185185
private final BlobInfo blobInfo;
186186
private final String uploadId;
@@ -196,37 +196,37 @@ private Builder(StorageOptions options, BlobInfo blobInfo, String uploadId) {
196196
this.uploadId = uploadId;
197197
}
198198

199-
public Builder position(int position) {
199+
Builder position(int position) {
200200
this.position = position;
201201
return this;
202202
}
203203

204-
public Builder buffer(byte[] buffer) {
204+
Builder buffer(byte[] buffer) {
205205
this.buffer = buffer.clone();
206206
return this;
207207
}
208208

209-
public Builder limit(int limit) {
209+
Builder limit(int limit) {
210210
this.limit = limit;
211211
return this;
212212
}
213213

214-
public Builder isOpen(boolean isOpen) {
214+
Builder isOpen(boolean isOpen) {
215215
this.isOpen = isOpen;
216216
return this;
217217
}
218218

219-
public Builder chunkSize(int chunkSize) {
219+
Builder chunkSize(int chunkSize) {
220220
this.chunkSize = chunkSize;
221221
return this;
222222
}
223223

224-
public RestorableState<BlobWriteChannel> build() {
224+
RestorableState<BlobWriteChannel> build() {
225225
return new StateImpl(this);
226226
}
227227
}
228228

229-
public static Builder builder(StorageOptions options, BlobInfo blobInfo, String uploadId) {
229+
static Builder builder(StorageOptions options, BlobInfo blobInfo, String uploadId) {
230230
return new Builder(options, blobInfo, uploadId);
231231
}
232232

0 commit comments

Comments
 (0)