mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8243596: ModuleLayer::parents should return an unmodifiable list
Reviewed-by: mchung
This commit is contained in:
parent
93b0516d5d
commit
f6dda95113
4 changed files with 90 additions and 30 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -509,7 +509,7 @@ public final class Configuration {
|
|||
|
||||
/**
|
||||
* Returns an unmodifiable list of this configuration's parents, in search
|
||||
* order. If this is the {@linkplain #empty empty configuration} then an
|
||||
* order. If this is the {@linkplain #empty() empty configuration} then an
|
||||
* empty list is returned.
|
||||
*
|
||||
* @return A possibly-empty unmodifiable list of this parent configurations
|
||||
|
@ -520,7 +520,7 @@ public final class Configuration {
|
|||
|
||||
|
||||
/**
|
||||
* Returns an immutable set of the resolved modules in this configuration.
|
||||
* Returns an unmodifiable set of the resolved modules in this configuration.
|
||||
*
|
||||
* @return A possibly-empty unmodifiable set of the resolved modules
|
||||
* in this configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue