Skip to content

Commit a37d3d6

Browse files
committed
Adjust type variable usage in BaseService to fix compile error.
1 parent b2c502d commit a37d3d6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

gcloud-java-core/src/main/java/com/google/gcloud/BaseService.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616

1717
package com.google.gcloud;
1818

19-
public abstract class BaseService<O extends ServiceOptions> implements Service<O> {
19+
public abstract class BaseService<OptionsT extends ServiceOptions<?, OptionsT>>
20+
implements Service<OptionsT> {
2021

21-
private final O options;
22+
private final OptionsT options;
2223

23-
protected BaseService(O options) {
24+
protected BaseService(OptionsT options) {
2425
this.options = options;
2526
}
2627

2728
@Override
28-
public O options() {
29+
public OptionsT options() {
2930
return options;
3031
}
3132
}

0 commit comments

Comments
 (0)