src/share/classes/sun/module/repository/URLModuleInfo.java

Print this page

        

*** 58,68 **** } URLModuleInfo(String name, Version version, String platform, String arch, String path) { if ((platform == null ^ arch == null)) { throw new IllegalArgumentException( ! "module platform and name must be either both provided, or neither provided"); } if (name == null) { throw new IllegalArgumentException( "name must not be null"); --- 58,68 ---- } URLModuleInfo(String name, Version version, String platform, String arch, String path) { if ((platform == null ^ arch == null)) { throw new IllegalArgumentException( ! "module platform and arch must be either both provided, or neither provided"); } if (name == null) { throw new IllegalArgumentException( "name must not be null");