cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r396142 - in /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms: binding/AbstractCustomBinding.java samples/bindings/CustomValueWrapBinding.java
Date Sat, 22 Apr 2006 16:29:00 GMT
Author: antonio
Date: Sat Apr 22 09:28:57 2006
New Revision: 396142

URL: http://svn.apache.org/viewcvs?rev=396142&view=rev
Log:
Clean trailing spaces.

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/AbstractCustomBinding.java
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/bindings/CustomValueWrapBinding.java

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/AbstractCustomBinding.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/AbstractCustomBinding.java?rev=396142&r1=396141&r2=396142&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/AbstractCustomBinding.java
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/AbstractCustomBinding.java
Sat Apr 22 09:28:57 2006
@@ -55,17 +55,17 @@
     }
     //TODO: end of stuff to clean out over time
     //below is the real useful stuff...
-    
+
     public boolean isValid() {
     	return false; // pessimistic
     }
-    
+
     // needed for the Binding interface, should never need to be used in a subclass
     public Library getEnclosingLibrary() {
     	return null;
     }
     public void setEnclosingLibrary(Library lib) {}
-    
+
     /**
      * Binding service method called upon loading.
      * This will delegate to the overloaded version specific for this base-class.
@@ -99,7 +99,7 @@
             throw new BindingException("Error executing custom binding", e);
         }
     }
-    
+
     /**
      * 
      * @param frmModel

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/bindings/CustomValueWrapBinding.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/bindings/CustomValueWrapBinding.java?rev=396142&r1=396141&r2=396142&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/bindings/CustomValueWrapBinding.java
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/samples/bindings/CustomValueWrapBinding.java
Sat Apr 22 09:28:57 2006
@@ -31,7 +31,7 @@
     private static final char DEFAULT_DELIMITER = '*';
     private final String prefix;
     private final String suffix;
-    
+
     public CustomValueWrapBinding() {
         this(DEFAULT_DELIMITER);
     }
@@ -39,9 +39,9 @@
     public CustomValueWrapBinding(char delimiter) {
         this(delimiter, delimiter);
     }
-    
+
     public CustomValueWrapBinding(char prefix, char suffix) {
-        this.prefix = ""+ prefix + prefix;
+        this.prefix = "" + prefix + prefix;
         this.suffix = "" + suffix + suffix;
     }
 
@@ -73,8 +73,7 @@
         Object formValue = frmModel.getValue();       
         jxpc.setValue(getXpath(), "" + this.prefix + formValue + this.suffix);        
     }
-    
-    
+
     /** 
      * Builds the actual binding class based on its XML config.
      * 
@@ -83,7 +82,7 @@
      * @throws BindingException when the creation fails
      */
     public static Binding createBinding(Element config) throws BindingException{
-        
+
         try {
             String pfx = DomHelper.getAttribute(config, "prefixchar", null);
             String sfx = DomHelper.getAttribute(config, "suffixchar", null);
@@ -96,5 +95,4 @@
             throw new BindingException("Could not create instance of CustomValueWrapBinding."
,e);
         }
     }
-   
 }



Mime
View raw message