|
3 | 3 | */
|
4 | 4 | package dotty.tools.xsbt;
|
5 | 5 |
|
| 6 | +import scala.Tuple2; |
| 7 | +import scala.collection.mutable.HashMap; |
| 8 | + |
6 | 9 | import dotty.tools.dotc.core.Contexts.Context;
|
7 | 10 | import dotty.tools.dotc.reporting.AbstractReporter;
|
8 | 11 | import dotty.tools.dotc.reporting.Diagnostic;
|
9 | 12 | import dotty.tools.dotc.reporting.Message;
|
| 13 | +import dotty.tools.dotc.util.SourceFile; |
10 | 14 | import dotty.tools.dotc.util.SourcePosition;
|
11 | 15 | import xsbti.Position;
|
12 | 16 | import xsbti.Severity;
|
13 | 17 |
|
14 |
| -// sbt-bridge/src/dotty/tools/xsbt/DelegatingReporter.java:14:1: dotty$tools$dotc$reporting$UniqueMessagePositions$$positions() in dotty.tools.dotc.reporting.AbstractReporter implements dotty$tools$dotc$reporting$UniqueMessagePositions$$positions() in dotty.tools.dotc.reporting.UniqueMessagePositions |
15 |
| -// return type requires unchecked conversion from scala.collection.mutable.HashMap to scala.collection.mutable.HashMap<scala.Tuple2<dotty.tools.dotc.util.SourceFile,java.lang.Object>,dotty.tools.dotc.reporting.Diagnostic> |
16 |
| -@SuppressWarnings("unchecked") |
17 |
| - |
18 | 18 | final public class DelegatingReporter extends AbstractReporter {
|
19 | 19 | private xsbti.Reporter delegate;
|
20 | 20 |
|
@@ -66,4 +66,11 @@ private static Position positionOf(SourcePosition pos) {
|
66 | 66 | return PositionBridge.noPosition;
|
67 | 67 | }
|
68 | 68 | }
|
| 69 | + |
| 70 | + @SuppressWarnings("unchecked") |
| 71 | + // [warn] sbt-bridge/src/dotty/tools/xsbt/DelegatingReporter.java:18:1: dotty$tools$dotc$reporting$UniqueMessagePositions$$positions() in dotty.tools.dotc.reporting.AbstractReporter implements dotty$tools$dotc$reporting$UniqueMessagePositions$$positions() in dotty.tools.dotc.reporting.UniqueMessagePositions |
| 72 | + // [warn] return type requires unchecked conversion from scala.collection.mutable.HashMap to scala.collection.mutable.HashMap<scala.Tuple2<dotty.tools.dotc.util.SourceFile,java.lang.Integer>,dotty.tools.dotc.reporting.Diagnostic> |
| 73 | + public HashMap<Tuple2<SourceFile, Integer>, Diagnostic> dotty$tools$dotc$reporting$UniqueMessagePositions$$positions() { |
| 74 | + return (HashMap<Tuple2<SourceFile, Integer>, Diagnostic>) super.dotty$tools$dotc$reporting$UniqueMessagePositions$$positions(); |
| 75 | + } |
69 | 76 | }
|
0 commit comments