Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263505

AbstractQueuedSynchronizer.java->acquire() Format is abnormal

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      public final void acquire(int arg) {
              if (!tryAcquire(arg) &&
                  acquireQueued(addWaiter(Node.EXCLUSIVE), arg))
                  selfInterrupt();
          }
      I think it should be changed to the following format
      public final void acquire(int arg) {
              if (!tryAcquire(arg) &&
                  acquireQueued(addWaiter(Node.EXCLUSIVE), arg)){
                      selfInterrupt();
              }
          }


            martin Martin Buchholz
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: