Exploratory tunnels (config):
\n");
renderPool(out, _inboundExploratory, _outboundExploratory);
- List destinations = null;
+ List
destinations = null;
synchronized (_clientInboundPools) {
destinations = new ArrayList(_clientInboundPools.keySet());
}
for (int i = 0; i < destinations.size(); i++) {
- Hash client = (Hash)destinations.get(i);
+ Hash client = destinations.get(i);
TunnelPool in = null;
TunnelPool outPool = null;
synchronized (_clientInboundPools) {
- in = (TunnelPool)_clientInboundPools.get(client);
+ in = _clientInboundPools.get(client);
}
synchronized (_clientOutboundPools) {
- outPool = (TunnelPool)_clientOutboundPools.get(client);
+ outPool = _clientOutboundPools.get(client);
}
String name = (in != null ? in.getSettings().getDestinationNickname() : null);
if ( (name == null) && (outPool != null) )
@@ -505,7 +511,7 @@ public class TunnelPoolManager implements TunnelManagerFacade {
}
private void renderPool(Writer out, TunnelPool in, TunnelPool outPool) throws IOException {
- List tunnels = null;
+ List tunnels = null;
if (in == null)
tunnels = new ArrayList();
else
@@ -519,7 +525,7 @@ public class TunnelPoolManager implements TunnelManagerFacade {
int live = 0;
int maxLength = 1;
for (int i = 0; i < tunnels.size(); i++) {
- TunnelInfo info = (TunnelInfo)tunnels.get(i);
+ TunnelInfo info = tunnels.get(i);
if (info.getLength() > maxLength)
maxLength = info.getLength();
}
@@ -536,7 +542,7 @@ public class TunnelPoolManager implements TunnelManagerFacade {
}
out.write("\n");
for (int i = 0; i < tunnels.size(); i++) {
- TunnelInfo info = (TunnelInfo)tunnels.get(i);
+ TunnelInfo info = tunnels.get(i);
long timeLeft = info.getExpiration()-_context.clock().now();
if (timeLeft <= 0)
continue; // don't display tunnels in their grace period