8283772: Make sun.net.dns.ResolverConfiguration sealed
Reviewed-by: jpai, dfuchs
This commit is contained in:
parent
5359387220
commit
9591306760
src/java.base
share/classes/sun/net/dns
unix/classes/sun/net/dns
windows/classes/sun/net/dns
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, 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
|
||||
@ -37,7 +37,7 @@ import java.util.List;
|
||||
* @since 1.4
|
||||
*/
|
||||
|
||||
public abstract class ResolverConfiguration {
|
||||
public sealed abstract class ResolverConfiguration permits ResolverConfigurationImpl {
|
||||
|
||||
private static final Object lock = new Object();
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, 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
|
||||
@ -37,7 +37,7 @@ import java.io.IOException;
|
||||
* and Linux.
|
||||
*/
|
||||
|
||||
public class ResolverConfigurationImpl
|
||||
public final class ResolverConfigurationImpl
|
||||
extends ResolverConfiguration
|
||||
{
|
||||
// Lock helds whilst loading configuration or checking
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2022, 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
|
||||
@ -33,7 +33,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* An implementation of sun.net.ResolverConfiguration for Windows.
|
||||
*/
|
||||
|
||||
public class ResolverConfigurationImpl
|
||||
public final class ResolverConfigurationImpl
|
||||
extends ResolverConfiguration
|
||||
{
|
||||
// Lock held whilst loading configuration or checking
|
||||
|
Loading…
x
Reference in New Issue
Block a user