Merge pull request #7241 from ckipp01/mispell

This commit is contained in:
eugene yokota 2023-05-08 09:10:37 -04:00 committed by GitHub
commit 6dbb6fef3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

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