fixed #1115. the comparator needs to be created first before the masterEnvVars because the latter uses the former.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6461 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-01-03 04:38:39 +00:00
1 parent d9312af6cf
commit 4ec421c2e9
1 file changed
+5 -5
+5 -5
View File
@@ -61,15 +61,15 @@ public class EnvVars extends TreeMap<String,String> {
}
}
/**
* Environmental variables that we've inherited.
*/
public static final Map<String,String> masterEnvVars = new EnvVars(System.getenv());
/**
* Compares strings case insensitively.
*/
private static final Comparator<String> CASE_INSENSITIVE_COMPARATOR = new CaseInsensitiveComparator();
/**
* Environmental variables that we've inherited.
*/
public static final Map<String,String> masterEnvVars = new EnvVars(System.getenv());
private static class CaseInsensitiveComparator implements Comparator<String>, Serializable {
public int compare(String lhs, String rhs) {