mirror of
https://gitee.com/dcren/initializr.git
synced 2025-11-28 17:32:34 +08:00
Polish
This commit is contained in:
@@ -97,8 +97,8 @@ public abstract class ServiceCapability<T> implements Cloneable {
|
||||
*/
|
||||
public void merge(ServiceCapability<T> other) {
|
||||
Assert.notNull(other, "Other must not be null");
|
||||
Assert.state(this.id.equals(other.id));
|
||||
Assert.state(this.type.equals(other.type));
|
||||
Assert.isTrue(this.id.equals(other.id), "Ids must be equals");
|
||||
Assert.isTrue(this.type.equals(other.type), "Types must be equals");
|
||||
if (StringUtils.hasText(other.title)) {
|
||||
this.title = other.title;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user