forked from I2P_Developers/i2p.i2p
more misc. findbugs
This commit is contained in:
@ -163,7 +163,7 @@ public class I2PSocketEepGet extends EepGet {
|
|||||||
protected String getRequest() throws IOException {
|
protected String getRequest() throws IOException {
|
||||||
StringBuilder buf = new StringBuilder(2048);
|
StringBuilder buf = new StringBuilder(2048);
|
||||||
URL url = new URL(_actualURL);
|
URL url = new URL(_actualURL);
|
||||||
String host = url.getHost();
|
//String host = url.getHost();
|
||||||
String path = url.getPath();
|
String path = url.getPath();
|
||||||
String query = url.getQuery();
|
String query = url.getQuery();
|
||||||
if (query != null)
|
if (query != null)
|
||||||
|
@ -407,7 +407,6 @@ public class NetDbRenderer {
|
|||||||
*/
|
*/
|
||||||
private static int classifyTransports(RouterInfo info) {
|
private static int classifyTransports(RouterInfo info) {
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
String hash = info.getIdentity().getHash().toBase64();
|
|
||||||
for (RouterAddress addr : info.getAddresses()) {
|
for (RouterAddress addr : info.getAddresses()) {
|
||||||
String style = addr.getTransportStyle();
|
String style = addr.getTransportStyle();
|
||||||
if (style.equals("NTCP")) {
|
if (style.equals("NTCP")) {
|
||||||
|
@ -128,7 +128,8 @@ public class PluginUpdateChecker extends UpdateHandler {
|
|||||||
protected void update() {
|
protected void update() {
|
||||||
updateStatus("<b>" + _("Checking for update of plugin {0}", _appName) + "</b>");
|
updateStatus("<b>" + _("Checking for update of plugin {0}", _appName) + "</b>");
|
||||||
// use the same settings as for updater
|
// use the same settings as for updater
|
||||||
boolean shouldProxy = Boolean.valueOf(_context.getProperty(ConfigUpdateHandler.PROP_SHOULD_PROXY, ConfigUpdateHandler.DEFAULT_SHOULD_PROXY)).booleanValue();
|
// always proxy, or else FIXME
|
||||||
|
//boolean shouldProxy = Boolean.valueOf(_context.getProperty(ConfigUpdateHandler.PROP_SHOULD_PROXY, ConfigUpdateHandler.DEFAULT_SHOULD_PROXY)).booleanValue();
|
||||||
String proxyHost = _context.getProperty(ConfigUpdateHandler.PROP_PROXY_HOST, ConfigUpdateHandler.DEFAULT_PROXY_HOST);
|
String proxyHost = _context.getProperty(ConfigUpdateHandler.PROP_PROXY_HOST, ConfigUpdateHandler.DEFAULT_PROXY_HOST);
|
||||||
int proxyPort = _context.getProperty(ConfigUpdateHandler.PROP_PROXY_PORT, ConfigUpdateHandler.DEFAULT_PROXY_PORT_INT);
|
int proxyPort = _context.getProperty(ConfigUpdateHandler.PROP_PROXY_PORT, ConfigUpdateHandler.DEFAULT_PROXY_PORT_INT);
|
||||||
_baos.reset();
|
_baos.reset();
|
||||||
|
@ -130,8 +130,8 @@ public class SubscriptionsBean
|
|||||||
if( lastSerial != null && serial != null && serial.compareTo( lastSerial ) == 0 ) {
|
if( lastSerial != null && serial != null && serial.compareTo( lastSerial ) == 0 ) {
|
||||||
if (action.equals(_("Save"))) {
|
if (action.equals(_("Save"))) {
|
||||||
save();
|
save();
|
||||||
String nonce = System.getProperty("addressbook.nonce");
|
|
||||||
/*******
|
/*******
|
||||||
|
String nonce = System.getProperty("addressbook.nonce");
|
||||||
if (nonce != null) {
|
if (nonce != null) {
|
||||||
// Yes this is a hack.
|
// Yes this is a hack.
|
||||||
// No it doesn't work on a text-mode browser.
|
// No it doesn't work on a text-mode browser.
|
||||||
|
@ -156,7 +156,7 @@ public class AsyncFortunaStandalone extends FortunaStandalone implements Runnabl
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void doFill(byte buf[]) {
|
private void doFill(byte buf[]) {
|
||||||
long start = System.currentTimeMillis();
|
//long start = System.currentTimeMillis();
|
||||||
if (pool0Count >= MIN_POOL_SIZE
|
if (pool0Count >= MIN_POOL_SIZE
|
||||||
&& System.currentTimeMillis() - lastReseed > 100)
|
&& System.currentTimeMillis() - lastReseed > 100)
|
||||||
{
|
{
|
||||||
|
@ -316,7 +316,6 @@ public class Timestamper implements Runnable {
|
|||||||
System.setProperty(PROP_DISABLED, "false");
|
System.setProperty(PROP_DISABLED, "false");
|
||||||
System.setProperty(PROP_QUERY_FREQUENCY, "30000");
|
System.setProperty(PROP_QUERY_FREQUENCY, "30000");
|
||||||
I2PAppContext ctx = I2PAppContext.getGlobalContext();
|
I2PAppContext ctx = I2PAppContext.getGlobalContext();
|
||||||
long now = ctx.clock().now();
|
|
||||||
for (int i = 0; i < 5*60*1000; i += 61*1000) {
|
for (int i = 0; i < 5*60*1000; i += 61*1000) {
|
||||||
try { Thread.sleep(61*1000); } catch (InterruptedException ie) {}
|
try { Thread.sleep(61*1000); } catch (InterruptedException ie) {}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user