From 4ec421c2e9a3cfec4d329883eff9666a0fe1b42d Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 3 Jan 2008 04:38:39 +0000 Subject: [PATCH] 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 --- core/src/main/java/hudson/EnvVars.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/hudson/EnvVars.java b/core/src/main/java/hudson/EnvVars.java index 38e4714cd3..d45bc59e4d 100644 --- a/core/src/main/java/hudson/EnvVars.java +++ b/core/src/main/java/hudson/EnvVars.java @@ -61,15 +61,15 @@ public class EnvVars extends TreeMap { } } - /** - * Environmental variables that we've inherited. - */ - public static final Map masterEnvVars = new EnvVars(System.getenv()); - /** * Compares strings case insensitively. */ private static final Comparator CASE_INSENSITIVE_COMPARATOR = new CaseInsensitiveComparator(); + + /** + * Environmental variables that we've inherited. + */ + public static final Map masterEnvVars = new EnvVars(System.getenv()); private static class CaseInsensitiveComparator implements Comparator, Serializable { public int compare(String lhs, String rhs) {