--- old/src/java.desktop/share/classes/javax/sound/sampled/FloatControl.java 2020-01-12 09:26:21.000000000 -0800 +++ new/src/java.desktop/share/classes/javax/sound/sampled/FloatControl.java 2020-01-12 09:26:21.000000000 -0800 @@ -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 @@ -330,14 +330,15 @@ } /** - * Provides a string representation of the control. + * Returns a string representation of the float control. * - * @return a string description + * @return a string representation of the float control */ @Override public String toString() { - return new String(getType() + " with current value: " + getValue() + " " + units + - " (range: " + minimum + " - " + maximum + ")"); + return String.format("%s with current value: %s %s (range: %s - %s)", + super.toString(), getValue(), getUnits(), + getMinimum(), getMaximum()); } /**