Skip to content

Commit

Permalink
Post-rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Apr 10, 2022
1 parent 13afc60 commit d316e23
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,19 +242,6 @@ ImmutableMap<K, V2> after(Map<K, V1> map) {
}
}

/** Don't unnecessarily copy an {@link ImmutableMap}. */
static final class ImmutableMapCopyOfImmutableMap<K, V> {
@BeforeTemplate
ImmutableMap<K, V> before(ImmutableMap<K, V> map) {
return ImmutableMap.copyOf(map);
}

@AfterTemplate
ImmutableMap<K, V> after(ImmutableMap<K, V> map) {
return map;
}
}

/**
* Prefer {@link ImmutableMap#of()} over alternatives that don't communicate the immutability of
* the resulting list at the type level.
Expand Down

0 comments on commit d316e23

Please sign in to comment.