Merge pull request #20847 from dreis2211

* pr/20847:
  Polish ConditionMessage#because()

Closes gh-20847
This commit is contained in:
Stephane Nicoll
2020-04-07 15:05:31 +02:00

View File

@@ -1,5 +1,5 @@
/*
* 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);
}
}