]> source.dussan.org Git - poi.git/commitdiff
Make public static members final [thanks to Kui Liu]. This close #78.
authorPJ Fanning <fanningpj@apache.org>
Sun, 15 Oct 2017 20:50:58 +0000 (20:50 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 15 Oct 2017 20:50:58 +0000 (20:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1812234 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/hssf/view/SVTableCellRenderer.java
src/examples/src/org/apache/poi/hssf/view/SVTableUtils.java
src/java/org/apache/poi/hssf/record/common/FeatProtection.java

index ab8b1faf60d589fbb40c3eab57a69d671f80a172..4e51ba3b7259b76a54c403a569e789c9022c9afb 100644 (file)
@@ -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();
 
 
index 1a9fbf813af78c47496e6c0d2f0bbedbb08eb08b..6a7d2fa3436bf320e71bfc5a96c88a302f3a2218 100644 (file)
@@ -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);
 
 
   /**
index a8dd9b36cfe3d7f0f89f525e9cf4eb150234e255..f61d5ae3e43755a24970317a6f44a2da98b53536 100644 (file)
@@ -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
+}