Merge "Allow to build api with Java 8"

This commit is contained in:
Shawn Pearce
2015-04-10 22:17:04 +00:00
committed by Gerrit Code Review
11 changed files with 48 additions and 37 deletions

View File

@@ -67,7 +67,9 @@ public class DynamicItem<T> {
* <p>
* Items must be defined in a Guice module before they can be bound:
* <pre>
* {@code
* DynamicSet.itemOf(binder(), new TypeLiteral<Thing<Foo>>() {});
* }
* </pre>
*
* @param binder a new binder created in the module.

View File

@@ -67,10 +67,12 @@ public abstract class DynamicMap<T> implements Iterable<DynamicMap.Entry<T>> {
* Maps must be defined in a Guice module before they can be bound:
*
* <pre>
* {@code
* DynamicMap.mapOf(binder(), new TypeLiteral<Thing<Bar>>(){});
* bind(new TypeLiteral<Thing<Bar>>() {})
* .annotatedWith(Exports.named(&quot;foo&quot;))
* .to(Impl.class);
* }
* </pre>
*
* @param binder a new binder created in the module.

View File

@@ -61,7 +61,9 @@ public class DynamicSet<T> implements Iterable<T> {
* <p>
* Sets must be defined in a Guice module before they can be bound:
* <pre>
* {@code
* DynamicSet.setOf(binder(), new TypeLiteral<Thing<Foo>>() {});
* }
* </pre>
*
* @param binder a new binder created in the module.