com.mogudiandian.util.javac.URIUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joshua-util Show documentation
Show all versions of joshua-util Show documentation
Joshua's user-friendly utilities
The newest version!
package com.mogudiandian.util.javac;
import lombok.SneakyThrows;
import java.net.URI;
/**
* URI工具类
* @author Joshua Sun
* @since 1.0.0
*/
final class URIUtils {
private URIUtils() {
super();
}
/**
* 创建URI对象 避免抛异常
* @param uri URI
* @return URI对象
*/
@SneakyThrows
public static URI create(String uri) {
return new URI(uri);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy