Fixes minor issues

This commit is contained in:
emcho 2010-02-28 22:44:45 +00:00
parent 02adbe9da5
commit e1f3bb01b7
3 changed files with 6 additions and 3 deletions

View File

@ -563,10 +563,13 @@ public abstract class Candidate
*
* @return the <tt>TransportAddress</tt> of the base if this is a reflexive
* candidate, the mapped address in the case of a relayed candidate, and
* <tt>null</tt> if this is a host candidate.
* <tt>null</tt> if this is a host or a remote candidate.
*/
public TransportAddress getRelatedAddress()
{
if(this instanceof RemoteCandidate)
return null;
if ( getType () == CandidateType.SERVER_REFLEXIVE_CANDIDATE
|| getType () == CandidateType.PEER_REFLEXIVE_CANDIDATE)
{

View File

@ -323,7 +323,7 @@ public class Component
if(remoteCandidatesCount > 0)
{
buff.append("\n" + remoteCandidatesCount + " rocal candidates:");
buff.append("\n" + remoteCandidatesCount + " remote candidates:");
synchronized(remoteCandidates)
{

View File

@ -33,7 +33,7 @@ public class StunDatagramPacketFilter
* @return <tt>true</tt> if this <tt>DatagramPacketFilter</tt> accepts the
* <tt>DatagramPacket</tt> which represents a STUN message with the
* specified STUN method; otherwise, <tt>false</tt>
* @see BaseStunDatagramPacketFilter#acceptMethod(char)
* @see AbstractStunDatagramPacketFilter#acceptMethod(char)
*/
public boolean acceptMethod(char method)
{