Neil-Tomar commented on issue #12601:
URL: https://github.com/apache/maven/issues/12601#issuecomment-5239915963
On `maven-4.0.x`, `Source.getLocation()` is declared `@Nonnull`:
/**
* ...
* @return a non-null string describing the source location
*/
@Nonnull
String getLocation();
(`api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java`,
lines 86-89)
`ModelSource` extends `Source` and does not redeclare `getLocation()`, so
the contract there is non-null rather than `@Nullable`.
Am I missing a case where an implementation returns null, or should this be
closed?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]