correctly set hasCo..LevelChanged with repeated setLevel calls
see Ant bug
@@ -875,7 +875,10 @@ public void setLevel(final int level) {
throw new IllegalArgumentException("Invalid compression level: "
+ level);
}
- hasCompressionLevelChanged = (this.level != level);
+ if (this.level == level) {
+ return;
+ }
+ hasCompressionLevelChanged = true;
this.level = level;
}
