View Javadoc
1   
2   package com.puppycrawl.tools.checkstyle.checks.design.visibilitymodifier;
3   
4   /** Shows that sealed enum is good as final. */
5   public enum InputVisibilityModifiersEnumIsSealed {
6       SOME_VALUE;
7   
8       static class Hole {
9       }
10  
11      /** Normally disallowed if final enclosing class is required. */
12      public final int someField = Integer.MAX_VALUE;
13  
14      /** Disallowed because mutable. */
15      public final Hole hole = null;
16  }