8261880: Change nested classes in java.base to static nested classes where possible

Reviewed-by: redestad
This commit is contained in:
Sergey Tsypanov 2021-05-20 13:56:11 +00:00 committed by Claes Redestad
parent 459abd561a
commit 9425d3de83
11 changed files with 15 additions and 15 deletions

View file

@ -620,7 +620,7 @@ final class StackStreamFactory {
super(walker, FILL_CLASS_REFS_ONLY|GET_CALLER_CLASS);
}
final class ClassBuffer extends FrameBuffer<Class<?>> {
static final class ClassBuffer extends FrameBuffer<Class<?>> {
Class<?>[] classes; // caller class for fast path
ClassBuffer(int batchSize) {
super(batchSize);

View file

@ -176,7 +176,7 @@ public final
class Inet6Address extends InetAddress {
static final int INADDRSZ = 16;
private class Inet6AddressHolder {
private static class Inet6AddressHolder {
private Inet6AddressHolder() {
ipaddress = new byte[INADDRSZ];

View file

@ -566,6 +566,6 @@ public class ProtectionDomain {
/**
* Used for storing ProtectionDomains as keys in a Map.
*/
final class Key {}
static final class Key {}
}