Eg This constructor will - as seen below always throw NPE if either argument
is null. This should be specified.
public AttributedString(String text,
Map<? extends Attribute, ?> attributes)
{
if (text == null || attributes == null) {
throw new NullPointerException();
}
The same applies to all rest of the constructors too
###@###.### 11/4/04 21:51 GMT
is null. This should be specified.
public AttributedString(String text,
Map<? extends Attribute, ?> attributes)
{
if (text == null || attributes == null) {
throw new NullPointerException();
}
The same applies to all rest of the constructors too
###@###.### 11/4/04 21:51 GMT
- duplicates
-
JDK-5100382 Doc: JCK: AttributedString spec should better describe null args
-
- Closed
-