mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
0220a1c55e
commit
9da4c8815c
@ -66,6 +66,9 @@ public class FileTypeUtil {
|
||||
* @return 文件类型,未找到为{@code null}
|
||||
*/
|
||||
public static String getType(final String fileStreamHexHead) {
|
||||
if(StrUtil.isBlank(fileStreamHexHead)){
|
||||
return null;
|
||||
}
|
||||
for (final Entry<String, String> fileTypeEntry : FILE_TYPE_MAP.entrySet()) {
|
||||
if (StrUtil.startWithIgnoreCase(fileStreamHexHead, fileTypeEntry.getKey())) {
|
||||
return fileTypeEntry.getValue();
|
||||
|
24
pom.xml
24
pom.xml
@ -198,7 +198,6 @@
|
||||
<Build-Jdk>${java.version}</Build-Jdk>
|
||||
<Build-Timestamp>${maven.build.timestamp}</Build-Timestamp>
|
||||
<Automatic-Module-Name>${Automatic-Module-Name}</Automatic-Module-Name>
|
||||
<Multi-Release>true</Multi-Release>
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
</configuration>
|
||||
@ -239,29 +238,6 @@
|
||||
<check/>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- 用于生成模块化系统中的module-info.class,见:https://github.com/moditect/moditect -->
|
||||
<plugin>
|
||||
<groupId>org.moditect</groupId>
|
||||
<artifactId>moditect-maven-plugin</artifactId>
|
||||
<version>1.2.2.Final</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add-module-infos</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>add-module-info</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<jvmVersion>9</jvmVersion>
|
||||
<module>
|
||||
<moduleInfo>
|
||||
<name>${Automatic-Module-Name}</name>
|
||||
</moduleInfo>
|
||||
</module>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user