mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 15:45:52 +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
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user