mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8283772: Make sun.net.dns.ResolverConfiguration sealed
Reviewed-by: jpai, dfuchs
This commit is contained in:
parent
5359387220
commit
9591306760
3 changed files with 6 additions and 6 deletions
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -37,7 +37,7 @@ import java.util.List;
|
||||||
* @since 1.4
|
* @since 1.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public abstract class ResolverConfiguration {
|
public sealed abstract class ResolverConfiguration permits ResolverConfigurationImpl {
|
||||||
|
|
||||||
private static final Object lock = new Object();
|
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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -37,7 +37,7 @@ import java.io.IOException;
|
||||||
* and Linux.
|
* and Linux.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ResolverConfigurationImpl
|
public final class ResolverConfigurationImpl
|
||||||
extends ResolverConfiguration
|
extends ResolverConfiguration
|
||||||
{
|
{
|
||||||
// Lock helds whilst loading configuration or checking
|
// 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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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.
|
* An implementation of sun.net.ResolverConfiguration for Windows.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class ResolverConfigurationImpl
|
public final class ResolverConfigurationImpl
|
||||||
extends ResolverConfiguration
|
extends ResolverConfiguration
|
||||||
{
|
{
|
||||||
// Lock held whilst loading configuration or checking
|
// Lock held whilst loading configuration or checking
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue