Author: rdonkin
Date: Fri Dec  6 09:26:27 2013
New Revision: 1548461

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

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

Modified: 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/SimplePatternBasedLicense.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/SimplePatternBasedLicense.java?rev=1548461&r1=1548460&r2=1548461&view=diff
==============================================================================
--- 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/SimplePatternBasedLicense.java
 (original)
+++ 
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/analysis/license/SimplePatternBasedLicense.java
 Fri Dec  6 09:26:27 2013
@@ -15,60 +15,60 @@
  * KIND, either express or implied.  See the License for the    *
  * specific language governing permissions and limitations      *
  * under the License.                                           *
- */ 
+ */
 package org.apache.rat.analysis.license;
 
 import org.apache.rat.analysis.IHeaderMatcher;
 import org.apache.rat.api.Document;
 import org.apache.rat.api.MetaData.Datum;
 
-
 /**
  * @since Rat 0.8
  */
-public class SimplePatternBasedLicense extends BaseLicense implements 
IHeaderMatcher {
-    private String[] patterns;
-
-    public SimplePatternBasedLicense() {
-    }
-
-    protected SimplePatternBasedLicense(Datum pLicenseFamilyCategory, Datum 
pLicenseFamilyName,
-            String pNotes, String[] pPatterns) {
-        super(pLicenseFamilyCategory, pLicenseFamilyName, pNotes);
-        setPatterns(pPatterns);
-    }
-    
-    public String[] getPatterns() {
-        return patterns;
-    }
-
-    public void setPatterns(String[] pPatterns) {
-        patterns = pPatterns;
-    }
-
-    protected boolean matches(String pLine) {
-        if (pLine != null) {
-            final String[] pttrns = getPatterns();
-            if (pttrns != null) {
-                for (String pttrn : pttrns) {
-                    if (pLine.indexOf(pttrn, 0) >= 0) {
-                        return true;
-                    }
-                }
-            }
-        }
-        return false;
-    }
-    
-    public void reset() {
-        // Nothing to do
-    }
-
-    public boolean match(Document pSubject, String pLine) {
-        final boolean result = matches(pLine);
-        if (result) {
-            reportOnLicense(pSubject);
-        }
-        return result;
-    }
+public class SimplePatternBasedLicense extends BaseLicense implements
+               IHeaderMatcher {
+       private String[] patterns;
+
+       public SimplePatternBasedLicense() {
+       }
+
+       protected SimplePatternBasedLicense(Datum pLicenseFamilyCategory,
+                       Datum pLicenseFamilyName, String pNotes, String[] 
pPatterns) {
+               super(pLicenseFamilyCategory, pLicenseFamilyName, pNotes);
+               setPatterns(pPatterns);
+       }
+
+       public String[] getPatterns() {
+               return patterns;
+       }
+
+       public void setPatterns(String[] pPatterns) {
+               patterns = pPatterns;
+       }
+
+       protected boolean matches(String pLine) {
+               if (pLine != null) {
+                       final String[] pttrns = getPatterns();
+                       if (pttrns != null) {
+                               for (String pttrn : pttrns) {
+                                       if (pLine.indexOf(pttrn, 0) >= 0) {
+                                               return true;
+                                       }
+                               }
+                       }
+               }
+               return false;
+       }
+
+       public void reset() {
+               // Nothing to do
+       }
+
+       public boolean match(Document pSubject, String pLine) {
+               final boolean result = matches(pLine);
+               if (result) {
+                       reportOnLicense(pSubject);
+               }
+               return result;
+       }
 }


Reply via email to