mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
Some compiler lint.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1236 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
2f381a8165
commit
239948d4d4
23 files changed
+49
-42
No files matched your search
@@ -17,7 +17,6 @@ import java.util.Map;
|
||||
import java.util.ResourceBundle;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.SimpleTimeZone;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.logging.Level;
|
||||
import java.util.regex.Matcher;
|
||||
@@ -187,12 +186,12 @@ public class Util {
|
||||
return a;
|
||||
}
|
||||
|
||||
public static String[] mapToEnv(Map<?,?> m) {
|
||||
public static String[] mapToEnv(Map<String,String> m) {
|
||||
String[] r = new String[m.size()];
|
||||
int idx=0;
|
||||
|
||||
for (final Map.Entry e : m.entrySet()) {
|
||||
r[idx++] = e.getKey().toString() + '=' + e.getValue().toString();
|
||||
for (final Map.Entry<String,String> e : m.entrySet()) {
|
||||
r[idx++] = e.getKey() + '=' + e.getValue();
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user