This commit is contained in:
Looly
2022-05-07 13:24:02 +08:00
parent 029a603d5f
commit 36d75d7030
81 changed files with 525 additions and 494 deletions

View File

@@ -58,7 +58,7 @@ public class RootAction implements Action {
*/
public RootAction(final File rootDir, final String... indexFileNames) {
this.rootDir = rootDir;
this.indexFileNames = ListUtil.toList(indexFileNames);
this.indexFileNames = ListUtil.of(indexFileNames);
}
@Override

View File

@@ -27,7 +27,7 @@ public class Browser extends UserAgentInfo {
/**
* 支持的浏览器类型
*/
public static final List<Browser> browers = ListUtil.toList(
public static final List<Browser> browers = ListUtil.of(
// 部分特殊浏览器是基于安卓、Iphone等的需要优先判断
// 企业微信 企业微信使用微信浏览器内核,会包含 MicroMessenger 所以要放在前面
new Browser("wxwork", "wxwork", "wxwork\\/([\\d\\w\\.\\-]+)"),

View File

@@ -21,7 +21,7 @@ public class Engine extends UserAgentInfo {
/**
* 支持的引擎类型
*/
public static final List<Engine> engines = ListUtil.of(
public static final List<Engine> engines = ListUtil.view(
new Engine("Trident", "trident"),
new Engine("Webkit", "webkit"),
new Engine("Chrome", "chrome"),

View File

@@ -23,7 +23,7 @@ public class OS extends UserAgentInfo {
/**
* 支持的引擎类型
*/
public static final List<OS> oses = ListUtil.of(//
public static final List<OS> oses = ListUtil.view(//
new OS("Windows 10 or Windows Server 2016", "windows nt 10\\.0", "windows nt (10\\.0)"),//
new OS("Windows 8.1 or Windows Server 2012R2", "windows nt 6\\.3", "windows nt (6\\.3)"),//
new OS("Windows 8 or Windows Server 2012", "windows nt 6\\.2", "windows nt (6\\.2)"),//

View File

@@ -49,7 +49,7 @@ public class Platform extends UserAgentInfo {
/**
* 支持的移动平台类型
*/
public static final List<Platform> mobilePlatforms = ListUtil.of(//
public static final List<Platform> mobilePlatforms = ListUtil.view(//
WINDOWS_PHONE, //
IPAD, //
IPOD, //
@@ -65,7 +65,7 @@ public class Platform extends UserAgentInfo {
/**
* 支持的桌面平台类型
*/
public static final List<Platform> desktopPlatforms = ListUtil.of(//
public static final List<Platform> desktopPlatforms = ListUtil.view(//
new Platform("Windows", "windows"), //
new Platform("Mac", "(macintosh|darwin)"), //
new Platform("Linux", "linux"), //