Re: malformed URL exception exception in saxbuilder.build due to unreachable URL

Paul Libbrecht <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Michael,

can you display a javadoc that displays this use of @Nullable or @NotNull?
A screenshot with IntelliJ would also be useful but well...
I would think IntelliJ is uselessly zealous to complain about the "if null"; they're rather easy to speak to about such... I am sure it's a matter of maturity for such annotations.

thanks

paul


Le 12 févr. 2012 à 00:33, Michael Kay a écrit :

> 
>> Having read some things recently in Effective Java, and also more carefully implementing core API's like the Collections API, I am now more inclined to do an explicit null check, and throw NullPointerException.
> I started putting @Nullable and @NotNull assertions into my code, and this got very confusing. I don't know about other tools, but IntelliJ gives you warnings if you say @NotNull and then have an "if null" test, while if you say @Nullable then the wrong information is conveyed to the user of the API.
> 
> Michael Kay
> Saxonica
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/[email protected]


_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.