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:
Don Leckie
2002-09-11 15:45:19 +00:00
parent 8bc6228e02
commit 74cc2f7e41

View File

@ -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);