Skip to content

Commit

Permalink
Adjust type variable usage in BaseService to fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonnmcmanus committed Jun 7, 2015
1 parent b2c502d commit a37d3d6
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@

package com.google.gcloud;

public abstract class BaseService<O extends ServiceOptions> implements Service<O> {
public abstract class BaseService<OptionsT extends ServiceOptions<?, OptionsT>>
implements Service<OptionsT> {

private final O options;
private final OptionsT options;

protected BaseService(O options) {
protected BaseService(OptionsT options) {
this.options = options;
}

@Override
public O options() {
public OptionsT options() {
return options;
}
}

0 comments on commit a37d3d6

Please sign in to comment.