creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1548420 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/generation/JavaDocLicenseNotRequired.java
Date Fri, 06 Dec 2013 08:33:46 GMT
Author: rdonkin
Date: Fri Dec  6 08:33:46 2013
New Revision: 1548420

URL: http://svn.apache.org/r1548420
Log:
Format Code.

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

Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/generation/JavaDocLicenseNotRequired.java
URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/generation/JavaDocLicenseNotRequired.java?rev=1548420&r1=1548419&r2=1548420&view=diff
==============================================================================
--- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/generation/JavaDocLicenseNotRequired.java
(original)
+++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/generation/JavaDocLicenseNotRequired.java
Fri Dec  6 08:33:46 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.analysis.generation;
 
 import org.apache.rat.analysis.IHeaderMatcher;
@@ -24,26 +24,28 @@ import org.apache.rat.api.Document;
 import org.apache.rat.api.MetaData;
 
 /**
- * JavaDocs are generated and so no license is required.
- * It is useful to note these separately.
+ * JavaDocs are generated and so no license is required. It is useful to note
+ * these separately.
  */
 public class JavaDocLicenseNotRequired implements IHeaderMatcher {
 
-    private static final String JAVADOC_REGEX_DEFN = "Generated by javadoc";
-    
-    public boolean match(Document subject, String line) throws RatHeaderAnalysisException
{
-        boolean result = line.contains(JAVADOC_REGEX_DEFN);
-        if (result) {
-            reportOnLicense(subject);
-        }
-        return result;
-    }
-
-    private void reportOnLicense(Document subject) {
-        subject.getMetaData().set(MetaData.RAT_LICENSE_FAMILY_CATEGORY_DATUM_GEN);
-    }
-    
-    public void reset() {
-        // stateless
-    }
+	private static final String JAVADOC_REGEX_DEFN = "Generated by javadoc";
+
+	public boolean match(Document subject, String line)
+			throws RatHeaderAnalysisException {
+		boolean result = line.contains(JAVADOC_REGEX_DEFN);
+		if (result) {
+			reportOnLicense(subject);
+		}
+		return result;
+	}
+
+	private void reportOnLicense(Document subject) {
+		subject.getMetaData().set(
+				MetaData.RAT_LICENSE_FAMILY_CATEGORY_DATUM_GEN);
+	}
+
+	public void reset() {
+		// stateless
+	}
 }



Mime
View raw message