aboutsummaryrefslogtreecommitdiff
path: root/src/delombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2015-11-17 00:03:33 +0100
committerRoel Spilker <r.spilker@gmail.com>2015-11-17 00:04:39 +0100
commit9eb70cb3e2043b5262e686b4a80da36e5aa88d81 (patch)
treeb2b9d741169e47785eec216c28f34fdaa5b3b1a4 /src/delombok
parent8db179346171d47230b88cdd509954391fb49d1c (diff)
downloadlombok-9eb70cb3e2043b5262e686b4a80da36e5aa88d81.tar.gz
lombok-9eb70cb3e2043b5262e686b4a80da36e5aa88d81.tar.bz2
lombok-9eb70cb3e2043b5262e686b4a80da36e5aa88d81.zip
add the capability to the testing framework to verify that delombok actually also handles the changed flag correctly
Diffstat (limited to 'src/delombok')
-rw-r--r--src/delombok/lombok/delombok/Delombok.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java
index 514fc2ec..8083aa3b 100644
--- a/src/delombok/lombok/delombok/Delombok.java
+++ b/src/delombok/lombok/delombok/Delombok.java
@@ -508,7 +508,7 @@ public class Delombok {
FormatPreferences fps = new FormatPreferences(formatPrefs);
for (JCCompilationUnit unit : roots) {
DelombokResult result = new DelombokResult(catcher.getComments(unit), unit, force || options.isChanged(unit), fps);
- if (verbose) feedback.printf("File: %s [%s]\n", unit.sourcefile.getName(), result.isChanged() ? "delomboked" : "unchanged");
+ if (verbose) feedback.printf("File: %s [%s%s]\n", unit.sourcefile.getName(), result.isChanged() ? "delomboked" : "unchanged", force && !options.isChanged(unit) ? " (forced)" : "");
Writer rawWriter;
if (presetWriter != null) rawWriter = createUnicodeEscapeWriter(presetWriter);
else if (output == null) rawWriter = createStandardOutWriter();