366:8c0b6bccfe47 | 368:0989ad8c0860 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2012, 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 |
23 * questions. | 23 * questions. |
24 */ | 24 */ |
25 | 25 |
26 package com.sun.istack.internal.localization; | 26 package com.sun.istack.internal.localization; |
27 | 27 |
28 import java.util.Arrays; | |
29 | |
28 /** | 30 /** |
29 * @author WS Development Team | 31 * @author WS Development Team |
30 */ | 32 */ |
31 public final class LocalizableMessage implements Localizable { | 33 public final class LocalizableMessage implements Localizable { |
32 | 34 |
45 public String getKey() { | 47 public String getKey() { |
46 return _key; | 48 return _key; |
47 } | 49 } |
48 | 50 |
49 public Object[] getArguments() { | 51 public Object[] getArguments() { |
50 return _args; | 52 return Arrays.copyOf(_args, _args.length); |
51 } | 53 } |
52 | 54 |
53 public String getResourceBundleName() { | 55 public String getResourceBundleName() { |
54 return _bundlename; | 56 return _bundlename; |
55 } | 57 } |