myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r923338 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/convert/CurrencyConverter.java
Date Mon, 15 Mar 2010 17:02:20 GMT
Author: lofwyr
Date: Mon Mar 15 17:02:20 2010
New Revision: 923338

URL: http://svn.apache.org/viewvc?rev=923338&view=rev
Log:
code style

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/convert/CurrencyConverter.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/convert/CurrencyConverter.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/convert/CurrencyConverter.java?rev=923338&r1=923337&r2=923338&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/convert/CurrencyConverter.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/convert/CurrencyConverter.java
Mon Mar 15 17:02:20 2010
@@ -17,28 +17,24 @@ package org.apache.myfaces.tobago.conver
  * limitations under the License.
  */
 
-/*
- * Created 09.12.2003 15:52:53.
- * $Id$
- */
-
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
 import javax.faces.convert.Converter;
 import javax.faces.convert.ConverterException;
 import java.util.Currency;
 
+/**
+ * JSF converter for the java.util.Currency class.
+ */
 @org.apache.myfaces.tobago.apt.annotation.Converter(forClass = "java.util.Currency")
 public class CurrencyConverter implements Converter {
 
-  public Object getAsObject(FacesContext facesContext, UIComponent component,
-      String string)
+  public Object getAsObject(FacesContext facesContext, UIComponent component, String string)
       throws ConverterException {
     return Currency.getInstance(string);
   }
 
-  public String getAsString(FacesContext facesContext, UIComponent component,
-      Object object)
+  public String getAsString(FacesContext facesContext, UIComponent component, Object object)
       throws ConverterException {
     try {
       return ((Currency) object).getCurrencyCode();
@@ -47,4 +43,3 @@ public class CurrencyConverter implement
     }
   }
 }
-



Mime
View raw message