Author: dennisl
Date: Tue Nov 26 18:45:05 2013
New Revision: 1545775

URL: http://svn.apache.org/r1545775
Log:
[RAT-153] Do not add extra empty lines when appending headers for the Apache 
License.

Modified:
    
creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/ApacheV2LicenceAppender.java

Modified: 
creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/ApacheV2LicenceAppender.java
URL: 
http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/ApacheV2LicenceAppender.java?rev=1545775&r1=1545774&r2=1545775&view=diff
==============================================================================
--- 
creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/ApacheV2LicenceAppender.java
 (original)
+++ 
creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/annotation/ApacheV2LicenceAppender.java
 Tue Nov 26 18:45:05 2013
@@ -57,7 +57,6 @@ public class ApacheV2LicenceAppender ext
     StringBuilder sb = new StringBuilder();
     if (copyright == null) {
       sb.append(getFirstLine(type));
-      sb.append(getLine(type, ""));
       sb.append(getLine(type, "Licensed to the Apache Software Foundation 
(ASF) under one"));
       sb.append(getLine(type, "or more contributor license agreements.  See 
the NOTICE file"));
       sb.append(getLine(type, "distributed with this work for additional 
information"));
@@ -74,11 +73,9 @@ public class ApacheV2LicenceAppender ext
       sb.append(getLine(type, "KIND, either express or implied.  See the 
License for the"));
       sb.append(getLine(type, "specific language governing permissions and 
limitations"));
       sb.append(getLine(type, "under the License."));
-      sb.append(getLine(type, ""));
       sb.append(getLastLine(type));
     } else {
       sb.append(getFirstLine(type));
-      sb.append(getLine(type, ""));
       sb.append(getLine(type, copyright));
       sb.append(getLine(type, ""));
       sb.append(getLine(type, "Licensed under the Apache License, Version 2.0 
(the \"License\");"));
@@ -93,7 +90,6 @@ public class ApacheV2LicenceAppender ext
       sb.append(getLine(type, "KIND, either express or implied.  See the 
License for the"));
       sb.append(getLine(type, "specific language governing permissions and 
limitations"));
       sb.append(getLine(type, "under the License."));
-      sb.append(getLine(type, ""));
       sb.append(getLastLine(type));
     }
     return sb.toString();


Reply via email to