fix: deprecate misspelled diagnosticRelatedInforamation and add in a new one

Relates to https://github.com/sbt/sbt/discussions/7063
This commit is contained in:
Chris Kipp 2023-05-08 13:38:15 +02:00
parent 26e9af13ec
commit 300b770ea4
1 changed files with 7 additions and 1 deletions

View File

@ -39,13 +39,19 @@ public interface Problem {
return Optional.empty();
}
/** @deprecated use {@link #diagnosticRelatedInformation()} instead. */
@Deprecated
default List<DiagnosticRelatedInformation> diagnosticRelatedInforamation() {
return diagnosticRelatedInformation();
}
/**
* The possible releated information for the diagnostic being reported.
*
* <p>NOTE: To avoid breaking compatibility we provide a default to account for older Scala
* versions that do not have the concept of "related information".
*/
default List<DiagnosticRelatedInformation> diagnosticRelatedInforamation() {
default List<DiagnosticRelatedInformation> diagnosticRelatedInformation() {
return Collections.emptyList();
}
}