mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
15.25.2008 8ad64526ae23f5b3992dab4e8c7a96b5e8376d2f
refs
author matthew_swift <matthew_swift@localhost>
Tuesday, January 15, 2008 15:25 +0100
committer matthew_swift <matthew_swift@localhost>
Tuesday, January 15, 2008 15:25 +0100
commit8ad64526ae23f5b3992dab4e8c7a96b5e8376d2f
tree af83582dbbe8abe48340a330a38df85c3772381f tree | zip | gz
parent 7405141e391f6178a519579b0d642d386855ba04 view | diff
Fix issue 2827: Messages constructed from a MessageBuilder should have a sensible category and severity.

Modify the MessageBuilder.toMessage() method so that constructed Messages have a sensible Category and Severity. Now the Category and Severity are based on the first object appended to the MessageBuilder. If that object is a Message then the MessageBuilder will use the Category and Severity of that Message, otherwise it will continue the current default behavior which is to use Category.USER_DEFINED and Severity.INFORMATION.
2 files modified
62 ■■■■■ changed files
opends/src/messages/src/org/opends/messages/MessageBuilder.java 21 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/messages/MessageBuilderTest.java 41 ●●●●● diff | view | raw | blame | history