Commit a2c67cd5 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #20847 from dreis2211

* pr/20847:
  Polish ConditionMessage#because()

Closes gh-20847
parents 520b8c88 2f93196f
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -300,7 +300,7 @@ public final class ConditionMessage {
return new ConditionMessage(ConditionMessage.this, this.condition);
}
return new ConditionMessage(ConditionMessage.this,
this.condition + (StringUtils.isEmpty(this.condition) ? "" : " ") + reason);
StringUtils.isEmpty(this.condition) ? reason : this.condition + " " + reason);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment