Improved simplicity of toArray() method by using StringTokenizer.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@905 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -11,7 +11,7 @@ import javax.swing.UIManager;
|
||||
* @since September 9, 2002
|
||||
* @version $Revision$, $Date$
|
||||
*/
|
||||
class Resources
|
||||
public class Resources
|
||||
{
|
||||
private static ResourceBundle RESOURCES = ResourceBundle.getBundle("net.sourceforge.pmd.swingui.pmdViewer");
|
||||
|
||||
@ -22,7 +22,7 @@ class Resources
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
protected static final String getString(String name)
|
||||
public static final String getString(String name)
|
||||
{
|
||||
return RESOURCES.getString(name);
|
||||
}
|
||||
@ -35,7 +35,7 @@ class Resources
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
protected static final String getString(String name, String[] parameters)
|
||||
public static final String getString(String name, String[] parameters)
|
||||
{
|
||||
String template = RESOURCES.getString(name);
|
||||
String message = MessageFormat.format(template, parameters);
|
||||
|
Reference in New Issue
Block a user