Skip to content

Commit

Permalink
Post-rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Jan 3, 2023
1 parent fcafc5c commit 59b2435
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 158 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ final class ImmutableSetRules {
private ImmutableSetRules() {}

/** Prefer {@link ImmutableSet#builder()} over the associated constructor. */
// XXX: This drops generic type information, sometimes leading to non-compilable code. See
// https://github.com/google/error-prone/pull/2706.
static final class ImmutableSetBuilder<T> {
@BeforeTemplate
ImmutableSet.Builder<T> before() {
Expand All @@ -35,7 +33,7 @@ ImmutableSet.Builder<T> before() {

@AfterTemplate
ImmutableSet.Builder<T> after() {
return ImmutableSet.builder();
return ImmutableSet.<T>builder();
}
}

Expand Down

This file was deleted.

0 comments on commit 59b2435

Please sign in to comment.