DialogBuilder: better assertion message

This commit is contained in:
Kirill Likhodedov
2012-07-26 15:33:00 +04:00
parent 47c440a8c0
commit df3eb95c04
@@ -68,7 +68,8 @@ public class DialogBuilder implements Disposable {
}
private MyDialogWrapper showImpl(boolean isModal) {
LOG.assertTrue(myTitle != null && myTitle.trim().length() != 0, String.valueOf(myTitle));
LOG.assertTrue(myTitle != null && myTitle.trim().length() != 0,
String.format("Dialog title shouldn't be empty or null: [%s]", myTitle));
myDialogWrapper.setTitle(myTitle);
myDialogWrapper.init();
myDialogWrapper.setModal(isModal);