@@ -310,39 +310,6 @@ private static Map<WriterKind, PrintWriter> initWriters(PrintWriter out, PrintWr
310
310
return writers ;
311
311
}
312
312
313
- /**
314
- * Construct a log with given I/O redirections.
315
- * @deprecated
316
- * This constructor is provided to support
317
- * jdk.javadoc.internal.tool.Messager.Messager(com.sun.tools.javac.util.Context,
318
- * java.lang.String, java.io.PrintWriter, java.io.PrintWriter)
319
- */
320
- @ Deprecated
321
- protected Log (Context context , PrintWriter errWriter , PrintWriter warnWriter , PrintWriter noticeWriter ) {
322
- this (context , initWriters (errWriter , warnWriter , noticeWriter ));
323
- }
324
-
325
- /**
326
- * Initialize a writer map with different streams for different types of diagnostics.
327
- * @param errWriter a stream for writing error messages
328
- * @param warnWriter a stream for writing warning messages
329
- * @param noticeWriter a stream for writing notice messages
330
- * @return a map of writers
331
- * @deprecated This method exists to support a supported but now deprecated javadoc entry point.
332
- */
333
- @ Deprecated
334
- private static Map <WriterKind , PrintWriter > initWriters (PrintWriter errWriter , PrintWriter warnWriter , PrintWriter noticeWriter ) {
335
- Map <WriterKind , PrintWriter > writers = new EnumMap <>(WriterKind .class );
336
- writers .put (WriterKind .ERROR , errWriter );
337
- writers .put (WriterKind .WARNING , warnWriter );
338
- writers .put (WriterKind .NOTICE , noticeWriter );
339
-
340
- writers .put (WriterKind .STDOUT , noticeWriter );
341
- writers .put (WriterKind .STDERR , errWriter );
342
-
343
- return writers ;
344
- }
345
-
346
313
/**
347
314
* Creates a log.
348
315
* @param context the context in which the log should be registered
@@ -773,7 +740,6 @@ protected void writeDiagnostic(JCDiagnostic diag) {
773
740
writer .flush ();
774
741
}
775
742
776
- @ Deprecated
777
743
protected PrintWriter getWriterForDiagnosticType (DiagnosticType dt ) {
778
744
switch (dt ) {
779
745
case FRAGMENT :
0 commit comments