Author: rdonkin
Date: Mon Dec 9 06:10:03 2013
New Revision: 1549471
URL: http://svn.apache.org/r1549471
Log:
Format Code.
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=1549471&r1=1549470&r2=1549471&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:03 2013
@@ -15,7 +15,7 @@
* KIND, either express or implied. See the License for the *
* specific language governing permissions and limitations *
* under the License. *
- */
+ */
package org.apache.rat;
import org.apache.rat.analysis.IHeaderMatcher;
@@ -36,48 +36,39 @@ import org.apache.rat.analysis.util.Head
import java.io.InputStream;
import org.apache.rat.analysis.license.CDDL1License;
-
-
/**
* Utility class that holds constants shared by the CLI tool and the Ant tasks.
*/
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[] {
- new ApacheSoftwareLicense20(),
- new GPL1License(),
- new GPL2License(),
- new GPL3License(),
- new MITLicense(),
- new W3CLicense(),
- new W3CDocLicense(),
- new OASISLicense(),
- new JavaDocLicenseNotRequired(),
- new GeneratedLicenseNotRequired(),
- new DojoLicenseHeader(),
- new TMF854LicenseHeader(),
- new CDDL1License(),
- };
-
- public static final String PLAIN_STYLESHEET =
"org/apache/rat/plain-rat.xsl";
-
- public static InputStream getPlainStyleSheet() {
- InputStream result =
Defaults.class.getClassLoader().getResourceAsStream(Defaults.PLAIN_STYLESHEET);
- return result;
- }
-
- public static InputStream getDefaultStyleSheet() {
- InputStream result = getPlainStyleSheet();
- return result;
- }
-
- public static IHeaderMatcher createDefaultMatcher() {
- return new HeaderMatcherMultiplexer(Defaults.DEFAULT_MATCHERS);
- }
+ /** no instances */
+ private Defaults() {
+ }
+
+ /**
+ * The standard list of licenses to include in the reports.
+ */
+ public static final IHeaderMatcher[] DEFAULT_MATCHERS = new
IHeaderMatcher[] {
+ new ApacheSoftwareLicense20(), new GPL1License(),
+ new GPL2License(), new GPL3License(), new MITLicense(),
+ new W3CLicense(), new W3CDocLicense(), new
OASISLicense(),
+ new JavaDocLicenseNotRequired(), new
GeneratedLicenseNotRequired(),
+ new DojoLicenseHeader(), new TMF854LicenseHeader(),
+ new CDDL1License(), };
+
+ public static final String PLAIN_STYLESHEET =
"org/apache/rat/plain-rat.xsl";
+
+ public static InputStream getPlainStyleSheet() {
+ InputStream result = Defaults.class.getClassLoader()
+ .getResourceAsStream(Defaults.PLAIN_STYLESHEET);
+ return result;
+ }
+
+ public static InputStream getDefaultStyleSheet() {
+ InputStream result = getPlainStyleSheet();
+ return result;
+ }
+
+ public static IHeaderMatcher createDefaultMatcher() {
+ return new HeaderMatcherMultiplexer(Defaults.DEFAULT_MATCHERS);
+ }
}