minor updates after review

This commit is contained in:
zzz
2015-07-30 20:41:45 +00:00
parent 20cb284f9d
commit f3bb20d750
6 changed files with 7 additions and 5 deletions

View File

@ -25,7 +25,7 @@ class GunzipOutputStream extends InflaterOutputStream {
private final CRC32 _crc32; private final CRC32 _crc32;
private final byte _buf1[] = new byte[1]; private final byte _buf1[] = new byte[1];
private boolean _complete; private boolean _complete;
private byte _footer[] = new byte[FOOTER_SIZE]; private final byte _footer[] = new byte[FOOTER_SIZE];
private long _bytesReceived; private long _bytesReceived;
private long _bytesReceivedAtCompletion; private long _bytesReceivedAtCompletion;

View File

@ -1050,7 +1050,7 @@ public class ConsoleUpdateManager implements UpdateManager, RouterApp {
uri = DataHelper.stripHTML(task.getURI().getPath()); uri = DataHelper.stripHTML(task.getURI().getPath());
buf.append(_("Install failed from {0}", uri)); buf.append(_("Install failed from {0}", uri));
} else { } else {
buf.append(_("Transfer failed from {0}")); buf.append(_("Transfer failed from {0}", uri));
} }
if (reason != null && reason.length() > 0) { if (reason != null && reason.length() > 0) {
buf.append("<br>"); buf.append("<br>");

View File

@ -136,7 +136,7 @@ class NewsFetcher extends UpdateRunner {
/** /**
* Add a query param for the local language to get translated news. * Add a query param for the local language to get translated news.
* Unchanged if disabled by property, if language is english, * Unchanged if disabled by property, if language is english,
* or if URI already contains a language paramter * or if URI already contains a language parameter
* *
* @since 0.9.21 * @since 0.9.21
*/ */

View File

@ -73,7 +73,7 @@ public class NetDbHelper extends HelperBase {
NetDbRenderer renderer = new NetDbRenderer(_context); NetDbRenderer renderer = new NetDbRenderer(_context);
try { try {
renderNavBar(); renderNavBar();
if (_routerPrefix != null || _version!= null || _country != null) if (_routerPrefix != null || _version != null || _country != null)
renderer.renderRouterInfoHTML(_out, _routerPrefix, _version, _country); renderer.renderRouterInfoHTML(_out, _routerPrefix, _version, _country);
else if (_lease) else if (_lease)
renderer.renderLeaseSetHTML(_out, _debug); renderer.renderLeaseSetHTML(_out, _debug);

View File

@ -96,7 +96,7 @@ public abstract class I2PSessionImpl implements I2PSession, I2CPMessageReader.I2
// established subsessions // established subsessions
private final ConcurrentHashMap<SessionId, SubSession> _subsessionMap; private final ConcurrentHashMap<SessionId, SubSession> _subsessionMap;
private final Object _subsessionLock = new Object(); private final Object _subsessionLock = new Object();
private static final String MIN_SUBSESSION_VERSION = "0.9.19"; private static final String MIN_SUBSESSION_VERSION = "0.9.21";
private volatile boolean _routerSupportsSubsessions; private volatile boolean _routerSupportsSubsessions;
/** hostname of router - will be null if in RouterContext */ /** hostname of router - will be null if in RouterContext */

View File

@ -178,6 +178,7 @@ public interface UpdateManager {
* @since 0.9.21 * @since 0.9.21
*/ */
public boolean isUpdateInProgress(UpdateType type, String id); public boolean isUpdateInProgress(UpdateType type, String id);
/** /**
* Non-blocking. Does not check. * Non-blocking. Does not check.
* Fails if check or update already in progress. * Fails if check or update already in progress.
@ -225,6 +226,7 @@ public interface UpdateManager {
/** /**
* The status on any update current or last finished. * The status on any update current or last finished.
* @return status or "" * @return status or ""
* @since 0.9.21
*/ */
public String getStatus(); public String getStatus();