Index: lutinutil/src/java/org/codelutin/util/StringUtil.java diff -u lutinutil/src/java/org/codelutin/util/StringUtil.java:1.9 lutinutil/src/java/org/codelutin/util/StringUtil.java:1.10 --- lutinutil/src/java/org/codelutin/util/StringUtil.java:1.9 Tue Jun 28 15:24:54 2005 +++ lutinutil/src/java/org/codelutin/util/StringUtil.java Wed Jul 6 22:37:50 2005 @@ -22,9 +22,9 @@ * * @author POUSSIN Benjamin * Copyright Code Lutin -* @version $Revision: 1.9 $ +* @version $Revision: 1.10 $ * -* Mise a jour: $Date: 2005/06/28 15:24:54 $ +* Mise a jour: $Date: 2005/07/06 22:37:50 $ * par : $Author: bpoussin $ */ package org.codelutin.util; @@ -52,8 +52,9 @@ /** * Met en majuscule le premier caract?re de la cha?ne pass? en param?tre * - *@param word La cha?ne ? capitaliser - *@return La cha?ne capitalis?e + * @param word La cha?ne ? capitaliser + * @return La cha?ne capitalis?e + * @deprecated you must use org.apache.commons.lang.StringUtils.capitalise(String) */ public static String capitalize(String word) { return word.substring(0, 1).toUpperCase() + word.substring(1); @@ -64,6 +65,7 @@ * *@param word La cha?ne ? decapitaliser *@return La cha?ne decapitalis?e + * @deprecated you must use org.apache.commons.lang.StringUtils.uncapitalise(String) */ public static String uncapitalize(String word) { return word.substring(0, 1).toLowerCase() + word.substring(1); @@ -76,6 +78,7 @@ *@param sep le s?parateur ? utiliser pour s?parer chaque cha?ne. *@return la cha?ne r?sultante de la concat?nation. Si le tableau est * null ou vide, la cha?ne r?sultante est une chaine vide. + * @deprecated you must use org.apache.commons.lang.StringUtils.join */ public static String unsplit(String[] s, String sep) { if (s == null || s.length <= 0) { @@ -154,20 +157,20 @@ } }else{ Field f; - f = Color.class.getField(s); - return (Color)f.get(Color.class); + f = Color.class.getField(s); + return (Color)f.get(Color.class); } - } catch (NumberFormatException e) { + } catch (NumberFormatException e) { throw new StringUtilException("Error during conversion from string to color", e); - } catch (SecurityException e) { + } catch (SecurityException e) { throw new StringUtilException("Error during conversion from string to color", e); - } catch (NoSuchFieldException e) { + } catch (NoSuchFieldException e) { throw new StringUtilException("Error during conversion from string to color", e); - } catch (IllegalArgumentException e) { + } catch (IllegalArgumentException e) { throw new StringUtilException("Error during conversion from string to color", e); - } catch (IllegalAccessException e) { + } catch (IllegalAccessException e) { throw new StringUtilException("Error during conversion from string to color", e); - } + } } public static Date toDate(String s) throws ParseException{