ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/SubmissionPublisher.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/SubmissionPublisher.java (file contents):
Revision 1.21 by dl, Wed Jan 21 13:18:50 2015 UTC vs.
Revision 1.22 by jsr166, Wed Jan 21 21:05:53 2015 UTC

# Line 636 | Line 636 | public class SubmissionPublisher<T> impl
636                  }
637              }
638          }
639 <        return nonEmpty? min : 0;
639 >        return nonEmpty ? min : 0;
640      }
641  
642      /**
# Line 752 | Line 752 | public class SubmissionPublisher<T> impl
752  
753          static final long INTERRUPTED = -1L; // timeout vs interrupt sentinel
754  
755 <        /**
755 >        /**
756           * Initial/Minimum buffer capacity. Must be a power of two, at least 2.
757           */
758          static final int MINCAP = 8;
# Line 774 | Line 774 | public class SubmissionPublisher<T> impl
774           */
775          final int estimateLag() {
776              int n;
777 <            return (ctl == DISABLED)? -1 : ((n = tail - head) > 0) ? n : 0;
777 >            return (ctl == DISABLED) ? -1 : ((n = tail - head) > 0) ? n : 0;
778          }
779  
780          /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines