class javafx.scene.media.MediaPlayerShutdownHook implements java.lang.Runnable
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: javafx.scene.media.MediaPlayerShutdownHook
  super_class: java.lang.Object
{
  private static final java.util.List<java.lang.ref.WeakReference<javafx.scene.media.MediaPlayer>> playerRefs;
    descriptor: Ljava/util/List;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Ljava/util/List<Ljava/lang/ref/WeakReference<Ljavafx/scene/media/MediaPlayer;>;>;

  private static boolean isShutdown;
    descriptor: Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 2774
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            putstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
         1: .line 2775
            iconst_0
            putstatic javafx.scene.media.MediaPlayerShutdownHook.isShutdown:Z
         2: .line 2778
            invokestatic com.sun.javafx.tk.Toolkit.getToolkit:()Lcom/sun/javafx/tk/Toolkit;
            new javafx.scene.media.MediaPlayerShutdownHook
            dup
            invokespecial javafx.scene.media.MediaPlayerShutdownHook.<init>:()V
            invokevirtual com.sun.javafx.tk.Toolkit.addShutdownHook:(Ljava/lang/Runnable;)V
         3: .line 2779
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // javafx.scene.media.MediaPlayerShutdownHook this
         0: .line 2772
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // javafx.scene.media.MediaPlayerShutdownHook this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljavafx/scene/media/MediaPlayerShutdownHook;

  public static void addMediaPlayer(javafx.scene.media.MediaPlayer);
    descriptor: (Ljavafx/scene/media/MediaPlayer;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=1
        start local 0 // javafx.scene.media.MediaPlayer player
         0: .line 2782
            getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
            dup
            astore 1
            monitorenter
         1: .line 2783
            getstatic javafx.scene.media.MediaPlayerShutdownHook.isShutdown:Z
            ifeq 6
         2: .line 2784
            aload 0 /* player */
            invokevirtual javafx.scene.media.MediaPlayer.retrieveJfxPlayer:()Lcom/sun/media/jfxmedia/MediaPlayer;
            astore 2 /* jfxPlayer */
        start local 2 // com.sun.media.jfxmedia.MediaPlayer jfxPlayer
         3: .line 2785
            aload 2 /* jfxPlayer */
            ifnull 13
         4: .line 2786
            aload 2 /* jfxPlayer */
            invokeinterface com.sun.media.jfxmedia.MediaPlayer.dispose:()V
        end local 2 // com.sun.media.jfxmedia.MediaPlayer jfxPlayer
         5: .line 2788
            goto 13
         6: .line 2789
      StackMap locals: java.util.List
      StackMap stack:
            getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
            invokeinterface java.util.List.listIterator:()Ljava/util/ListIterator;
            astore 2 /* it */
        start local 2 // java.util.ListIterator it
         7: goto 11
         8: .line 2790
      StackMap locals: java.util.ListIterator
      StackMap stack:
            aload 2 /* it */
            invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
            checkcast java.lang.ref.WeakReference
            invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
            checkcast javafx.scene.media.MediaPlayer
            astore 3 /* l */
        start local 3 // javafx.scene.media.MediaPlayer l
         9: .line 2791
            aload 3 /* l */
            ifnonnull 11
        10: .line 2792
            aload 2 /* it */
            invokeinterface java.util.ListIterator.remove:()V
        end local 3 // javafx.scene.media.MediaPlayer l
        11: .line 2789
      StackMap locals:
      StackMap stack:
            aload 2 /* it */
            invokeinterface java.util.ListIterator.hasNext:()Z
            ifne 8
        end local 2 // java.util.ListIterator it
        12: .line 2796
            getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
            new java.lang.ref.WeakReference
            dup
            aload 0 /* player */
            invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        13: .line 2782
      StackMap locals:
      StackMap stack:
            aload 1
            monitorexit
        14: goto 17
      StackMap locals:
      StackMap stack: java.lang.Throwable
        15: aload 1
            monitorexit
        16: athrow
        17: .line 2799
      StackMap locals:
      StackMap stack:
            return
        end local 0 // javafx.scene.media.MediaPlayer player
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   18     0     player  Ljavafx/scene/media/MediaPlayer;
            3    5     2  jfxPlayer  Lcom/sun/media/jfxmedia/MediaPlayer;
            7   12     2         it  Ljava/util/ListIterator<Ljava/lang/ref/WeakReference<Ljavafx/scene/media/MediaPlayer;>;>;
            9   11     3          l  Ljavafx/scene/media/MediaPlayer;
      Exception table:
        from    to  target  type
           1    14      15  any
          15    16      15  any
    MethodParameters:
        Name  Flags
      player  

  public void run();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=5, args_size=1
        start local 0 // javafx.scene.media.MediaPlayerShutdownHook this
         0: .line 2803
            getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
            dup
            astore 1
            monitorenter
         1: .line 2804
            getstatic javafx.scene.media.MediaPlayerShutdownHook.playerRefs:Ljava/util/List;
            invokeinterface java.util.List.listIterator:()Ljava/util/ListIterator;
            astore 2 /* it */
        start local 2 // java.util.ListIterator it
         2: goto 11
         3: .line 2805
      StackMap locals: java.util.List java.util.ListIterator
      StackMap stack:
            aload 2 /* it */
            invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
            checkcast java.lang.ref.WeakReference
            invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
            checkcast javafx.scene.media.MediaPlayer
            astore 3 /* player */
        start local 3 // javafx.scene.media.MediaPlayer player
         4: .line 2806
            aload 3 /* player */
            ifnull 10
         5: .line 2807
            aload 3 /* player */
            invokevirtual javafx.scene.media.MediaPlayer.destroyMediaTimer:()V
         6: .line 2808
            aload 3 /* player */
            invokevirtual javafx.scene.media.MediaPlayer.retrieveJfxPlayer:()Lcom/sun/media/jfxmedia/MediaPlayer;
            astore 4 /* jfxPlayer */
        start local 4 // com.sun.media.jfxmedia.MediaPlayer jfxPlayer
         7: .line 2809
            aload 4 /* jfxPlayer */
            ifnull 11
         8: .line 2810
            aload 4 /* jfxPlayer */
            invokeinterface com.sun.media.jfxmedia.MediaPlayer.dispose:()V
        end local 4 // com.sun.media.jfxmedia.MediaPlayer jfxPlayer
         9: .line 2812
            goto 11
        10: .line 2813
      StackMap locals: javafx.scene.media.MediaPlayer
      StackMap stack:
            aload 2 /* it */
            invokeinterface java.util.ListIterator.remove:()V
        end local 3 // javafx.scene.media.MediaPlayer player
        11: .line 2804
      StackMap locals:
      StackMap stack:
            aload 2 /* it */
            invokeinterface java.util.ListIterator.hasNext:()Z
            ifne 3
        end local 2 // java.util.ListIterator it
        12: .line 2817
            iconst_1
            putstatic javafx.scene.media.MediaPlayerShutdownHook.isShutdown:Z
        13: .line 2803
            aload 1
            monitorexit
        14: goto 17
      StackMap locals: javafx.scene.media.MediaPlayerShutdownHook java.util.List
      StackMap stack: java.lang.Throwable
        15: aload 1
            monitorexit
        16: athrow
        17: .line 2819
      StackMap locals:
      StackMap stack:
            return
        end local 0 // javafx.scene.media.MediaPlayerShutdownHook this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   18     0       this  Ljavafx/scene/media/MediaPlayerShutdownHook;
            2   12     2         it  Ljava/util/ListIterator<Ljava/lang/ref/WeakReference<Ljavafx/scene/media/MediaPlayer;>;>;
            4   11     3     player  Ljavafx/scene/media/MediaPlayer;
            7    9     4  jfxPlayer  Lcom/sun/media/jfxmedia/MediaPlayer;
      Exception table:
        from    to  target  type
           1    14      15  any
          15    16      15  any
}
SourceFile: "MediaPlayer.java"