|
1 | 1 | /* |
2 | | - * Copyright (c) 2007, 2024, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2007, 2025, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
@@ -257,8 +257,9 @@ public static FileSystem getFileSystem(URI uri) { |
257 | 257 | * |
258 | 258 | * @throws IllegalArgumentException |
259 | 259 | * if the pre-conditions for the {@code uri} parameter are not met, |
260 | | - * or the {@code env} parameter does not contain properties required |
261 | | - * by the provider, or a property value is invalid |
| 260 | + * or if the {@code env} parameter does not contain properties |
| 261 | + * required by the provider, contains an invalid combination of |
| 262 | + * properties and values, or contains an invalid property value |
262 | 263 | * @throws FileSystemAlreadyExistsException |
263 | 264 | * if the file system has already been created |
264 | 265 | * @throws ProviderNotFoundException |
@@ -296,8 +297,9 @@ public static FileSystem newFileSystem(URI uri, Map<String,?> env) |
296 | 297 | * |
297 | 298 | * @throws IllegalArgumentException |
298 | 299 | * if the pre-conditions for the {@code uri} parameter are not met, |
299 | | - * or the {@code env} parameter does not contain properties required |
300 | | - * by the provider, or a property value is invalid |
| 300 | + * or if the {@code env} parameter does not contain properties |
| 301 | + * required by the provider, contains an invalid combination of |
| 302 | + * properties and values, or contains an invalid property value |
301 | 303 | * @throws FileSystemAlreadyExistsException |
302 | 304 | * if the URI scheme identifies an installed provider and the file |
303 | 305 | * system has already been created |
@@ -370,6 +372,8 @@ public static FileSystem newFileSystem(URI uri, Map<String,?> env, ClassLoader l |
370 | 372 | * when an error occurs while loading a service provider |
371 | 373 | * @throws IOException |
372 | 374 | * if an I/O error occurs |
| 375 | + * |
| 376 | + * @since 13 |
373 | 377 | */ |
374 | 378 | public static FileSystem newFileSystem(Path path, |
375 | 379 | ClassLoader loader) |
@@ -400,6 +404,10 @@ public static FileSystem newFileSystem(Path path, |
400 | 404 | * |
401 | 405 | * @return a new file system |
402 | 406 | * |
| 407 | + * @throws IllegalArgumentException |
| 408 | + * if the {@code env} parameter does not contain properties |
| 409 | + * required by the provider, contains an invalid combination of |
| 410 | + * properties and values, or contains an invalid property value |
403 | 411 | * @throws ProviderNotFoundException |
404 | 412 | * if a provider supporting this file type cannot be located |
405 | 413 | * @throws ServiceConfigurationError |
@@ -476,6 +484,10 @@ public static FileSystem newFileSystem(Path path) throws IOException { |
476 | 484 | * |
477 | 485 | * @return a new file system |
478 | 486 | * |
| 487 | + * @throws IllegalArgumentException |
| 488 | + * if the {@code env} parameter does not contain properties |
| 489 | + * required by the provider, contains an invalid combination of |
| 490 | + * properties and values, or contains an invalid property value |
479 | 491 | * @throws ProviderNotFoundException |
480 | 492 | * if a provider supporting this file type cannot be located |
481 | 493 | * @throws ServiceConfigurationError |
|
0 commit comments