@@ -167,7 +167,7 @@ public class AnsiConsole {
167
167
* @deprecated this field will be made private in a future release, use {@link #out()} instead
168
168
*/
169
169
@ Deprecated
170
- public static AnsiPrintStream out ;
170
+ public static PrintStream out ;
171
171
/**
172
172
* @deprecated this field will be made private in a future release, use {@link #sysErr()} instead
173
173
*/
@@ -177,7 +177,7 @@ public class AnsiConsole {
177
177
* @deprecated this field will be made private in a future release, use {@link #err()} instead
178
178
*/
179
179
@ Deprecated
180
- public static AnsiPrintStream err ;
180
+ public static PrintStream err ;
181
181
182
182
static final boolean IS_WINDOWS = System .getProperty ("os.name" ).toLowerCase (Locale .ENGLISH ).contains ("win" );
183
183
@@ -412,7 +412,7 @@ static boolean getBoolean(String name) {
412
412
*/
413
413
public static AnsiPrintStream out () {
414
414
initStreams ();
415
- return out ;
415
+ return ( AnsiPrintStream ) out ;
416
416
}
417
417
418
418
/**
@@ -434,7 +434,7 @@ public static PrintStream sysOut() {
434
434
*/
435
435
public static AnsiPrintStream err () {
436
436
initStreams ();
437
- return err ;
437
+ return ( AnsiPrintStream ) err ;
438
438
}
439
439
440
440
/**
@@ -456,8 +456,8 @@ synchronized static public void systemInstall() {
456
456
if (installed == 1 ) {
457
457
initStreams ();
458
458
try {
459
- out .install ();
460
- err .install ();
459
+ (( AnsiPrintStream ) out ) .install ();
460
+ (( AnsiPrintStream ) err ) .install ();
461
461
} catch (IOException e ) {
462
462
throw new IOError (e );
463
463
}
@@ -482,8 +482,8 @@ synchronized public static void systemUninstall() {
482
482
installed --;
483
483
if (installed == 0 ) {
484
484
try {
485
- out .uninstall ();
486
- err .uninstall ();
485
+ (( AnsiPrintStream ) out ) .uninstall ();
486
+ (( AnsiPrintStream ) err ) .uninstall ();
487
487
} catch (IOException e ) {
488
488
throw new IOError (e );
489
489
}
0 commit comments