Simplifies code for the purposes of readability.
This commit is contained in:
parent
8b3280cf93
commit
4c132cccd6
@ -267,16 +267,9 @@ public class TransportAddress
|
||||
//opposite is considerably lower than the probability of us
|
||||
//trying to reach a distant global address through one of our
|
||||
//own. Therefore we would return false here by default.
|
||||
|
||||
if(Boolean.getBoolean(
|
||||
StackProperties.ALLOW_LINK_TO_GLOBAL_REACHABILITY))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return
|
||||
Boolean.getBoolean(
|
||||
StackProperties.ALLOW_LINK_TO_GLOBAL_REACHABILITY);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -614,12 +614,7 @@ public class Component
|
||||
*/
|
||||
public String toShortString()
|
||||
{
|
||||
StringBuffer buff
|
||||
= new StringBuffer(parentStream.getName());
|
||||
buff.append(".");
|
||||
buff.append(getName());
|
||||
|
||||
return buff.toString();
|
||||
return parentStream.getName() + "." + getName();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user