Changeset 6100c79


Ignore:
Timestamp:
Oct 2, 2010 3:03:20 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3489512
Parents:
4a96e88
Message:

LogConsoleBuffer? cleanup

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/LogsHelper.java

    r4a96e88 r6100c79  
    4545    ******/
    4646
    47     private String formatMessages(List msgs) {
     47    /** formats in reverse order */
     48    private String formatMessages(List<String> msgs) {
     49        if (msgs.isEmpty())
     50            return "<p><i>" + _("No log messages") + "</i></p>";
    4851        boolean colorize = Boolean.valueOf(_context.getProperty("routerconsole.logs.color")).booleanValue();
    4952        StringBuilder buf = new StringBuilder(16*1024);
     
    5154        buf.append("<code>\n");
    5255        for (int i = msgs.size(); i > 0; i--) {
    53             String msg = (String)msgs.get(i - 1);
     56            String msg = msgs.get(i - 1);
    5457            buf.append("<li>");
    5558            if (colorize) {
  • core/java/src/net/i2p/util/LogConsoleBuffer.java

    r4a96e88 r6100c79  
    1212public class LogConsoleBuffer {
    1313    private I2PAppContext _context;
    14     private final List _buffer;
    15     private final List _critBuffer;
     14    private final List<String> _buffer;
     15    private final List<String> _critBuffer;
    1616
    1717    public LogConsoleBuffer(I2PAppContext context) {
     
    4444     *
    4545     */
    46     public List getMostRecentMessages() {
     46    public List<String> getMostRecentMessages() {
    4747        synchronized (_buffer) {
    4848            return new ArrayList(_buffer);
     
    5555     *
    5656     */
    57     public List getMostRecentCriticalMessages() {
     57    public List<String> getMostRecentCriticalMessages() {
    5858        synchronized (_critBuffer) {
    5959            return new ArrayList(_critBuffer);
Note: See TracChangeset for help on using the changeset viewer.