< prev index next >

src/java.desktop/share/classes/javax/sound/midi/Sequencer.java

Print this page

        

@@ -322,10 +322,11 @@
      * Obtains the current position in the sequence, expressed in microseconds.
      *
      * @return the current position in microseconds
      * @see #setMicrosecondPosition
      */
+    @Override
     long getMicrosecondPosition();
 
     /**
      * Sets the current position in the sequence, expressed in microseconds.
      *

@@ -678,11 +679,11 @@
     class SyncMode {
 
         /**
          * Synchronization mode name.
          */
-        private String name;
+        private final String name;
 
         /**
          * Constructs a synchronization mode.
          *
          * @param  name name of the synchronization mode

@@ -698,18 +699,20 @@
          *
          * @param  obj the reference object with which to compare
          * @return {@code true} if this object is the same as the {@code obj}
          *         argument, {@code false} otherwise
          */
+        @Override
         public final boolean equals(Object obj) {
 
             return super.equals(obj);
         }
 
         /**
          * Finalizes the hashcode method.
          */
+        @Override
         public final int hashCode() {
 
             return super.hashCode();
         }
 

@@ -717,10 +720,11 @@
          * Provides this synchronization mode's name as the string
          * representation of the mode.
          *
          * @return the name of this synchronization mode
          */
+        @Override
         public final String toString() {
 
             return name;
         }
 
< prev index next >