You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/06/25 19:10:54 UTC

svn commit: r788441 - in /myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util: StringUtil.java StringUtils.java

Author: lofwyr
Date: Thu Jun 25 17:10:54 2009
New Revision: 788441

URL: http://svn.apache.org/viewvc?rev=788441&view=rev
Log:
TOBAGO-762:
Using the Deprecation.LOG

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtil.java
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtils.java

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtil.java?rev=788441&r1=788440&r2=788441&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtil.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtil.java Thu Jun 25 17:10:54 2009
@@ -31,22 +31,34 @@
 
   @Deprecated
   public static String firstToUpperCase(String string) {
+    if (Deprecation.LOG.isWarnEnabled()) {
+      Deprecation.LOG.warn("use commons-lang please");
+    }
     return StringUtils.firstToUpperCase(string);
   }
 
   @Deprecated
   public static List<Integer> parseIntegerList(String integerList)
       throws NumberFormatException {
+    if (Deprecation.LOG.isWarnEnabled()) {
+      Deprecation.LOG.warn("use StringUtils please");
+    }
    return StringUtils.parseIntegerList(integerList);
   }
 
   @Deprecated
   public static <T> String toString(List<T> list) {
+    if (Deprecation.LOG.isWarnEnabled()) {
+      Deprecation.LOG.warn("use StringUtils please");
+    }
     return StringUtils.toString(list);
   }
 
   @Deprecated
   public static String escapeAccessKeyIndicator(String label) {
+    if (Deprecation.LOG.isWarnEnabled()) {
+      Deprecation.LOG.warn(label);
+    }
     return StringUtils.escapeAccessKeyIndicator(label);
   }
 

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtils.java?rev=788441&r1=788440&r2=788441&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtils.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/StringUtils.java Thu Jun 25 17:10:54 2009
@@ -29,7 +29,14 @@
   private StringUtils() {
   }
 
+  /**
+   * @deprecated Use commons-lang StringUtils.capitalize() instead.
+   */
+  @Deprecated
   public static String firstToUpperCase(String string) {
+    if (Deprecation.LOG.isWarnEnabled()) {
+      Deprecation.LOG.warn("use commons-lang please");
+    }
     if (string == null) {
       return null;
     }
@@ -69,6 +76,9 @@
 
   @Deprecated
   public static String escapeAccessKeyIndicator(String label) {
+    if (Deprecation.LOG.isWarnEnabled()) {
+      Deprecation.LOG.warn(label);
+    }
     return org.apache.commons.lang.StringUtils.replace(label,
         String.valueOf(LabelWithAccessKey.INDICATOR), LabelWithAccessKey.ESCAPED_INDICATOR);
   }