From 4c202cd7bbf536b5494f03c1e145f438359982de Mon Sep 17 00:00:00 2001 From: curcuru Date: Fri, 21 Dec 2001 22:59:05 +0000 Subject: [PATCH] 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 --- java/src/org/apache/env/Which.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/src/org/apache/env/Which.java b/java/src/org/apache/env/Which.java index 6b866b0..9277b86 100644 --- a/java/src/org/apache/env/Which.java +++ b/java/src/org/apache/env/Which.java @@ -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) {