Skip to content

Commit

Permalink
feat: update poi to 5.2.5
Browse files Browse the repository at this point in the history
fix: NetworkHandler media type
  • Loading branch information
MidCoard committed Mar 27, 2024
1 parent 57b5119 commit 9c17aa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<mirai.version>2.16.0</mirai.version>
<poi.version>5.2.2</poi.version>
<poi.version>5.2.5</poi.version>
<logback.version>1.4.14</logback.version>
<checker.version>3.21.3</checker.version>
<errorprone.version>9+181-r4173-1</errorprone.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import top.focess.util.network.HttpResponse;

import java.util.Map;
import java.util.Objects;

/**
* This is a network util class.
Expand All @@ -23,9 +22,12 @@ public class NetworkHandler {

private static final Logger LOGGER = LoggerFactory.getLogger(NetworkHandler.class);
@NonNull
public static final MediaType JSON = Objects.requireNonNull(MediaType.parse("application/json; charset=utf-8"));
public static final MediaType JSON = top.focess.util.network.NetworkHandler.JSON;
@NonNull
public static final MediaType TEXT = Objects.requireNonNull(MediaType.parse("application/x-www-form-urlencoded; charset=utf-8"));
public static final MediaType TEXT = top.focess.util.network.NetworkHandler.TEXT;
@NonNull
public static final MediaType URL_ENCODED = top.focess.util.network.NetworkHandler.URL_ENCODED;


/**
* The plugin
Expand Down

0 comments on commit 9c17aa2

Please sign in to comment.