Replies: 6 comments
-
Is this a runtime error, or something you're seeing via your IDE. If the latter, which IDE are you using? |
Beta Was this translation helpful? Give feedback.
-
Yes, thanks. Needed to learn about nullchecks etc. Last time I used java @nonnull didn't even exist. |
Beta Was this translation helpful? Give feedback.
-
Well it took me a long while and a lot of reading, but I got to the bottom of this. The classes for Containers and Software Systems have different annotations on them. To be exact: Software Systems have the @nonnull annotations on addContainer methods, while Containers do not have those on addComponent methods. Is there any reason for this? |
Beta Was this translation helpful? Give feedback.
-
It was a part of PR #98.
Probably just an oversight. Feel free to address with a PR. |
Beta Was this translation helpful? Give feedback.
-
As I said in the previous comment, probably just an oversight ... you'd need to ask @klu2. |
Beta Was this translation helpful? Give feedback.
-
yes that's just an oversight. |
Beta Was this translation helpful? Give feedback.
-
Component.uses() always generates a warning stating that "Null type safety: The expression of type 'Component' needs unchecked conversion to conform to '@nonnull Component". No other layer (e.g. Container.uses()) generates that message.
Beta Was this translation helpful? Give feedback.
All reactions