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