SetID
Ian Young
ian at iay.org.uk
Tue Aug 5 11:07:22 EDT 2014
On 5 Aug 2014, at 15:27, Tom Zeller <tzeller at dragonacea.biz> wrote:
> Actually IdentifiedComponent.getId() is @Nullable.
It is, but that annotation is modified in places like AbstractIdentifiableInitializableComponent to be @Nullable @NonnullAfterInit.
IdentifiedComponent and InitializableComponent can interact to form two distinct contracts:
* components which may or may not have identifiers after initialization (I don't know if we actually have any of these)
* components which must have identifiers after initialization (this is enforced by subclasses of AbstractIdentifiableInitializableComponent)
With this in mind, I don't personally find the @Nonnull annotation on getId in IdentifiableComponent very illuminating.
Definitely worth talking about on Friday.
-- Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5943 bytes
Desc: not available
Url : http://shibboleth.net/pipermail/dev/attachments/20140805/606b101c/attachment-0001.bin
More information about the dev
mailing list