8308239: Tighten up accessibility of nested classes in java.lang.invoke

Reviewed-by: alanb
This commit is contained in:
Joe Darcy 2023-05-17 15:31:03 +00:00
parent 64f6681cc7
commit f57c78337e

View File

@ -217,7 +217,7 @@ abstract class ClassSpecializer<T,K,S extends ClassSpecializer<T,K,S>.SpeciesDat
* it would appear that a shorter species could serve as a supertype of a
* longer one which extends it.
*/
public abstract class SpeciesData {
abstract class SpeciesData {
// Bootstrapping requires circular relations Class -> SpeciesData -> Class
// Therefore, we need non-final links in the chain. Use @Stable fields.
private final K key;
@ -454,7 +454,7 @@ abstract class ClassSpecializer<T,K,S extends ClassSpecializer<T,K,S>.SpeciesDat
* Code generation support for instances.
* Subclasses can modify the behavior.
*/
public class Factory {
class Factory {
/**
* Constructs a factory.
*/