--- old/src/java.desktop/share/classes/javax/sound/sampled/spi/MixerProvider.java 2015-09-14 15:32:03.000000000 +0300 +++ new/src/java.desktop/share/classes/javax/sound/sampled/spi/MixerProvider.java 2015-09-14 15:32:03.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,6 +25,8 @@ package javax.sound.sampled.spi; +import java.util.Objects; + import javax.sound.sampled.Mixer; /** @@ -49,9 +51,11 @@ * queried * @return {@code true} if the specified mixer is supported, otherwise * {@code false} + * @throws NullPointerException if {@code info} is {@code null} * @see #getMixerInfo() */ public boolean isMixerSupported(Mixer.Info info) { + Objects.requireNonNull(info); Mixer.Info infos[] = getMixerInfo(); @@ -85,7 +89,8 @@ * {@code getMixerInfo} method. Use the {@code isMixerSupported} method to * test whether this {@code MixerProvider} supports a particular mixer. * - * @param info an info object that describes the desired mixer + * @param info an info object that describes the desired mixer, + * or {@code null} for the system default mixer * @return mixer instance * @throws IllegalArgumentException if the info object specified does not * match the info object for a mixer supported by this MixerProvider