mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Prevent unnessary repeated creation of QName
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.1.0.x@84677 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -34,6 +34,7 @@ public class IsPropertySetCondition extends AbstractCapabilityCondition
|
|||||||
{
|
{
|
||||||
/** property name (eg: rma:location) */
|
/** property name (eg: rma:location) */
|
||||||
private String propertyName;
|
private String propertyName;
|
||||||
|
private QName propertyQName;
|
||||||
|
|
||||||
/** namespace service */
|
/** namespace service */
|
||||||
private NamespaceService namespaceService;
|
private NamespaceService namespaceService;
|
||||||
@@ -59,7 +60,11 @@ public class IsPropertySetCondition extends AbstractCapabilityCondition
|
|||||||
*/
|
*/
|
||||||
protected QName getPropertyQName()
|
protected QName getPropertyQName()
|
||||||
{
|
{
|
||||||
return QName.createQName(propertyName, namespaceService);
|
if (propertyQName == null)
|
||||||
|
{
|
||||||
|
propertyQName = QName.createQName(propertyName, namespaceService);
|
||||||
|
}
|
||||||
|
return propertyQName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user