X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.osgi.boot%2Fsrc%2Forg%2Fargeo%2Fosgi%2Fboot%2Finternal%2Fspringutil%2FStringUtils.java;h=6cbaee8f887744a1abf740621c22ec2616389b4d;hb=25a31ea46e5de6ce0de366fdb999588c6788c540;hp=262659044bcaf26c73b3cec9f5c94ca8ddbe5e09;hpb=575dfe19b8516b1213b6d56d9f34fc3bcdb62026;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/internal/springutil/StringUtils.java b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/internal/springutil/StringUtils.java index 262659044..6cbaee8f8 100644 --- a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/internal/springutil/StringUtils.java +++ b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/internal/springutil/StringUtils.java @@ -49,8 +49,8 @@ import java.util.TreeSet; * @author Rob Harrop * @author Rick Evans * @since 16 April 2001 - * @see org.apache.commons.lang.StringUtils */ +@SuppressWarnings({ "rawtypes", "unchecked" }) public abstract class StringUtils { private static final String FOLDER_SEPARATOR = "/"; @@ -430,7 +430,7 @@ public abstract class StringUtils { * Quote the given String with single quotes. * @param str the input String (e.g. "myString") * @return the quoted String (e.g. "'myString'"), - * or null if the input was null + * or null if the input was null */ public static String quote(String str) { return (str != null ? "'" + str + "'" : null); @@ -505,7 +505,7 @@ public abstract class StringUtils { /** * Extract the filename from the given path, - * e.g. "mypath/myfile.txt" -> "myfile.txt". + * e.g. "mypath/myfile.txt" to "myfile.txt". * @param path the file path (may be null) * @return the extracted filename, or null if none */ @@ -519,7 +519,7 @@ public abstract class StringUtils { /** * Extract the filename extension from the given path, - * e.g. "mypath/myfile.txt" -> "txt". + * e.g. "mypath/myfile.txt" to "txt". * @param path the file path (may be null) * @return the extracted filename extension, or null if none */ @@ -533,7 +533,7 @@ public abstract class StringUtils { /** * Strip the filename extension from the given path, - * e.g. "mypath/myfile.txt" -> "mypath/myfile". + * e.g. "mypath/myfile.txt" to "mypath/myfile". * @param path the file path (may be null) * @return the path with stripped filename extension, * or null if none