Revision: 1314
Author: sberlin
Date: Sun Oct 24 17:58:04 2010
Log: issue 496 -- ConstantBindingBuilder was missing to(byte).
http://code.google.com/p/google-guice/source/detail?r=1314
Modified:
/trunk/core/src/com/google/inject/binder/ConstantBindingBuilder.java
/trunk/core/src/com/google/inject/internal/ConstantBindingBuilderImpl.java
=======================================
--- /trunk/core/src/com/google/inject/binder/ConstantBindingBuilder.java
Fri Mar 2 08:53:12 2007
+++ /trunk/core/src/com/google/inject/binder/ConstantBindingBuilder.java
Sun Oct 24 17:58:04 2010
@@ -61,6 +61,11 @@
*/
void to(char value);
+ /**
+ * Binds constant to the given value.
+ */
+ void to(byte value);
+
/**
* Binds constant to the given value.
*/
=======================================
---
/trunk/core/src/com/google/inject/internal/ConstantBindingBuilderImpl.java
Sat Jul 3 08:51:31 2010
+++
/trunk/core/src/com/google/inject/internal/ConstantBindingBuilderImpl.java
Sun Oct 24 17:58:04 2010
@@ -82,6 +82,10 @@
toConstant(Character.class, value);
}
+ public void to(final byte value) {
+ toConstant(Byte.class, value);
+ }
+
public void to(final Class<?> value) {
toConstant(Class.class, value);
}
--
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.