Changeset f9d5d48


Ignore:
Timestamp:
Aug 7, 2018 12:04:31 PM (22 months ago)
Author:
slumlord <slumlord@…>
Branches:
master
Children:
61d2e3c
Parents:
733d3496
Message:

Clean up code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/util/CachedIteratorCollection.java

    r733d3496 rf9d5d48  
    4545
    4646    // FOR DEBUGGING & LOGGING PURPOSES
    47     Log log = I2PAppContext.getGlobalContext().logManager().getLog(CachedIteratorCollection.class);
     47    //Log log = I2PAppContext.getGlobalContext().logManager().getLog(CachedIteratorCollection.class);
    4848
    4949    // Cached Iterator object
     
    9292        if (this.size == 0) {
    9393            this.first = newNode;
    94             this.last = newNode;
    9594        } else {
    9695            this.last.next = newNode;
    97             this.last = newNode;
    98         }
     96        }
     97        this.last = newNode;
    9998        this.size++;
    100         log.debug("CachedIteratorAbstractCollection: Element added");
     99        //log.debug("CachedIteratorAbstractCollection: Element added");
    101100        return true;
    102101    }
     
    112111        this.size = 0;
    113112        iterator.reset();
    114         log.debug("CachedIteratorAbstractCollection: Cleared");
     113        //log.debug("CachedIteratorAbstractCollection: Cleared");
    115114    }
    116115
     
    158157                    // The Node we are trying to remove is itrIndexNode.prev
    159158                    // Is there a Node before itrIndexNode.prev?
    160                     //if (itrIndexNode.prev != null && itrIndexNode.prev.prev != null) {
    161159                    if (itrIndexNode != first.next) {
    162160                        // Set current itrIndexNode's prev to Node N-2
Note: See TracChangeset for help on using the changeset viewer.