commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benedikt Ritter <>
Subject [IO] Input parameter checking
Date Fri, 22 May 2015 06:52:08 GMT

I've noticed that there are some classes that do not validate input
parameters. For example the constructor OutputStream out, final String

does not check whether out is null, which will lead to late failure
in detectEncoding(final char[] cbuf, final int off, final int len).
Shouldn't we check for illegal null inputs in such situations?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message