]> source.dussan.org Git - poi.git/commitdiff
Suppress some warnings
authorDominik Stadler <centic@apache.org>
Sat, 16 Sep 2017 08:23:57 +0000 (08:23 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 16 Sep 2017 08:23:57 +0000 (08:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808514 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/DVRecord.java
src/java/org/apache/poi/hssf/record/common/FeatProtection.java
src/scratchpad/src/org/apache/poi/hwpf/usermodel/SectionProperties.java

index b4351cd13c0174fe86b9165cecb5f8792aaf4b50..4749e7b51e8d773ef5b81c0f25d2df7a088c65c0 100644 (file)
@@ -55,6 +55,7 @@ public final class DVRecord extends StandardRecord implements Cloneable {
        /** Formula data for first condition (RPN token array without size field) */
        private Formula _formula1;
        /** Not used - Excel seems to always write 0x0000 */
+       @SuppressWarnings("RedundantFieldInitialization")
        private short _not_used_2 = 0x0000;
        /** Formula data for second condition (RPN token array without size field) */
        private Formula _formula2;
index a10d7119c08196ca75f38cb453db84c7d7701463..a8dd9b36cfe3d7f0f89f525e9cf4eb150234e255 100644 (file)
@@ -34,6 +34,7 @@ import org.apache.poi.util.StringUtil;
  *  as {@link FeatRecord}
  */
 public final class FeatProtection implements SharedFeature {
+       @SuppressWarnings("RedundantFieldInitialization")
        public static long NO_SELF_RELATIVE_SECURITY_FEATURE = 0;
        public static long HAS_SELF_RELATIVE_SECURITY_FEATURE = 1;
 
index 47aad84d2524e83c08d8a519cbc9694299738ae5..11592281100812a1d44f003cae894dc50f1416f4 100644 (file)
@@ -24,6 +24,7 @@ public final class SectionProperties extends SEPAbstractType implements Cloneabl
     private short field_60_rncftn;
     private short field_61_rncedn;
     private int field_62_nftn;
+    @SuppressWarnings("RedundantFieldInitialization")
     private int field_63_nfcftnref = 0x00; // initialize with default value; msonfcArabic
     private int field_64_nedn;
     private int field_65_nfcednref = 0x02; // initialize with default value; msonfcLCRoman