Changeset 2c97dc2 for router


Ignore:
Timestamp:
Jun 8, 2019 4:12:51 PM (10 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5ede0a1
Parents:
7e6a92a
Message:

Job: Deprecate getAddedBy(), suppress warnings

Location:
router/java/src/net/i2p/router
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Job.java

    r7e6a92a r2c97dc2  
    3131    public void runJob();
    3232   
     33    /**
     34     *  @deprecated
     35     *  @return null always
     36     */
     37    @Deprecated
    3338    public Exception getAddedBy();
    3439   
  • router/java/src/net/i2p/router/JobImpl.java

    r7e6a92a r2c97dc2  
    6060     */
    6161    @Deprecated
     62    @SuppressWarnings("deprecation")
    6263    public Exception getAddedBy() { return null; }
     64
    6365    public long getMadeReadyOn() { return _madeReadyOn; }
    6466    public void madeReady() { _madeReadyOn = _context.clock().now(); }
  • router/java/src/net/i2p/router/JobQueue.java

    r7e6a92a r2c97dc2  
    729729        public JobTiming getTiming() { return null; }
    730730        public void runJob() {}
     731
     732        @SuppressWarnings("deprecation")
    731733        public Exception getAddedBy() { return null; }
     734
    732735        public void dropped() {}
    733736    }
  • router/java/src/net/i2p/router/JobQueueRunner.java

    r7e6a92a r2c97dc2  
    145145            //_state = 21;
    146146            _log.log(Log.CRIT, "Error processing job [" + _currentJob.getName()
    147                                    + "] on thread " + _id + ": " + t.getMessage(), t);
    148             //if (_log.shouldLog(Log.ERROR))
    149             //    _log.error("The above job was enqueued by: ", _currentJob.getAddedBy());
     147                                   + "] on thread " + _id + ": " + t, t);
    150148        }
    151149    }
Note: See TracChangeset for help on using the changeset viewer.