equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2014, 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 |
271 if (properties == null) { |
271 if (properties == null) { |
272 ret = new HashMap<String,Object>(0); |
272 ret = new HashMap<String,Object>(0); |
273 } else { |
273 } else { |
274 ret = (Map<String,Object>) (properties.clone()); |
274 ret = (Map<String,Object>) (properties.clone()); |
275 } |
275 } |
276 return (Map<String,Object>) Collections.unmodifiableMap(ret); |
276 return Collections.unmodifiableMap(ret); |
277 } |
277 } |
278 |
278 |
279 |
279 |
280 /** |
280 /** |
281 * Obtain the property value specified by the key. |
281 * Obtain the property value specified by the key. |