Use .isEmpty() where feasible
See gh-38739
This commit is contained in:
committed by
Phillip Webb
parent
d3af5cce73
commit
ac18e3015c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2023 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.
|
||||
@@ -65,7 +65,7 @@ public final class ItemMetadata implements Comparable<ItemMetadata> {
|
||||
fullName.append(prefix);
|
||||
}
|
||||
if (name != null) {
|
||||
if (fullName.length() > 0) {
|
||||
if (!fullName.isEmpty()) {
|
||||
fullName.append('.');
|
||||
}
|
||||
fullName.append(ConfigurationMetadata.toDashedCase(name));
|
||||
|
||||
Reference in New Issue
Block a user