mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -92,7 +92,7 @@ public class Dict extends LinkedHashMap<String, Object> implements BasicTypeGett
|
||||
* @return Dict
|
||||
* @since 5.4.1
|
||||
*/
|
||||
public static Dict of(final Object... keysAndValues) {
|
||||
public static Dict ofKvs(final Object... keysAndValues) {
|
||||
final Dict dict = create();
|
||||
|
||||
String key = null;
|
||||
|
@@ -37,7 +37,7 @@ public class DictTest {
|
||||
|
||||
@Test
|
||||
public void ofTest(){
|
||||
final Dict dict = Dict.of(
|
||||
final Dict dict = Dict.ofKvs(
|
||||
"RED", "#FF0000",
|
||||
"GREEN", "#00FF00",
|
||||
"BLUE", "#0000FF"
|
||||
@@ -50,11 +50,11 @@ public class DictTest {
|
||||
|
||||
@Test
|
||||
public void removeEqualTest(){
|
||||
final Dict dict = Dict.of(
|
||||
final Dict dict = Dict.ofKvs(
|
||||
"key1", null
|
||||
);
|
||||
|
||||
final Dict dict2 = Dict.of(
|
||||
final Dict dict2 = Dict.ofKvs(
|
||||
"key1", null
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user