summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorTomasz Zarna2012-01-16 14:52:03 (EST)
committer Tomasz Zarna2012-01-16 14:52:03 (EST)
commit27c525f7cc34fdd5909306bb3af9fcd224e59cb3 (patch)
treeb5cf4f10d6dc38217966ae60f2d930843e1dea1a
parent37cb29166bfa9abcf09db703d0e7ba5c694277c3 (diff)
downloadegit-27c525f7cc34fdd5909306bb3af9fcd224e59cb3.zip
egit-27c525f7cc34fdd5909306bb3af9fcd224e59cb3.tar.gz
egit-27c525f7cc34fdd5909306bb3af9fcd224e59cb3.tar.bz2
Arrays.copyOf not supported in Java 1.5, replace with System.arraycopyrefs/changes/61/4961/1
-rw-r--r--org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java
index 1d8a77a..e9f0c2e 100644
--- a/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java
+++ b/org.eclipse.egit.mylyn.ui/src/org/eclipse/egit/internal/mylyn/ui/commit/TaskReferenceFactory.java
@@ -16,7 +16,6 @@ import java.net.InetAddress;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.UnknownHostException;
-import java.util.Arrays;
import java.util.List;
import org.eclipse.core.runtime.IAdapterFactory;
@@ -48,7 +47,9 @@ public class TaskReferenceFactory implements IAdapterFactory {
@SuppressWarnings({ "rawtypes" })
public Class[] getAdapterList() {
- return Arrays.copyOf(ADAPTER_TYPES, ADAPTER_TYPES.length);
+ final Class[] c = new Class[ADAPTER_TYPES.length];
+ System.arraycopy(ADAPTER_TYPES, 0, c, 0, c.length);
+ return c;
}
@SuppressWarnings("rawtypes")