creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549119 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java
Date Sun, 08 Dec 2013 19:07:01 GMT
Author: rdonkin
Date: Sun Dec  8 19:07:01 2013
New Revision: 1549119

URL: http://svn.apache.org/r1549119
Log:
Apply PMD Rules.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java?rev=1549119&r1=1549118&r2=1549119&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/document/impl/guesser/GuessUtils.java
Sun Dec  8 19:07:01 2013
@@ -25,19 +25,26 @@ import org.apache.commons.lang.StringUti
 /**
  * The Class GuessUtils.
  */
-public class GuessUtils {
+public final class GuessUtils {
 
 	/** The Constant SEPARATORS. */
 	private static final String[] SEPARATORS = { "/", "\\" };
 
 	/**
+	 * Instantiates a new guess utils.
+	 */
+	private GuessUtils() {
+		super();
+	}
+
+	/**
 	 * Converts name to upper case and strips any path.
 	 * 
 	 * @param name
 	 *            not null
 	 * @return not null
 	 */
-	public static final String normalise(final String name) {
+	public static String normalise(final String name) {
 		String result = name.toUpperCase(Locale.US);
 		final int lastSeparatorIndex = StringUtils.lastIndexOfAny(result,
 				SEPARATORS);



Mime
View raw message