Skip to content

Commit

Permalink
Fixed "'remove-file-header' goal leaves the '\n' character, which sho…
Browse files Browse the repository at this point in the history
…uld be avoided. mojohaus#129"
  • Loading branch information
xeagle2 committed Apr 14, 2018
1 parent aefd67b commit 6369e30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ private boolean processFile( FileHeaderTransformer transformer, File file, File
getLog().info( " - header was removed for " + file );
}

String contentWithoutHeader = content.substring( 0, firstIndex ) + content.substring( lastIndex );
String contentWithoutHeader = content.substring( 0, firstIndex ) + content.substring( lastIndex + 1 );

FileUtils.fileWrite( processFile, contentWithoutHeader );
FileState.remove.addFile( file, result );
Expand Down

0 comments on commit 6369e30

Please sign in to comment.