Performance tweaks after profiling HEAD code. Audit interceptor shortcut to avoid calling auditImpl at all when auditing disabled in config.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6700 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-09-07 14:27:17 +00:00
parent a03df08f5e
commit e22575b74e
4 changed files with 76 additions and 63 deletions

View File

@@ -296,10 +296,6 @@ public final class QName implements QNamePattern, Serializable, Cloneable
{
return true;
}
else if (object == null)
{
return false;
}
if (object instanceof QName)
{
QName other = (QName)object;
@@ -307,10 +303,7 @@ public final class QName implements QNamePattern, Serializable, Cloneable
return (this.localName.equals(other.localName) &&
this.namespaceURI.equals(other.namespaceURI));
}
else
{
return false;
}
return false;
}
/**
@@ -347,7 +340,10 @@ public final class QName implements QNamePattern, Serializable, Cloneable
*/
public String toString()
{
return NAMESPACE_BEGIN + namespaceURI + NAMESPACE_END + localName;
return new StringBuffer(80).append(NAMESPACE_BEGIN)
.append(namespaceURI)
.append(NAMESPACE_END)
.append(localName).toString();
}