Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(65)

Unified Diff: test/com/google/gwt/inject/client/binding/Color.java

Issue 90085: Fixed enum binding support (issue #49) (Closed) SVN Base: http://google-gin.googlecode.com/svn/trunk/
Patch Set: Using getEnclosingClass Created 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: test/com/google/gwt/inject/client/binding/Color.java
===================================================================
--- test/com/google/gwt/inject/client/binding/Color.java (revision 108)
+++ test/com/google/gwt/inject/client/binding/Color.java (working copy)
@@ -16,5 +16,15 @@
package com.google.gwt.inject.client.binding;
public enum Color {
- Red, Green, Yellow
+ Red,
+ Green,
+ Yellow() {
+ @Override public String getAlternative() {
+ return "Orange";
+ }
+ };
+
+ public String getAlternative() {
+ return this.name();
+ }
}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497