aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-10-18 22:35:17 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-10-18 22:35:17 +0000
commit3c3154ea8c330833fc38bd2144018f09a7d56b09 (patch)
tree89fd43d1280fa4865fe7f0fd4b821b5ad148178c /poi/src
parent646fb8c69080d191256468168ce63e1d3cb81c2d (diff)
downloadpoi-3c3154ea8c330833fc38bd2144018f09a7d56b09.tar.gz
poi-3c3154ea8c330833fc38bd2144018f09a7d56b09.zip
sonar fixes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894365 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src')
-rw-r--r--poi/src/test/java/org/apache/poi/hpsf/basic/TestBasic.java2
-rw-r--r--poi/src/test/java/org/apache/poi/hpsf/basic/TestEmptyProperties.java8
-rw-r--r--poi/src/test/java9/module-info.classbin4145 -> 4198 bytes
3 files changed, 5 insertions, 5 deletions
diff --git a/poi/src/test/java/org/apache/poi/hpsf/basic/TestBasic.java b/poi/src/test/java/org/apache/poi/hpsf/basic/TestBasic.java
index cc75abc874..e2ce00ceb1 100644
--- a/poi/src/test/java/org/apache/poi/hpsf/basic/TestBasic.java
+++ b/poi/src/test/java/org/apache/poi/hpsf/basic/TestBasic.java
@@ -168,7 +168,7 @@ final class TestBasic {
final SummaryInformation si = (SummaryInformation)PropertySetFactory.create(is);
final List<Section> sections = si.getSections();
final Section s = sections.get(0);
- assertEquals(s.getFormatID(), SummaryInformation.FORMAT_ID);
+ assertEquals(SummaryInformation.FORMAT_ID, s.getFormatID());
assertNotNull(s.getProperties());
assertEquals(17, s.getPropertyCount());
assertEquals("Titel", s.getProperty(PropertyIDMap.PID_TITLE));
diff --git a/poi/src/test/java/org/apache/poi/hpsf/basic/TestEmptyProperties.java b/poi/src/test/java/org/apache/poi/hpsf/basic/TestEmptyProperties.java
index 0fdb48eea0..2cb8086c0c 100644
--- a/poi/src/test/java/org/apache/poi/hpsf/basic/TestEmptyProperties.java
+++ b/poi/src/test/java/org/apache/poi/hpsf/basic/TestEmptyProperties.java
@@ -141,13 +141,13 @@ final class TestEmptyProperties {
assertNotNull(s.getTemplate());
assertNotNull(s.getLastAuthor());
assertNotNull(s.getRevNumber());
- assertEquals(s.getEditTime(), 0);
+ assertEquals(0, s.getEditTime());
assertNull(s.getLastPrinted());
assertNull(s.getCreateDateTime());
assertNull(s.getLastSaveDateTime());
- assertEquals(s.getPageCount(), 0);
- assertEquals(s.getWordCount(), 0);
- assertEquals(s.getCharCount(), 0);
+ assertEquals(0, s.getPageCount());
+ assertEquals(0, s.getWordCount());
+ assertEquals(0, s.getCharCount());
assertNull(s.getThumbnail());
assertNull(s.getApplicationName());
}
diff --git a/poi/src/test/java9/module-info.class b/poi/src/test/java9/module-info.class
index 028b943d0a..438e778ab5 100644
--- a/poi/src/test/java9/module-info.class
+++ b/poi/src/test/java9/module-info.class
Binary files differ