Revision: 1234
Author: sberlin
Date: Wed Sep 15 20:29:29 2010
Log: style cleanups from jessewilson review.
http://code.google.com/p/google-guice/source/detail?r=1234
Modified:
/trunk/extensions/multibindings/src/com/google/inject/multibindings/Multibinder.java
/trunk/src/com/google/inject/spi/ProviderWithExtensionVisitor.java
=======================================
---
/trunk/extensions/multibindings/src/com/google/inject/multibindings/Multibinder.java
Sat Jul 3 08:51:31 2010
+++
/trunk/extensions/multibindings/src/com/google/inject/multibindings/Multibinder.java
Wed Sep 15 20:29:29 2010
@@ -247,7 +247,7 @@
private String nameOf(Key<?> key) {
Annotation annotation = setKey.getAnnotation();
Class<? extends Annotation> annotationType =
setKey.getAnnotationType();
- if(annotation != null && !Annotations.isMarker(annotationType)) {
+ if (annotation != null && !Annotations.isMarker(annotationType)) {
return setKey.getAnnotation().toString();
} else if(setKey.getAnnotationType() != null) {
return "@" + setKey.getAnnotationType().getName();
=======================================
--- /trunk/src/com/google/inject/spi/ProviderWithExtensionVisitor.java Sun
Aug 22 11:12:59 2010
+++ /trunk/src/com/google/inject/spi/ProviderWithExtensionVisitor.java Wed
Sep 15 20:29:29 2010
@@ -22,7 +22,7 @@
/**
* A Provider that is part of an extension which supports a custom
* BindingTargetVisitor.
- *
+ * <p>
* When an extension binds a provider instance, the provider can implement
this
* interface to allow users using the
* {...@link Binding#acceptTargetVisitor(BindingTargetVisitor)} method to
visit a
@@ -30,9 +30,9 @@
* the extension would look like
* <pre>
* <code>
- * <V, B> V acceptExtensionVisitor(BindingTargetVisitor<B, V> visitor,
ProviderInstanceBinding<? extends B> binding) {
+ * {...@literal<}V, B> V
acceptExtensionVisitor(bindingtargetvisit...@literal<}B, V> visitor,
providerinstancebindi...@literal<}? extends B> binding) {
* if(visitor instanceof MyCustomExtensionVisitor) {
- * return ((MyCustomExtensionVisitor<B,
V>)visitor).visitCustomExtension(customProperties, binding);
+ * return ((mycustomextensionvisit...@literal<}B,
V>)visitor).visitCustomExtension(customProperties, binding);
* } else {
* return visitor.visit(binding);
* }
@@ -53,7 +53,7 @@
* extension visitor, and if so, visit it using that method. If the
visitor is
* not an instance of the custom extension visitor, this method
<b>MUST</b>
* call visitor.visit(binding).
- *
+ * <p>
* Due to issues with generics, the type parameters of this method do not
* relate to the type of the provider. In practice, the 'B' type will
always
* be a supertype of 'T'.
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.