Skip to content

Commit

Permalink
fix: Fix warning due to unchecked cast. (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpcollins-google committed Sep 10, 2020
1 parent ea06ed4 commit a3a21b4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ abstract class ProjectBuilderHelper<Builder extends ProjectBuilderHelper<Builder
public abstract Builder setProject(ProjectIdOrNumber project);

public Builder setProject(ProjectId project) {
setProject(ProjectIdOrNumber.of(project));
return (Builder) this;
return setProject(ProjectIdOrNumber.of(project));
}

public Builder setProject(ProjectNumber project) {
setProject(ProjectIdOrNumber.of(project));
return (Builder) this;
return setProject(ProjectIdOrNumber.of(project));
}
}

0 comments on commit a3a21b4

Please sign in to comment.