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:
jglick committed 2006-11-23 00:30:05 +00:00
1 parent 2f381a8165
commit 239948d4d4
23 files changed
+49 -42

No files matched your search

+4 -3
View File
@@ -62,7 +62,8 @@ public class Functions {
}
public static RunUrl decompose(StaplerRequest req) {
List<Ancestor> ancestors = (List<Ancestor>) req.getAncestors();
@SuppressWarnings("unchecked") // pre-JDK 5 API?
List<Ancestor> ancestors = req.getAncestors();
for (Ancestor anc : ancestors) {
if(anc.getObject() instanceof Run) {
// bingo
@@ -139,11 +140,11 @@ public class Functions {
}
public static Map getSystemProperties() {
return new TreeMap(System.getProperties());
return new TreeMap<Object,Object>(System.getProperties());
}
public static Map getEnvVars() {
return new TreeMap(EnvVars.masterEnvVars);
return new TreeMap<String,String>(EnvVars.masterEnvVars);
}
public static boolean isWindows() {