8130799: KeyStoreSpi.engineProbe does not throw the expected NullPointerException

Reviewed-by: xuelei
This commit is contained in:
Vinnie Ryan 2015-08-19 17:42:52 +01:00
parent f32b9d1944
commit 68703f6458

View file

@ -618,9 +618,12 @@ public abstract class KeyStoreSpi {
* @throws IOException if there is an I/O problem with the keystore data.
* @throws NullPointerException if stream is {@code null}.
*
* @since 1.9
* @since 9
*/
public boolean engineProbe(InputStream stream) throws IOException {
if (stream == null) {
throw new NullPointerException("input stream must not be null");
}
return false;
}
}