mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 04:22:16 +00:00
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:
1 parent
d9312af6cf
commit
4ec421c2e9
1 file changed
+5
-5
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user