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

matthew_swift
15.25.2008 7605c402f97b0fb3f1f7e2a3e1b58c3671189b23
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
commit7605c402f97b0fb3f1f7e2a3e1b58c3671189b23
tree b5ff42fb60af52b53c5bb7b79c009630d8e69510 tree | zip | gz
parent 7b85920db22e7dab80523950a88b58707e624690 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
opendj-sdk/opends/src/messages/src/org/opends/messages/MessageBuilder.java 21 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/messages/MessageBuilderTest.java 41 ●●●●● diff | view | raw | blame | history