Author: rdonkin
Date: Fri Dec  6 19:50:12 2013
New Revision: 1548701

URL: http://svn.apache.org/r1548701
Log:
Add java doc.

Modified:
    
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/CDDL1License.java

Modified: 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/CDDL1License.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/CDDL1License.java?rev=1548701&r1=1548700&r2=1548701&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/CDDL1License.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/CDDL1License.java
 Fri Dec  6 19:50:12 2013
@@ -19,6 +19,7 @@
 package org.apache.rat.analysis.license;
 
 import java.util.regex.Pattern;
+
 import org.apache.commons.lang.ArrayUtils;
 import org.apache.rat.api.MetaData;
 
@@ -27,20 +28,30 @@ import org.apache.rat.api.MetaData;
  */
 public class CDDL1License extends SimplePatternBasedLicense {
 
+       /** The Constant LICENSE_LINE. */
     public static final String LICENSE_LINE =
             "The contents of this file are subject to the terms of the Common 
Development[\\\\r\\\\n\\\\s]+"
             + "and Distribution License(\"CDDL\") (the \"License\"). You may 
not use this file[\\\\r\\\\n\\\\s]+"
             + "except in compliance with the License.";
 
+       /** The Constant LICENSE_URL. */
     public static final String LICENSE_URL =
             ".*https://oss.oracle.com/licenses/CDDL.*";;
 
+       /**
+        * Instantiates a new cDD l1 license.
+        */
     public CDDL1License() {
         super(MetaData.RAT_LICENSE_FAMILY_CATEGORY_DATUM_CDLL1,
                 MetaData.RAT_LICENSE_FAMILY_NAME_DATUM_CDDL1,
                 "", new String[]{LICENSE_LINE, LICENSE_URL});
     }
 
+       /**
+        * Gets the reg ex patterns.
+        * 
+        * @return the reg ex patterns
+        */
     private Pattern[] getRegExPatterns() {
         final Pattern[] result;
         final String[] pttrns = getPatterns();
@@ -56,6 +67,13 @@ public class CDDL1License extends Simple
         return result;
     }
 
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * 
org.apache.rat.analysis.license.SimplePatternBasedLicense#matches(java
+        * .lang.String)
+        */
     @Override
     protected boolean matches(final String pLine) {
         if (pLine != null) {


Reply via email to