equal
deleted
inserted
replaced
248 if (eql < end) |
248 if (eql < end) |
249 theEnvironment.put(envblock.substring(beg, eql), |
249 theEnvironment.put(envblock.substring(beg, eql), |
250 envblock.substring(eql+1,end)); |
250 envblock.substring(eql+1,end)); |
251 } |
251 } |
252 |
252 |
253 theCaseInsensitiveEnvironment |
253 theCaseInsensitiveEnvironment = new TreeMap<>(nameComparator); |
254 = new TreeMap<String,String>(nameComparator); |
|
255 theCaseInsensitiveEnvironment.putAll(theEnvironment); |
254 theCaseInsensitiveEnvironment.putAll(theEnvironment); |
256 } |
255 } |
257 |
256 |
258 private ProcessEnvironment() { |
257 private ProcessEnvironment() { |
259 super(); |
258 super(); |
294 private static native String environmentBlock(); |
293 private static native String environmentBlock(); |
295 |
294 |
296 // Only for use by ProcessImpl.start() |
295 // Only for use by ProcessImpl.start() |
297 String toEnvironmentBlock() { |
296 String toEnvironmentBlock() { |
298 // Sort Unicode-case-insensitively by name |
297 // Sort Unicode-case-insensitively by name |
299 List<Map.Entry<String,String>> list |
298 List<Map.Entry<String,String>> list = new ArrayList<>(entrySet()); |
300 = new ArrayList<Map.Entry<String,String>>(entrySet()); |
|
301 Collections.sort(list, entryComparator); |
299 Collections.sort(list, entryComparator); |
302 |
300 |
303 StringBuilder sb = new StringBuilder(size()*30); |
301 StringBuilder sb = new StringBuilder(size()*30); |
304 for (Map.Entry<String,String> e : list) |
302 for (Map.Entry<String,String> e : list) |
305 sb.append(e.getKey()) |
303 sb.append(e.getKey()) |