Make several useful methods static; makes it easier to call

them externally; note that someday we may want non-static methods in
case there are any detailed classloader issues that have different
behavior between static and instance methods.


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
curcuru
2001-12-21 22:59:05 +00:00
parent acbc352fdf
commit 4c202cd7bb

View File

@@ -147,12 +147,12 @@ public class Which
* @param options to apply like strict or verbose
* @return status information from WhichConstant
*/
public int which(Hashtable hash, String projects, String options)
public static int which(Hashtable hash, String projects, String options)
{
if (null == hash)
hash = new Hashtable();
getGeneralInfo(hash, optionsBuf.toString());
getGeneralInfo(hash, options);
int status = getProjectsInfo(hash, projects, options);
@@ -169,7 +169,7 @@ public class Which
* @param hash to put information in
* @param projects to get information about
*/
public void getGeneralInfo(Hashtable hash, String options)
public static void getGeneralInfo(Hashtable hash, String options)
{
hash.put("Which" + WhichConstant.TAG_VERSION, getVersion());
@@ -200,7 +200,7 @@ public class Which
* @param options to apply like strict or verbose
* @return status information from WhichConstant
*/
public int getProjectsInfo(Hashtable hash, String projects,
public static int getProjectsInfo(Hashtable hash, String projects,
String options)
{