jdk/src/java.base/share/classes/java/io/File.java
changeset 34782 fe102f179318
parent 33674 566777f73c32
child 37593 824750ada3d6
equal deleted inserted replaced
34781:479b1724ab80 34782:fe102f179318
   418         if (uri.isOpaque())
   418         if (uri.isOpaque())
   419             throw new IllegalArgumentException("URI is not hierarchical");
   419             throw new IllegalArgumentException("URI is not hierarchical");
   420         String scheme = uri.getScheme();
   420         String scheme = uri.getScheme();
   421         if ((scheme == null) || !scheme.equalsIgnoreCase("file"))
   421         if ((scheme == null) || !scheme.equalsIgnoreCase("file"))
   422             throw new IllegalArgumentException("URI scheme is not \"file\"");
   422             throw new IllegalArgumentException("URI scheme is not \"file\"");
   423         if (uri.getAuthority() != null)
   423         if (uri.getRawAuthority() != null)
   424             throw new IllegalArgumentException("URI has an authority component");
   424             throw new IllegalArgumentException("URI has an authority component");
   425         if (uri.getFragment() != null)
   425         if (uri.getRawFragment() != null)
   426             throw new IllegalArgumentException("URI has a fragment component");
   426             throw new IllegalArgumentException("URI has a fragment component");
   427         if (uri.getQuery() != null)
   427         if (uri.getRawQuery() != null)
   428             throw new IllegalArgumentException("URI has a query component");
   428             throw new IllegalArgumentException("URI has a query component");
   429         String p = uri.getPath();
   429         String p = uri.getPath();
   430         if (p.equals(""))
   430         if (p.equals(""))
   431             throw new IllegalArgumentException("URI path component is empty");
   431             throw new IllegalArgumentException("URI path component is empty");
   432 
   432