Changeset dd36176


Ignore:
Timestamp:
Oct 16, 2015 9:38:12 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
70921a2
Parents:
fe26052
Message:

big fat Java 6 warning

File:
1 edited

Legend:

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

    rfe26052 rdd36176  
    1919import net.i2p.router.news.NewsManager;
    2020import net.i2p.util.PortMapper;
     21import net.i2p.util.SystemVersion;
    2122
    2223/**
     
    345346               .append(_t("Warning: ECDSA is not available. Update your Java or OS"))
    346347               .append("</a></h4>\n");
     348        }
     349        if (!SystemVersion.isJava7()) {
     350            buf.append("<hr><h4>")
     351               .append(_t("Warning: Java version {0} is no longer supported by I2P.", System.getProperty("java.version")))
     352               .append(' ')
     353               .append(_t("Update Java to version {0} or higher to receive I2P updates.", "7"))
     354               .append("</h4>\n");
    347355        }
    348356        return buf.toString();
     
    666674    }
    667675
     676    /** @since 0.9.23 */
     677    private String _t(String s, Object o) {
     678        return Messages.getString(s, o, _context);
     679    }
     680
    668681    /**
    669682     *  Where the translation is to two words or more,
Note: See TracChangeset for help on using the changeset viewer.