Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/incubator/rat/main/trunk@1156172 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
bodewig committed Aug 10, 2011
1 parent aa767af commit 13012fb
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,23 +172,23 @@ public void append(File document) throws IOException {
File newDocument = new File(document.getAbsolutePath() + ".new");
FileWriter writer = new FileWriter(newDocument);
try {
if (!attachLicense(writer, document,
expectsHashPling, expectsAtEcho, expectsPackage,
expectsXMLDecl, expectsPhpPI)) {
// Java File without package, XML file without decl or PHP
// file without PI
// for Java just place the license at the front, for XML add
// an XML decl first - don't know how to handle PHP
if (expectsPackage || expectsXMLDecl) {
writer = new FileWriter(newDocument);
if (!attachLicense(writer, document,
expectsHashPling, expectsAtEcho, expectsPackage,
expectsXMLDecl, expectsPhpPI)) {
// Java File without package, XML file without decl or PHP
// file without PI
// for Java just place the license at the front, for XML add
// an XML decl first - don't know how to handle PHP
if (expectsPackage || expectsXMLDecl) {
writer = new FileWriter(newDocument);
if (expectsXMLDecl) {
writer.write("<?xml version='1.0'?>");
writer.write(LINE_SEP);
}
attachLicense(writer, document,
false, false, false, false, false);
}
}
}
} finally {
if (writer != null) {
writer.close();
Expand Down

0 comments on commit 13012fb

Please sign in to comment.