Skip to content

Commit 36c4e5f

Browse files
8267187: Remove deprecated constructor for Log
Reviewed-by: darcy, iris
1 parent fc08af5 commit 36c4e5f

File tree

1 file changed

+0
-34
lines changed
  • src/jdk.compiler/share/classes/com/sun/tools/javac/util

1 file changed

+0
-34
lines changed

src/jdk.compiler/share/classes/com/sun/tools/javac/util/Log.java

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -310,39 +310,6 @@ private static Map<WriterKind, PrintWriter> initWriters(PrintWriter out, PrintWr
310310
return writers;
311311
}
312312

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-
346313
/**
347314
* Creates a log.
348315
* @param context the context in which the log should be registered
@@ -773,7 +740,6 @@ protected void writeDiagnostic(JCDiagnostic diag) {
773740
writer.flush();
774741
}
775742

776-
@Deprecated
777743
protected PrintWriter getWriterForDiagnosticType(DiagnosticType dt) {
778744
switch (dt) {
779745
case FRAGMENT:

0 commit comments

Comments
 (0)