Skip to content

Commit

Permalink
DefaultPrettyPrinter: make some public static variables final
Browse files Browse the repository at this point in the history
Although nobody on their right mind would try and override those, better safe
than sorry.
  • Loading branch information
Francis Galiegue committed Nov 13, 2012
1 parent d6d57e5 commit 806f418
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public static class NopIndenter
{
private static final long serialVersionUID = 1L;

public static NopIndenter instance = new NopIndenter();
public static final NopIndenter instance = new NopIndenter();

public NopIndenter() { }
// @Override
Expand All @@ -332,7 +332,7 @@ public static class FixedSpaceIndenter
{
private static final long serialVersionUID = 1L;

public static FixedSpaceIndenter instance = new FixedSpaceIndenter();
public static final FixedSpaceIndenter instance = new FixedSpaceIndenter();

public FixedSpaceIndenter() { }

Expand All @@ -356,7 +356,7 @@ public static class Lf2SpacesIndenter
{
private static final long serialVersionUID = 1L;

public static Lf2SpacesIndenter instance = new Lf2SpacesIndenter();
public static final Lf2SpacesIndenter instance = new Lf2SpacesIndenter();

final static String SYSTEM_LINE_SEPARATOR;
static {
Expand Down

0 comments on commit 806f418

Please sign in to comment.