Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-12-15 21:36:51 -0500
committermkersten2006-12-15 21:36:51 -0500
commit79fbbf19a9d5fc57f0baf805e09c2c19c9f12868 (patch)
treef54f3f21373b4eea60298323c3a599043a5dcad0
parent45532a12025edfce199753a0eea38eeeedbf99d1 (diff)
downloadorg.eclipse.mylyn.tasks-79fbbf19a9d5fc57f0baf805e09c2c19c9f12868.tar.gz
org.eclipse.mylyn.tasks-79fbbf19a9d5fc57f0baf805e09c2c19c9f12868.tar.xz
org.eclipse.mylyn.tasks-79fbbf19a9d5fc57f0baf805e09c2c19c9f12868.zip
NEW - bug 168152: support Eclipse 3.3M4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=168152
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java2
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java6
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracXmlRpcTest.java12
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/XmlRpcServer.java2
4 files changed, 11 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
index 46035f873..229555fa3 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
@@ -183,7 +183,7 @@ public class BugzillaProductPage extends WizardPage {
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof Collection) {
- return ((Collection) parentElement).toArray();
+ return ((Collection<?>) parentElement).toArray();
}
return null;
}
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java
index beafe3a6c..c82f8f7b7 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracXmlRpcClient.java
@@ -265,7 +265,7 @@ public class TracXmlRpcClient extends AbstractTracClient {
Object[] result = getAttributes("ticket.component");
data.components = new ArrayList<TracComponent>(result.length);
for (Object item : result) {
- data.components.add(parseComponent((Map) getMultiCallResult(item)));
+ data.components.add(parseComponent((Map<?, ?>) getMultiCallResult(item)));
}
monitor.worked(1);
if (monitor.isCanceled())
@@ -274,7 +274,7 @@ public class TracXmlRpcClient extends AbstractTracClient {
result = getAttributes("ticket.milestone");
data.milestones = new ArrayList<TracMilestone>(result.length);
for (Object item : result) {
- data.milestones.add(parseMilestone((Map) getMultiCallResult(item)));
+ data.milestones.add(parseMilestone((Map<?, ?>) getMultiCallResult(item)));
}
monitor.worked(1);
if (monitor.isCanceled())
@@ -333,7 +333,7 @@ public class TracXmlRpcClient extends AbstractTracClient {
result = getAttributes("ticket.version");
data.versions = new ArrayList<TracVersion>(result.length);
for (Object item : result) {
- data.versions.add(parseVersion((Map) getMultiCallResult(item)));
+ data.versions.add(parseVersion((Map<?, ?>) getMultiCallResult(item)));
}
monitor.worked(1);
if (monitor.isCanceled())
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracXmlRpcTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracXmlRpcTest.java
index c766efb3b..ee613957d 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracXmlRpcTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracXmlRpcTest.java
@@ -164,7 +164,7 @@ public class TracXmlRpcTest extends TestCase {
try {
assertHasValue((Object[]) call(module + ".getAll"), "foo");
- Map<?, ?> values = (Map) call(module + ".get", "foo");
+ Map<?, ?> values = (Map<?, ?>) call(module + ".get", "foo");
for (String attribute : attributes.keySet()) {
assertEquals(attributes.get(attribute), values.get(attribute));
}
@@ -174,7 +174,7 @@ public class TracXmlRpcTest extends TestCase {
}
call(module + ".update", "foo", attributes);
- values = (Map) call(module + ".get", "foo");
+ values = (Map<?, ?>) call(module + ".get", "foo");
for (String attribute : attributes.keySet()) {
assertEquals(attributes.get(attribute), values.get(attribute));
}
@@ -199,7 +199,7 @@ public class TracXmlRpcTest extends TestCase {
call("ticket.milestone.create", "foo", attributes);
- Map<?, ?> values = (Map) call("ticket.milestone.get", "foo");
+ Map<?, ?> values = (Map<?, ?>) call("ticket.milestone.get", "foo");
assertEquals(new Integer(due), (Integer) values.get("due"));
assertEquals(new Integer(completed), (Integer) values.get("completed"));
@@ -228,7 +228,7 @@ public class TracXmlRpcTest extends TestCase {
} else {
assertTrue((Integer) ticket[2] >= (Integer) ticket[1]);
}
- Map<?, ?> values = (Map) ticket[3];
+ Map<?, ?> values = (Map<?, ?>) ticket[3];
for (String attribute : attributes.keySet()) {
assertEquals(attributes.get(attribute), values.get(attribute));
}
@@ -255,7 +255,7 @@ public class TracXmlRpcTest extends TestCase {
}
try {
- List<?> ticket = (List) call("ticket.get", Integer.MAX_VALUE);
+ List<?> ticket = (List<?>) call("ticket.get", Integer.MAX_VALUE);
fail("Expected XmlRpcException, got ticket instead: " + ticket);
} catch (XmlRpcException e) {
// ignore
@@ -283,7 +283,7 @@ public class TracXmlRpcTest extends TestCase {
attributes.put("description", "description");
Object[] ticket = (Object[]) call("ticket.get", id);
- Map<?, ?> values = (Map) ticket[3];
+ Map<?, ?> values = (Map<?, ?>) ticket[3];
for (String attribute : attributes.keySet()) {
assertEquals(attributes.get(attribute), values.get(attribute));
}
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/XmlRpcServer.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/XmlRpcServer.java
index 4db27656c..02ae9ac9e 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/XmlRpcServer.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/XmlRpcServer.java
@@ -185,7 +185,7 @@ public class XmlRpcServer {
}
public Map<?, ?> getValues() throws Exception {
- return (Map) ((Object[]) call("ticket.get", id))[3];
+ return (Map<?, ?>) ((Object[]) call("ticket.get", id))[3];
}
@SuppressWarnings("unchecked")

Back to the top