This commit is contained in:
Looly
2023-04-12 01:22:54 +08:00
parent d2e5155ac5
commit a96a95c988
216 changed files with 480 additions and 480 deletions

View File

@@ -762,10 +762,10 @@ public class Setting extends AbsSetting implements Map<String, String> {
if (other.charset != null) {
return false;
}
} else if (! charset.equals(other.charset)) {
} else if (!charset.equals(other.charset)) {
return false;
}
if (! groupedMap.equals(other.groupedMap)) {
if (!groupedMap.equals(other.groupedMap)) {
return false;
}
if (isUseVariable != other.isUseVariable) {

View File

@@ -352,7 +352,7 @@ public final class Props extends Properties implements TypeGetter<CharSequence>
String key;
for (final java.util.Map.Entry<Object, Object> entry : this.entrySet()) {
key = (String) entry.getKey();
if (! StrUtil.startWith(key, prefix)) {
if (!StrUtil.startWith(key, prefix)) {
// 非指定开头的属性忽略掉
continue;
}

View File

@@ -150,7 +150,7 @@ public class Profile implements Serializable {
private String fixNameForProfile(final String name) {
Assert.notBlank(name, "Setting name must be not blank !");
final String actralProfile = StrUtil.emptyIfNull(this.profile);
if (! name.contains(StrUtil.DOT)) {
if (!name.contains(StrUtil.DOT)) {
return StrUtil.format("{}/{}.setting", actralProfile, name);
}
return StrUtil.format("{}/{}", actralProfile, name);

View File

@@ -149,7 +149,7 @@ public class TomlWriter {
final Object value = entry.getValue();
if (value instanceof Collection) {// array
final Collection<?> c = (Collection<?>) value;
if (! c.isEmpty() && c.iterator().next() instanceof Map) {// array of tables
if (!c.isEmpty() && c.iterator().next() instanceof Map) {// array of tables
if (simpleValues) {
continue;
}
@@ -166,7 +166,7 @@ public class TomlWriter {
indentationLevel--;
tablesNames.removeLast();
} else {// normal array
if (! simpleValues) {
if (!simpleValues) {
continue;
}
indent();
@@ -193,7 +193,7 @@ public class TomlWriter {
indentationLevel--;
tablesNames.removeLast();
} else {// normal array
if (! simpleValues) {
if (!simpleValues) {
continue;
}
indent();
@@ -234,7 +234,7 @@ public class TomlWriter {
private void writeKey(final String key) throws IORuntimeException {
for (int i = 0; i < key.length(); i++) {
final char c = key.charAt(i);
if (! isValidCharOfKey(c)) {
if (!isValidCharOfKey(c)) {
// 含有非法字符,包装之
writeString(key);
return;