equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
92 */ |
92 */ |
93 |
93 |
94 final public class DatatypeConverter { |
94 final public class DatatypeConverter { |
95 |
95 |
96 // delegate to this instance of DatatypeConverter |
96 // delegate to this instance of DatatypeConverter |
97 private static DatatypeConverterInterface theConverter = null; |
97 private static volatile DatatypeConverterInterface theConverter = null; |
98 |
98 |
99 private final static JAXBPermission SET_DATATYPE_CONVERTER_PERMISSION = |
99 private final static JAXBPermission SET_DATATYPE_CONVERTER_PERMISSION = |
100 new JAXBPermission("setDatatypeConverter"); |
100 new JAXBPermission("setDatatypeConverter"); |
101 |
101 |
102 private DatatypeConverter() { |
102 private DatatypeConverter() { |