001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements.  See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership.  The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the
007     * "License"); you may not use this file except in compliance
008     * with the License.  You may obtain a copy of the License at
009     *
010     *   http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing,
013     * software distributed under the License is distributed on an
014     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015     * KIND, either express or implied.  See the License for the
016     * specific language governing permissions and limitations
017     * under the License.
018     */
019    
020    package org.apache.myfaces.tobago.util;
021    
022    import java.util.List;
023    
024    /**
025     * @deprecated Please use StringUtils
026     * @see StringUtils
027     */
028    @Deprecated
029    public class StringUtil {
030    
031      private StringUtil() {
032      }
033    
034      @Deprecated
035      public static String firstToUpperCase(String string) {
036        if (Deprecation.LOG.isWarnEnabled()) {
037          Deprecation.LOG.warn("use commons-lang please");
038        }
039        return StringUtils.firstToUpperCase(string);
040      }
041    
042      @Deprecated
043      public static List<Integer> parseIntegerList(String integerList)
044          throws NumberFormatException {
045        if (Deprecation.LOG.isWarnEnabled()) {
046          Deprecation.LOG.warn("use StringUtils please");
047        }
048       return StringUtils.parseIntegerList(integerList);
049      }
050    
051      @Deprecated
052      public static <T> String toString(List<T> list) {
053        if (Deprecation.LOG.isWarnEnabled()) {
054          Deprecation.LOG.warn("use StringUtils please");
055        }
056        return StringUtils.toString(list);
057      }
058    
059      @Deprecated
060      public static String escapeAccessKeyIndicator(String label) {
061        if (Deprecation.LOG.isWarnEnabled()) {
062          Deprecation.LOG.warn(label);
063        }
064        return StringUtils.escapeAccessKeyIndicator(label);
065      }
066    
067    }