Skip to content

Commit

Permalink
remove useless pom import,modify Chinese comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyann committed Aug 31, 2021
1 parent 88b3197 commit 36a98a7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
5 changes: 0 additions & 5 deletions dubbo-admin-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@
<artifactId>netty-all</artifactId>
</dependency>

<!-- <dependency>-->
<!-- <groupId>org.apache.dubbo</groupId>-->
<!-- <artifactId>dubbo-serialization-kryo</artifactId>-->
<!-- </dependency>-->

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,7 @@ private static Object generateMapType(ServiceDefinition sd, TypeDefinition td) {
keyType = StringUtils.strip(keyType);

Map<Object, Object> map = new HashMap<>();
// 生成 key 默认值
Object key = generateType(sd, keyType);

// 生成 value 默认值
String valueType = StringUtils.substringAfter(td.getType(), ",");
valueType = StringUtils.substringBefore(valueType, ">");
valueType = StringUtils.strip(valueType);
Expand All @@ -197,7 +194,7 @@ private static Object generateCollectionType(ServiceDefinition sd, TypeDefinitio
String type = StringUtils.substringAfter(td.getType(), "<");
type = StringUtils.substringBefore(type, ">");
if (StringUtils.isEmpty(type)) {
// 如果 collection 类型未声明,则生成空 collection
// if type is null return empty collection
return new Object[] {};
}
return new Object[]{generateType(sd, type)};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ private static Object generateMapType(ServiceDefinition sd, TypeDefinition td) {
keyType = StringUtils.strip(keyType);

Map<Object, Object> map = new HashMap<>();
// 生成 key 默认值
Object key = generateType(sd, keyType);

// 生成 value 默认值
String valueType = StringUtils.substringAfter(td.getType(), ",");
valueType = StringUtils.substringBefore(valueType, ">");
valueType = StringUtils.strip(valueType);
Expand All @@ -206,7 +203,7 @@ private static Object generateCollectionType(ServiceDefinition sd, TypeDefinitio
String type = StringUtils.substringAfter(td.getType(), "<");
type = StringUtils.substringBefore(type, ">");
if (StringUtils.isEmpty(type)) {
// 如果 collection 类型未声明,则生成空 collection
// if type is null return empty collection
return new Object[]{};
}
return new Object[]{generateType(sd, type)};
Expand Down
7 changes: 0 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
<main.basedir>${project.basedir}</main.basedir>
<commons-lang3-version>3.7</commons-lang3-version>
<dubbo-version>3.0.2</dubbo-version>
<serialization-kryo-version>2.7.13</serialization-kryo-version>
<curator-version>4.0.1</curator-version>
<curator-test-version>4.1.0</curator-test-version>
<fastjson-version>1.2.67</fastjson-version>
Expand Down Expand Up @@ -126,12 +125,6 @@
<version>${dubbo-version}</version>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-serialization-kryo</artifactId>
<version>${serialization-kryo-version}</version>
</dependency>

<dependency>
<groupId>org.apache.curator</groupId>
<artifactId>curator-framework</artifactId>
Expand Down

0 comments on commit 36a98a7

Please sign in to comment.