Skip to content

Commit

Permalink
2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lunasaw committed May 25, 2022
1 parent 3e50fbe commit a35cbd9
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
22 changes: 14 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.github.lunasaw</groupId>
<artifactId>luna-common</artifactId>
<name>luna-common</name>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2-SNAPSHOT</version>
<description>common is project which contains common utils</description>
<url>https://github.com/lunasaw/luna-common</url>

Expand All @@ -17,7 +17,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!--dependencies-->
<commons-collections4.version>4.3</commons-collections4.version>
<commons-collections4.version>4.4</commons-collections4.version>
<commons-validator.version>1.7</commons-validator.version>
<commons-lang3.version>3.12.0</commons-lang3.version>
<commons-io.version>2.11.0</commons-io.version>
Expand Down Expand Up @@ -49,19 +49,25 @@
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>${commons-validator.version}</version>
<exclusions>
<exclusion>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>${commons-collections4.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/luna/common/net/HttpUtils.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.luna.common.net;

import com.google.common.collect.ImmutableList;
import com.luna.common.constant.Constant;
import com.luna.common.constant.StrPoolConstant;
import com.luna.common.net.method.HttpDelete;
import com.luna.common.text.CharsetUtil;
import com.luna.common.text.MapUtils;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.*;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/luna/common/net/RestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import java.util.Map;

import com.luna.common.text.MapUtils;
import com.luna.common.text.MapTools;
import org.apache.commons.collections4.MapUtils;
import org.apache.http.HttpResponse;

import com.google.common.collect.Maps;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/luna/common/text/Assert.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import java.util.Map;
import java.util.function.Supplier;

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang3.ObjectUtils;

import javax.annotation.Nullable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.luna.common.text;

import org.apache.commons.collections4.MapUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -10,13 +11,9 @@
* @author luna
* 2021/8/16
*/
public class MapUtils extends org.apache.commons.collections.MapUtils {
public class MapTools {

private static final Logger log = LoggerFactory.getLogger(MapUtils.class);

public MapUtils() {
super();
}
private static final Logger log = LoggerFactory.getLogger(MapTools.class);

public static Object getParam(String paramName, Map<String, Object> mapParam, Class<?> clazz) {
Map<String, Object> map = checkMap(paramName, mapParam);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/luna/common/text/ObjectUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.luna.common.text;

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections4.CollectionUtils;

import javax.annotation.Nullable;
import java.lang.reflect.Array;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/luna/common/text/StringTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.luna.common.constant.StrPoolConstant;
import com.luna.common.regex.DesensitizedUtil;
import com.luna.common.regex.ReUtil;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections4.CollectionUtils;

import javax.annotation.Nullable;
import java.io.ByteArrayOutputStream;
Expand Down

0 comments on commit a35cbd9

Please sign in to comment.