Changeset 13231 in josm for trunk/src/org/glassfish/json/JsonBuilderFactoryImpl.java
- Timestamp:
- 2017-12-23T02:40:43+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/glassfish/json/JsonBuilderFactoryImpl.java
r6756 r13231 2 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 3 * 4 * Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. 4 * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 5 * 6 6 * The contents of this file are subject to the terms of either the GNU … … 9 9 * may not use this file except in compliance with the License. You can 10 10 * obtain a copy of the License at 11 * https:// glassfish.dev.java.net/public/CDDL+GPL_1_1.html12 * or packager/legal/LICENSE.txt. See the License for the specific11 * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 * or LICENSE.txt. See the License for the specific 13 13 * language governing permissions and limitations under the License. 14 14 * 15 15 * When distributing the software, include this License Header Notice in each 16 * file and include the License file at packager/legal/LICENSE.txt.16 * file and include the License file at LICENSE.txt. 17 17 * 18 18 * GPL Classpath Exception: … … 41 41 package org.glassfish.json; 42 42 43 import java.util.Collection; 43 44 import org.glassfish.json.api.BufferPool; 44 45 46 import javax.json.JsonObject; 47 import javax.json.JsonArray; 45 48 import javax.json.JsonArrayBuilder; 46 49 import javax.json.JsonBuilderFactory; … … 65 68 return new JsonObjectBuilderImpl(bufferPool); 66 69 } 70 71 @Override 72 public JsonObjectBuilder createObjectBuilder(JsonObject object) { 73 return new JsonObjectBuilderImpl(object, bufferPool); 74 } 75 76 @Override 77 public JsonObjectBuilder createObjectBuilder(Map<String, Object> object) { 78 return new JsonObjectBuilderImpl(object, bufferPool); 79 } 67 80 68 81 @Override … … 72 85 73 86 @Override 87 public JsonArrayBuilder createArrayBuilder(JsonArray array) { 88 return new JsonArrayBuilderImpl(array, bufferPool); 89 } 90 91 @Override 92 public JsonArrayBuilder createArrayBuilder(Collection<?> collection) { 93 return new JsonArrayBuilderImpl(collection, bufferPool); 94 } 95 96 @Override 74 97 public Map<String, ?> getConfigInUse() { 75 98 return config;
Note:
See TracChangeset
for help on using the changeset viewer.