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
This commit is contained in:
PJ Fanning 2017-10-15 20:50:58 +00:00
parent e1571c9130
commit 16125ab3cc
3 changed files with 5 additions and 5 deletions

View 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();

View 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);
/**

View 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;
}
}
}