OPENDJ-1591 Modify UniqueMemberEqualityMatchingRuleImpl  to normalized DN
 in the same way than DistinguishedNameEqualityMatchingRuleImpl and add
 the optional uid if present


git-svn-id: https://svn.forgerock.org/opendj/trunk/opendj@11219 41b1ffd8-f28e-4786-ab96-9950f0a78031
Improvements to DN class.

Thanks Matt for the suggestion!


DN.java:
In toIrreversibleNormalizedByteString(), initializing the StringBuilder to the number of RDNs was incorrect, creating more garbage than necessary.
In normalizeAVA(), extracted local variable for attributeType + removed useless creation of an Iterator.

DNTestCase.java:
Added more tests to increase code coverage.

git-svn-id: https://svn.forgerock.org/opendj/trunk/opendj@11220 41b1ffd8-f28e-4786-ab96-9950f0a78031
Utils.java:
Reduced scope of variables.
Used early exits.

git-svn-id: https://svn.forgerock.org/opendj/trunk/opendj@11221 41b1ffd8-f28e-4786-ab96-9950f0a78031
AutoRefactored code.

Collapsed else { if (...){...} }  into else if (...) {...}
Reversed boolean equals conditions using constants.

In tests, used the correct assert*() methods.

git-svn-id: https://svn.forgerock.org/opendj/trunk/opendj@11224 41b1ffd8-f28e-4786-ab96-9950f0a78031