diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-20 15:30:36 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:02 +0200 |
commit | dc53e3027bb1a278164f15d0a31f20c15608d10e (patch) | |
tree | 84fe7e21121789981ac18e53e1f45453a064e279 /xmerge | |
parent | java: log exceptions correctly, using the right version of WARN (diff) | |
download | core-dc53e3027bb1a278164f15d0a31f20c15608d10e.tar.gz core-dc53e3027bb1a278164f15d0a31f20c15608d10e.zip |
java: simplify conditions involving logical negation
Change-Id: Ib45e58273e650ef9a31dbdb5f71e995a5976f50e
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java index f6d6cf22a000..27f87f078171 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxc/Format.java @@ -164,7 +164,7 @@ public class Format implements Cloneable { public boolean getAttribute(int attribute) { if ((mask & attribute) == 0) return false; - return (!((attributes & attribute) == 0)); + return ((attributes & attribute) != 0); } /** @@ -431,4 +431,4 @@ public class Format implements Cloneable { return true; } -}
\ No newline at end of file +} |