Skip to content

Commit

Permalink
fixed compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy authored and gnodet committed May 14, 2018
1 parent 7ae726d commit 0507042
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions jansi/src/main/java/org/fusesource/jansi/AnsiRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,19 +219,16 @@ public enum Code {
BOLD(Attribute.INTENSITY_BOLD),
FAINT(Attribute.INTENSITY_FAINT),;

@SuppressWarnings("unchecked")
private final Enum n;
private final Enum<?> n;

private final boolean background;

@SuppressWarnings("unchecked")
Code(final Enum n, boolean background) {
Code(final Enum<?> n, boolean background) {
this.n = n;
this.background = background;
}

@SuppressWarnings("unchecked")
Code(final Enum n) {
Code(final Enum<?> n) {
this(n, false);
}

Expand Down

0 comments on commit 0507042

Please sign in to comment.