Skip to content

Commit

Permalink
Post-rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie authored and oxkitsune committed May 22, 2023
1 parent eb23526 commit a83574e
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 @@ -29,8 +29,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 @@ -39,7 +37,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 a83574e

Please sign in to comment.