summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2017-10-15 20:50:58 +0000
committerPJ Fanning <fanningpj@apache.org>2017-10-15 20:50:58 +0000
commite4fc2670d56a003677ec6f465641df08bc528883 (patch)
treeb6154abad8d23727f10436e203e02d9167225fcf /src
parent0b5a0a077fac44b7567bde9a3165bf6106873231 (diff)
downloadpoi-e4fc2670d56a003677ec6f465641df08bc528883.tar.gz
poi-e4fc2670d56a003677ec6f465641df08bc528883.zip
Make public static members final [thanks to Kui Liu]. This close #78.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1812234 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/examples/src/org/apache/poi/hssf/view/SVTableCellRenderer.java2
-rw-r--r--src/examples/src/org/apache/poi/hssf/view/SVTableUtils.java2
-rw-r--r--src/java/org/apache/poi/hssf/record/common/FeatProtection.java6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/src/org/apache/poi/hssf/view/SVTableCellRenderer.java b/src/examples/src/org/apache/poi/hssf/view/SVTableCellRenderer.java
index ab8b1faf60..4e51ba3b72 100644
--- a/src/examples/src/org/apache/poi/hssf/view/SVTableCellRenderer.java
+++ b/src/examples/src/org/apache/poi/hssf/view/SVTableCellRenderer.java
@@ -52,7 +52,7 @@ import org.apache.poi.ss.usermodel.FillPatternType;
public class SVTableCellRenderer extends JLabel
implements TableCellRenderer, Serializable
{
- protected static Border noFocusBorder = new EmptyBorder(1, 1, 1, 1);
+ protected static final Border noFocusBorder = new EmptyBorder(1, 1, 1, 1);
protected SVBorder cellBorder = new SVBorder();
diff --git a/src/examples/src/org/apache/poi/hssf/view/SVTableUtils.java b/src/examples/src/org/apache/poi/hssf/view/SVTableUtils.java
index 1a9fbf813a..6a7d2fa343 100644
--- a/src/examples/src/org/apache/poi/hssf/view/SVTableUtils.java
+++ b/src/examples/src/org/apache/poi/hssf/view/SVTableUtils.java
@@ -41,7 +41,7 @@ public class SVTableUtils {
/** Description of the Field */
public final static Color white = getAWTColor(HSSFColorPredefined.WHITE);
/** Description of the Field */
- public static Border noFocusBorder = new EmptyBorder(1, 1, 1, 1);
+ public static final Border noFocusBorder = new EmptyBorder(1, 1, 1, 1);
/**
diff --git a/src/java/org/apache/poi/hssf/record/common/FeatProtection.java b/src/java/org/apache/poi/hssf/record/common/FeatProtection.java
index a8dd9b36cf..f61d5ae3e4 100644
--- a/src/java/org/apache/poi/hssf/record/common/FeatProtection.java
+++ b/src/java/org/apache/poi/hssf/record/common/FeatProtection.java
@@ -35,8 +35,8 @@ import org.apache.poi.util.StringUtil;
*/
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;
+ public static final long NO_SELF_RELATIVE_SECURITY_FEATURE = 0;
+ public static final long HAS_SELF_RELATIVE_SECURITY_FEATURE = 1;
private int fSD;
@@ -103,4 +103,4 @@ public final class FeatProtection implements SharedFeature {
public int getFSD() {
return fSD;
}
-} \ No newline at end of file
+}