Skip to content

Commit 6af32f4

Browse files
committed
fixed compiler warning
1 parent 49e8293 commit 6af32f4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

jansi/src/main/java/org/fusesource/jansi/AnsiRenderer.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -219,19 +219,16 @@ public enum Code {
219219
BOLD(Attribute.INTENSITY_BOLD),
220220
FAINT(Attribute.INTENSITY_FAINT),;
221221

222-
@SuppressWarnings("unchecked")
223-
private final Enum n;
222+
private final Enum<?> n;
224223

225224
private final boolean background;
226225

227-
@SuppressWarnings("unchecked")
228-
Code(final Enum n, boolean background) {
226+
Code(final Enum<?> n, boolean background) {
229227
this.n = n;
230228
this.background = background;
231229
}
232230

233-
@SuppressWarnings("unchecked")
234-
Code(final Enum n) {
231+
Code(final Enum<?> n) {
235232
this(n, false);
236233
}
237234

0 commit comments

Comments
 (0)