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:
8
java/src/org/apache/env/Which.java
vendored
8
java/src/org/apache/env/Which.java
vendored
@@ -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)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user