Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-jforum/src/java/org/jahia/portlet/util
In directory 
james.mmbase.org:/tmp/cvs-serv23342/portlets-jforum/src/java/org/jahia/portlet/util

Modified Files:
        StringUtil.java 
Log Message:
CMSC-1091 improve code of JForum.


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-jforum/src/java/org/jahia/portlet/util
See also: http://www.mmbase.org/jira/browse/CMSC-1091


Index: StringUtil.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-jforum/src/java/org/jahia/portlet/util/StringUtil.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- StringUtil.java     17 Jan 2008 08:04:52 -0000      1.1
+++ StringUtil.java     15 Oct 2008 11:43:54 -0000      1.2
@@ -5,7 +5,7 @@
 /**
  *  Util methods in order to manipulate String
  *
- [EMAIL PROTECTED]    Khaled TLILI
+ * @author Khaled TLILI
  */
 public class StringUtil {
        private static final String ENCODE_TOKEN_SEPARATOR = "x";
@@ -14,8 +14,8 @@
        /**
         *  Replace special graph like "&lt;", "&gt;", ... by "<",">",...
         *
-        [EMAIL PROTECTED]  strg  Description of Parameter
-        [EMAIL PROTECTED]       Description of the Returned Value
+    * @param strg Description of Parameter
+    * @return Description of the Returned Value
         */
        public static String replaceSpecialGraphics(String strg) {
                if (strg == null) {
@@ -43,25 +43,22 @@
        /**
         *  Return a str if not null else default Value
         *
-        [EMAIL PROTECTED]  strg          Description of Parameter
-        [EMAIL PROTECTED]  defaultValue  Description of Parameter
-        [EMAIL PROTECTED]               Description of the Returned Value
+    * @param strg         Description of Parameter
+    * @param defaultValue Description of Parameter
+    * @return Description of the Returned Value
         */
        public static String notNullValue(String strg, String defaultValue) {
                if (strg == null) {
                        if (defaultValue != null) {
                                return defaultValue;
-                       }
-                       else {
+         } else {
                                return "";
                        }
-               }
-               else {
+      } else {
                        return strg;
                }
        }
 
-
        /**
         *  Encrypte String
         *
@@ -78,7 +75,6 @@
                return enct.toString();
        }*/
 
-
        /**
         *  Decrypte string that has been enncrspted whith encrypte(...) method
         *
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to