Skip to content

Commit

Permalink
Correct example to use "plugins" consistently, rather than "urls". Po…
Browse files Browse the repository at this point in the history
…inted out by @RiotR1cket on GitHub - google@c285193b#commitcomment-29818566.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=205895753
  • Loading branch information
dimo414 authored and ronshapiro committed Sep 17, 2018
1 parent f734770 commit 184630d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/com/google/inject/multibindings/ProvidesIntoMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@
* <pre>
* {@literal @}ProvidesIntoMap
* {@literal @}StringMapKey("Foo")
* {@literal @}Named("urls")
* {@literal @}Named("plugins")
* Plugin provideFooUrl(FooManager fm) { return fm.getPlugin(); }
*
* {@literal @}ProvidesIntoMap
* {@literal @}StringMapKey("Bar")
* {@literal @}Named("urls")
* {@literal @}Named("plugins")
* Plugin provideBarUrl(BarManager bm) { return bm.getPlugin(); }
* </pre>
*
* will add two items to the {@code @Named("urls") Map<String, Plugin>} map. The key 'Foo' will map
* to the provideFooUrl method, and the key 'Bar' will map to the provideBarUrl method. The values
* are bound as providers and will be evaluated at injection time.
* will add two items to the {@code @Named("plugins") Map<String, Plugin>} map. The key 'Foo' will
* map to the provideFooUrl method, and the key 'Bar' will map to the provideBarUrl method. The
* values are bound as providers and will be evaluated at injection time.
*
* <p>Because the key is specified as an annotation, only Strings, Classes, enums, primitive types
* and annotation instances are supported as keys.
Expand Down

0 comments on commit 184630d

Please sign in to comment.