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