Changeset 30532 in osm for applications/editors/josm/plugins/imagerycache/src/org/mapdb/Queues.java
- Timestamp:
- 2014-07-14T04:18:06+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagerycache/src/org/mapdb/Queues.java
r29484 r30532 40 40 } 41 41 42 @SuppressWarnings("unchecked") 42 43 @Override 43 44 public Node<E> deserialize(DataInput in, int available) throws IOException { … … 71 72 protected static final class Node<E>{ 72 73 74 @SuppressWarnings({ "unchecked", "rawtypes" }) 73 75 protected static final Node EMPTY = new Node(0L, null); 74 76 … … 302 304 } 303 305 306 @SuppressWarnings("unchecked") 304 307 static <E> Stack<E> getStack(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid){ 305 308 StackRoot root = engine.get(rootRecid, new StackRootSerializer(serializerSerializer)); … … 323 326 } 324 327 328 @SuppressWarnings("unchecked") 325 329 @Override 326 330 public boolean add(E item){ … … 337 341 } 338 342 343 @SuppressWarnings("unchecked") 339 344 @Override 340 345 public E poll(){ … … 416 421 } 417 422 423 @SuppressWarnings("unchecked") 418 424 static <E> long createQueue(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer){ 419 425 long headerRecid = engine.put(0L, Serializer.LONG_SERIALIZER); … … 426 432 } 427 433 428 434 @SuppressWarnings("unchecked") 429 435 static <E> Queue<E> getQueue(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid){ 430 436 QueueRoot root = engine.get(rootRecid, new QueueRootSerializer(serializerSerializer)); … … 439 445 protected final long size; 440 446 447 @SuppressWarnings("unchecked") 441 448 public CircularQueue(Engine engine, Serializer serializer, long headRecid, long headInsertRecid, long size) { 442 449 super(engine, serializer, headRecid); … … 445 452 } 446 453 454 @SuppressWarnings("unchecked") 447 455 @Override 448 456 public boolean add(Object o) { … … 545 553 } 546 554 555 @SuppressWarnings({ "rawtypes", "unchecked" }) 547 556 static <E> long createCircularQueue(Engine engine, Serializer<Serializer> serializerSerializer, Serializer<E> serializer, long size){ 548 557 if(size<2) throw new IllegalArgumentException();
Note:
See TracChangeset
for help on using the changeset viewer.
