Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.0-M18
-
None
Description
For a single-valued attribute Attribute.get(..).getString() properly returns the value whereas Attribute.get(..).toString() is appending a newline character. I'm guessing that this is extraneous.
I have an Entry that is a groupOfUniqueNames:
System.out.println("Group " + nextgroup.get("cn") + " found") produces the output
Group sysAdmin
found
where System.out.println("Group " + nextgroup.get("cn").getString() + " found") produces the output:
Group sysAdmin found