From: Shawn Laubach Date: Wed, 31 Dec 2003 17:02:23 +0000 (+0000) Subject: Set constants to be static. X-Git-Tag: PERF_BEFORE_MERGE~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=47541ff2e8fa8a4b75aed766ea7e7d0d310909b1;p=poi.git Set constants to be static. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353472 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java b/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java index 69085fda2c..c4879160e5 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java @@ -59,28 +59,28 @@ import org.apache.poi.hssf.record.PrintSetupRecord; *

* Paper size constants have been added for the ones I have access * to. They follow as:
- * public final short LETTER_PAPERSIZE = 1;
- * public final short LEGAL_PAPERSIZE = 5;
- * public final short EXECUTIVE_PAPERSIZE = 7;
- * public final short A4_PAPERSIZE = 9;
- * public final short A5_PAPERSIZE = 11;
- * public final short ENVELOPE_10_PAPERSIZE = 20;
- * public final short ENVELOPE_DL_PAPERSIZE = 27;
- * public final short ENVELOPE_CS_PAPERSIZE = 28;
- * public final short ENVELOPE_MONARCH_PAPERSIZE = 37;
+ * public static final short LETTER_PAPERSIZE = 1;
+ * public static final short LEGAL_PAPERSIZE = 5;
+ * public static final short EXECUTIVE_PAPERSIZE = 7;
+ * public static final short A4_PAPERSIZE = 9;
+ * public static final short A5_PAPERSIZE = 11;
+ * public static final short ENVELOPE_10_PAPERSIZE = 20;
+ * public static final short ENVELOPE_DL_PAPERSIZE = 27;
+ * public static final short ENVELOPE_CS_PAPERSIZE = 28;
+ * public static final short ENVELOPE_MONARCH_PAPERSIZE = 37;
*

* @author Shawn Laubach (slaubach at apache dot org) */ public class HSSFPrintSetup extends Object { - public final short LETTER_PAPERSIZE = 1; - public final short LEGAL_PAPERSIZE = 5; - public final short EXECUTIVE_PAPERSIZE = 7; - public final short A4_PAPERSIZE = 9; - public final short A5_PAPERSIZE = 11; - public final short ENVELOPE_10_PAPERSIZE = 20; - public final short ENVELOPE_DL_PAPERSIZE = 27; - public final short ENVELOPE_CS_PAPERSIZE = 28; - public final short ENVELOPE_MONARCH_PAPERSIZE = 37; + public static final short LETTER_PAPERSIZE = 1; + public static final short LEGAL_PAPERSIZE = 5; + public static final short EXECUTIVE_PAPERSIZE = 7; + public static final short A4_PAPERSIZE = 9; + public static final short A5_PAPERSIZE = 11; + public static final short ENVELOPE_10_PAPERSIZE = 20; + public static final short ENVELOPE_DL_PAPERSIZE = 27; + public static final short ENVELOPE_CS_PAPERSIZE = 28; + public static final short ENVELOPE_MONARCH_PAPERSIZE = 37; PrintSetupRecord printSetupRecord; /** * Constructor. Takes the low level print setup record.