DnsContext.java (10444:f08705540498) DnsContext.java (12588:108912ec77eb)
1/*
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided

--- 111 unchanged lines hidden (view full) ---

120 this.domain = domain;
121 parentIsDns = true;
122 }
123
124 /*
125 * Returns a clone of a DNS context. The context's modifiable
126 * private state is independent of the original's (so closing one
127 * context, for example, won't close the other). The two contexts
1/*
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided

--- 111 unchanged lines hidden (view full) ---

120 this.domain = domain;
121 parentIsDns = true;
122 }
123
124 /*
125 * Returns a clone of a DNS context. The context's modifiable
126 * private state is independent of the original's (so closing one
127 * context, for example, won't close the other). The two contexts
128 * share <tt>environment</tt>, but it's copy-on-write so there's
128 * share {@code environment}, but it's copy-on-write so there's
129 * no conflict.
130 */
131 private DnsContext(DnsContext ctx) {
132 environment = ctx.environment; // shared environment, copy-on-write
133 envShared = ctx.envShared = true;
134 parentIsDns = ctx.parentIsDns;
135 domain = ctx.domain;
136 servers = ctx.servers; // shared servers, no write operation

--- 953 unchanged lines hidden ---
129 * no conflict.
130 */
131 private DnsContext(DnsContext ctx) {
132 environment = ctx.environment; // shared environment, copy-on-write
133 envShared = ctx.envShared = true;
134 parentIsDns = ctx.parentIsDns;
135 domain = ctx.domain;
136 servers = ctx.servers; // shared servers, no write operation

--- 953 unchanged lines hidden ---