mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -762,10 +762,10 @@ public class Setting extends AbsSetting implements Map<String, String> {
|
||||
if (other.charset != null) {
|
||||
return false;
|
||||
}
|
||||
} else if (false == charset.equals(other.charset)) {
|
||||
} else if (! charset.equals(other.charset)) {
|
||||
return false;
|
||||
}
|
||||
if (false == groupedMap.equals(other.groupedMap)) {
|
||||
if (! groupedMap.equals(other.groupedMap)) {
|
||||
return false;
|
||||
}
|
||||
if (isUseVariable != other.isUseVariable) {
|
||||
|
@@ -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 (false == StrUtil.startWith(key, prefix)) {
|
||||
if (! StrUtil.startWith(key, prefix)) {
|
||||
// 非指定开头的属性忽略掉
|
||||
continue;
|
||||
}
|
||||
|
@@ -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 (false == name.contains(StrUtil.DOT)) {
|
||||
if (! name.contains(StrUtil.DOT)) {
|
||||
return StrUtil.format("{}/{}.setting", actralProfile, name);
|
||||
}
|
||||
return StrUtil.format("{}/{}", actralProfile, name);
|
||||
|
@@ -149,7 +149,7 @@ public class TomlWriter {
|
||||
final Object value = entry.getValue();
|
||||
if (value instanceof Collection) {// array
|
||||
final Collection<?> c = (Collection<?>) value;
|
||||
if (false == 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 (false == simpleValues) {
|
||||
if (! simpleValues) {
|
||||
continue;
|
||||
}
|
||||
indent();
|
||||
@@ -193,7 +193,7 @@ public class TomlWriter {
|
||||
indentationLevel--;
|
||||
tablesNames.removeLast();
|
||||
} else {// normal array
|
||||
if (false == 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 (false == isValidCharOfKey(c)) {
|
||||
if (! isValidCharOfKey(c)) {
|
||||
// 含有非法字符,包装之
|
||||
writeString(key);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user