8250858: Address reliance on default constructors in the Java Sound APIs
Reviewed-by: prr
This commit is contained in:
parent
e11ce6d5fe
commit
4d4161a57e
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2020, 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
|
||||
@ -142,4 +142,9 @@ public class VoiceStatus {
|
||||
* @see #active
|
||||
*/
|
||||
public int volume = 0;
|
||||
|
||||
/**
|
||||
* Constructs a {@code VoiceStatus}.
|
||||
*/
|
||||
public VoiceStatus() {}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
@ -38,6 +38,11 @@ import javax.sound.midi.MidiDevice;
|
||||
*/
|
||||
public abstract class MidiDeviceProvider {
|
||||
|
||||
/**
|
||||
* Constructs a {@code MidiDeviceProvider}.
|
||||
*/
|
||||
protected MidiDeviceProvider() {}
|
||||
|
||||
/**
|
||||
* Indicates whether the device provider supports the device represented by
|
||||
* the specified device info object.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
@ -45,6 +45,11 @@ import javax.sound.midi.Sequence;
|
||||
*/
|
||||
public abstract class MidiFileReader {
|
||||
|
||||
/**
|
||||
* Constructs a {@code MidiFileReader}.
|
||||
*/
|
||||
protected MidiFileReader() {}
|
||||
|
||||
/**
|
||||
* Obtains the MIDI file format of the input stream provided. The stream
|
||||
* must point to valid MIDI file data. In general, MIDI file readers may
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
@ -42,6 +42,11 @@ import javax.sound.midi.Sequence;
|
||||
*/
|
||||
public abstract class MidiFileWriter {
|
||||
|
||||
/**
|
||||
* Constructs a {@code MidiFileWriter}.
|
||||
*/
|
||||
protected MidiFileWriter() {}
|
||||
|
||||
/**
|
||||
* Obtains the set of MIDI file types for which file writing support is
|
||||
* provided by this file writer.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
@ -44,6 +44,11 @@ import javax.sound.midi.Synthesizer;
|
||||
*/
|
||||
public abstract class SoundbankReader {
|
||||
|
||||
/**
|
||||
* Constructs a {@code SoundbankReader}.
|
||||
*/
|
||||
protected SoundbankReader() {}
|
||||
|
||||
/**
|
||||
* Obtains a soundbank object from the {@code URL} provided.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
@ -44,6 +44,11 @@ import javax.sound.sampled.UnsupportedAudioFileException;
|
||||
*/
|
||||
public abstract class AudioFileReader {
|
||||
|
||||
/**
|
||||
* Constructs an {@code AudioFileReader}.
|
||||
*/
|
||||
protected AudioFileReader() {}
|
||||
|
||||
/**
|
||||
* Obtains the audio file format of the input stream provided. The stream
|
||||
* must point to valid audio file data. In general, audio file readers may
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
@ -45,6 +45,11 @@ import static javax.sound.sampled.AudioFileFormat.Type;
|
||||
*/
|
||||
public abstract class AudioFileWriter {
|
||||
|
||||
/**
|
||||
* Constructs an {@code AudioFileWriter}.
|
||||
*/
|
||||
protected AudioFileWriter() {}
|
||||
|
||||
/**
|
||||
* Obtains the file types for which file writing support is provided by this
|
||||
* audio file writer.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
@ -51,6 +51,11 @@ import static javax.sound.sampled.AudioFormat.Encoding;
|
||||
*/
|
||||
public abstract class FormatConversionProvider {
|
||||
|
||||
/**
|
||||
* Constructs a {@code FormatConversionProvider}.
|
||||
*/
|
||||
protected FormatConversionProvider() {}
|
||||
|
||||
/**
|
||||
* Obtains the set of source format encodings from which format conversion
|
||||
* services are provided by this provider.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, 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
|
||||
@ -39,6 +39,11 @@ import javax.sound.sampled.Mixer;
|
||||
*/
|
||||
public abstract class MixerProvider {
|
||||
|
||||
/**
|
||||
* Constructs a {@code MixerProvider}.
|
||||
*/
|
||||
protected MixerProvider() {}
|
||||
|
||||
/**
|
||||
* Indicates whether the mixer provider supports the mixer represented by
|
||||
* the specified mixer info object.
|
||||
|
Loading…
Reference in New Issue
Block a user