--- old/src/java.desktop/share/classes/com/sun/media/sound/MidiUtils.java 2016-08-12 17:01:55.000000000 +0300 +++ new/src/java.desktop/share/classes/com/sun/media/sound/MidiUtils.java 2016-08-12 17:01:55.000000000 +0300 @@ -77,7 +77,6 @@ return ((msg[1] & 0xFF) == META_END_OF_TRACK_TYPE) && (msg[2] == 0); } - /** return if the given message is a meta tempo message */ public static boolean isMetaTempo(MidiMessage midiMsg) { // first check if it is a META message at all @@ -91,7 +90,6 @@ return ((msg[1] & 0xFF) == META_TEMPO_TYPE) && (msg[2] == 3); } - /** parses this message for a META tempo message and returns * the tempo in MPQ, or -1 if this isn't a tempo message */ @@ -111,7 +109,6 @@ return tempo; } - /** * converts
* 1 - MPQ-Tempo to BPM tempo
@@ -124,7 +121,6 @@ return ((double) 60000000l) / tempo; } - /** * convert tick to microsecond with given tempo. * Does not take tempo changes into account. @@ -145,7 +141,6 @@ return (long) ((((double)us) * resolution) / tempoMPQ); } - /** * Given a tick, convert to microsecond * @param cache tempo info and current tempo @@ -246,7 +241,6 @@ return tick; } - /** * Binary search for the event indexes of the track * @@ -283,7 +277,6 @@ return ret; } - public static final class TempoCache { long[] ticks; int[] tempos; // in MPQ @@ -310,7 +303,6 @@ refresh(seq); } - public synchronized void refresh(Sequence seq) { ArrayList list = new ArrayList<>(); Track[] tracks = seq.getTracks(); @@ -373,6 +365,5 @@ } return tempos[tempos.length - 1]; } - } }