creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1549473 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/Defaults.java
Date Mon, 09 Dec 2013 06:10:32 GMT
Author: rdonkin
Date: Mon Dec  9 06:10:31 2013
New Revision: 1549473

URL: http://svn.apache.org/r1549473
Log:
Apply PMD change.

Modified:
    creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/Defaults.java

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/Defaults.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/Defaults.java?rev=1549473&r1=1549472&r2=1549473&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/Defaults.java (original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/Defaults.java Mon
Dec  9 06:10:31 2013
@@ -42,12 +42,6 @@ import org.apache.rat.analysis.util.Head
 public class Defaults {
 
 	/**
-	 * no instances.
-	 */
-	private Defaults() {
-	}
-
-	/**
 	 * The standard list of licenses to include in the reports.
 	 */
 	public static final IHeaderMatcher[] DEFAULT_MATCHERS = new IHeaderMatcher[] {
@@ -62,12 +56,19 @@ public class Defaults {
 	public static final String PLAIN_STYLESHEET = "org/apache/rat/plain-rat.xsl";
 
 	/**
+	 * no instances.
+	 */
+	public Defaults() {
+		super();
+	}
+
+	/**
 	 * Gets the plain style sheet.
 	 * 
 	 * @return the plain style sheet
 	 */
 	public static InputStream getPlainStyleSheet() {
-		InputStream result = Defaults.class.getClassLoader()
+		InputStream result = Thread.currentThread().getContextClassLoader()
 				.getResourceAsStream(Defaults.PLAIN_STYLESHEET);
 		return result;
 	}
@@ -78,8 +79,7 @@ public class Defaults {
 	 * @return the default style sheet
 	 */
 	public static InputStream getDefaultStyleSheet() {
-		InputStream result = getPlainStyleSheet();
-		return result;
+		return getPlainStyleSheet();
 	}
 
 	/**



Mime
View raw message