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
|
//opposite is considerably lower than the probability of us
|
||||||
//trying to reach a distant global address through one of our
|
//trying to reach a distant global address through one of our
|
||||||
//own. Therefore we would return false here by default.
|
//own. Therefore we would return false here by default.
|
||||||
|
return
|
||||||
if(Boolean.getBoolean(
|
Boolean.getBoolean(
|
||||||
StackProperties.ALLOW_LINK_TO_GLOBAL_REACHABILITY))
|
StackProperties.ALLOW_LINK_TO_GLOBAL_REACHABILITY);
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -609,17 +609,12 @@ public class Component
|
|||||||
* Returns a short <tt>String</tt> representation of this
|
* Returns a short <tt>String</tt> representation of this
|
||||||
* <tt>Component</tt>.
|
* <tt>Component</tt>.
|
||||||
*
|
*
|
||||||
* @return a short <tt>String</tt> representation of this
|
* @return a short <tt>String</tt> representation of this
|
||||||
* <tt>Component</tt>.
|
* <tt>Component</tt>.
|
||||||
*/
|
*/
|
||||||
public String toShortString()
|
public String toShortString()
|
||||||
{
|
{
|
||||||
StringBuffer buff
|
return parentStream.getName() + "." + getName();
|
||||||
= new StringBuffer(parentStream.getName());
|
|
||||||
buff.append(".");
|
|
||||||
buff.append(getName());
|
|
||||||
|
|
||||||
return buff.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user