ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166y/ConcurrentLinkedDeque.java
(Generate patch)

Comparing jsr166/src/jsr166y/ConcurrentLinkedDeque.java (file contents):
Revision 1.1 by dl, Tue May 24 23:07:32 2011 UTC vs.
Revision 1.3 by jsr166, Fri Jun 10 18:10:53 2011 UTC

# Line 306 | Line 306 | public class ConcurrentLinkedDeque<E>
306          static {
307              try {
308                  UNSAFE = getUnsafe();
309 <                Class k = Node.class;
309 >                Class<?> k = Node.class;
310                  prevOffset = UNSAFE.objectFieldOffset
311                      (k.getDeclaredField("prev"));
312                  itemOffset = UNSAFE.objectFieldOffset
# Line 1221 | Line 1221 | public class ConcurrentLinkedDeque<E>
1221       * The following code can be used to dump the deque into a newly
1222       * allocated array of {@code String}:
1223       *
1224 <     * <pre>
1225 <     *     String[] y = x.toArray(new String[0]);</pre>
1224 >     *  <pre> {@code String[] y = x.toArray(new String[0]);}</pre>
1225       *
1226       * Note that {@code toArray(new Object[0])} is identical in function to
1227       * {@code toArray()}.
# Line 1428 | Line 1427 | public class ConcurrentLinkedDeque<E>
1427          NEXT_TERMINATOR.prev = NEXT_TERMINATOR;
1428          try {
1429              UNSAFE = getUnsafe();
1430 <            Class k = ConcurrentLinkedDeque.class;
1430 >            Class<?> k = ConcurrentLinkedDeque.class;
1431              headOffset = UNSAFE.objectFieldOffset
1432                  (k.getDeclaredField("head"));
1433              tailOffset = UNSAFE.objectFieldOffset

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines