These should be static.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1292 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2003-11-13 00:11:28 +00:00
parent e177f99ae6
commit 57bda0ba01
@@ -1,5 +1,5 @@
// //
// $Id: PropertiesUtil.java,v 1.8 2003/11/13 00:08:11 mdb Exp $ // $Id: PropertiesUtil.java,v 1.9 2003/11/13 00:11:28 mdb Exp $
// //
// samskivert library - useful routines for java programs // samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne // Copyright (C) 2001 Michael Bayne
@@ -126,7 +126,7 @@ public class PropertiesUtil
* @return the value of the key in question or null if no such key * @return the value of the key in question or null if no such key
* exists or an error occurred loading the properties file. * exists or an error occurred loading the properties file.
*/ */
public String loadAndGet (File propFile, String key) public static String loadAndGet (File propFile, String key)
{ {
try { try {
Properties props = new Properties(); Properties props = new Properties();
@@ -144,7 +144,7 @@ public class PropertiesUtil
* @return the value of the key in question or null if no such key * @return the value of the key in question or null if no such key
* exists or an error occurred loading the properties file. * exists or an error occurred loading the properties file.
*/ */
public String loadAndGet (String loaderPath, String key) public static String loadAndGet (String loaderPath, String key)
{ {
try { try {
Properties props = ConfigUtil.loadProperties(loaderPath); Properties props = ConfigUtil.loadProperties(loaderPath);