Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8250858: Address reliance on default constructors in the Java Sound APIs
Reviewed-by: prr
  • Loading branch information
mrserb committed Aug 24, 2020
1 parent cbeab12 commit 655b45f2db9c991db98d8abfcf51b1717b8c8c95
@@ -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 @@
*/
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 @@
*/
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 @@
*/
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 @@
*/
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 @@
*/
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 @@
*/
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 @@
*/
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 @@
*/
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.

0 comments on commit 655b45f

Please sign in to comment.