aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Muskalla2010-06-30 19:10:06 (EDT)
committerBenjamin Muskalla2010-06-30 19:37:28 (EDT)
commit00870a6147c740a8fe6476310cb20e901fcd576a (patch)
tree0b402614b262d810250ccf8a8d2dd8c572ebea1c
parent8c02df410af7247fa7a0172c15dd03bd5a5c1bba (diff)
downloadegit-00870a6147c740a8fe6476310cb20e901fcd576a.zip
egit-00870a6147c740a8fe6476310cb20e901fcd576a.tar.gz
egit-00870a6147c740a8fe6476310cb20e901fcd576a.tar.bz2
fixed usage of Java 1.6 APIrefs/changes/17/1017/1
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/synchronize/GitSyncInfoTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/synchronize/GitSyncInfoTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/synchronize/GitSyncInfoTest.java
index a0bc11b..93de883 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/synchronize/GitSyncInfoTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/synchronize/GitSyncInfoTest.java
@@ -477,7 +477,8 @@ public class GitSyncInfoTest extends GitTestCase {
stage(fileName, localBytes);
RevCommit firstCommit = commit();
- byte[] remoteBytes = Arrays.copyOf(localBytes, localBytes.length);
+ byte[] remoteBytes = new byte[localBytes.length];
+ System.arraycopy(localBytes, 0, remoteBytes, 0, localBytes.length);
remoteBytes[8100] = 'b';
ObjectId objectId = stage(fileName, remoteBytes);
RevCommit secondCommit = commit();