* A flag that specifies whether CryptoAPI RC4 or ECMA-376 encryption
* ECMA-376 is used. It MUST be 1 unless flagExternal is 1. If flagExternal is 1, it MUST be 0.
*/
- public static BitField flagCryptoAPI = BitFieldFactory.getInstance(0x04);
+ public static final BitField flagCryptoAPI = BitFieldFactory.getInstance(0x04);
/**
* A value that MUST be 0 if document properties are encrypted.
* The encryption of document properties is specified in section 2.3.5.4.
*/
- public static BitField flagDocProps = BitFieldFactory.getInstance(0x08);
+ public static final BitField flagDocProps = BitFieldFactory.getInstance(0x08);
/**
* A value that MUST be 1 if extensible encryption is used. If this value is 1,
* the value of every other field in this structure MUST be 0.
*/
- public static BitField flagExternal = BitFieldFactory.getInstance(0x10);
+ public static final BitField flagExternal = BitFieldFactory.getInstance(0x10);
/**
* A value that MUST be 1 if the protected content is an ECMA-376 document
* ECMA-376. If the fAES bit is 1, the fCryptoAPI bit MUST also be 1.
*/
- public static BitField flagAES = BitFieldFactory.getInstance(0x20);
+ public static final BitField flagAES = BitFieldFactory.getInstance(0x20);
/**
import org.apache.poi.sl.usermodel.TextShape;\r
\r
public class DrawFactory {\r
- protected static ThreadLocal<DrawFactory> defaultFactory = new ThreadLocal<DrawFactory>();\r
+ protected static final ThreadLocal<DrawFactory> defaultFactory = new ThreadLocal<DrawFactory>();\r
\r
/**\r
* Set a custom draw factory for the current thread.\r
public class NumericRanges {
- public static int NO_OVERLAPS = -1;
- public static int OVERLAPS_1_MINOR = 0;
- public static int OVERLAPS_2_MINOR = 1;
- public static int OVERLAPS_1_WRAPS = 2;
- public static int OVERLAPS_2_WRAPS = 3;
+ public static final int NO_OVERLAPS = -1;
+ public static final int OVERLAPS_1_MINOR = 0;
+ public static final int OVERLAPS_2_MINOR = 1;
+ public static final int OVERLAPS_1_WRAPS = 2;
+ public static final int OVERLAPS_2_WRAPS = 3;
public static long[] getOverlappingRange(long[] range1, long[] range2) {
int overlappingType = getOverlappingType(range1, range2);
*/
public final class HSLFNotes extends HSLFSheet implements Notes<HSLFShape, HSLFSlideShow> {
- protected static POILogger logger = POILogFactory.getLogger(HSLFNotes.class);
+ protected static final POILogger logger = POILogFactory.getLogger(HSLFNotes.class);
private List<List<HSLFTextParagraph>> _paragraphs = new ArrayList<List<HSLFTextParagraph>>();
*/\r
\r
public final class HSLFTextParagraph implements TextParagraph<HSLFTextRun> {\r
- protected static POILogger logger = POILogFactory.getLogger(HSLFTextParagraph.class);\r
+ protected static final POILogger logger = POILogFactory.getLogger(HSLFTextParagraph.class);\r
\r
/**\r
* How to align the text\r