mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user