diff options
| author | Benjamin Muskalla | 2010-06-30 23:10:06 +0000 |
|---|---|---|
| committer | Benjamin Muskalla | 2010-06-30 23:37:28 +0000 |
| commit | 00870a6147c740a8fe6476310cb20e901fcd576a (patch) | |
| tree | 0b402614b262d810250ccf8a8d2dd8c572ebea1c | |
| parent | 8c02df410af7247fa7a0172c15dd03bd5a5c1bba (diff) | |
| download | egit-00870a6147c740a8fe6476310cb20e901fcd576a.tar.gz egit-00870a6147c740a8fe6476310cb20e901fcd576a.tar.xz egit-00870a6147c740a8fe6476310cb20e901fcd576a.zip | |
fixed usage of Java 1.6 API
Bug: 318525
Change-Id: I0989012db58125832f207e33ab6bf5030541c276
| -rw-r--r-- | org.eclipse.egit.core.test/src/org/eclipse/egit/core/synchronize/GitSyncInfoTest.java | 3 |
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 a0bc11b057..93de883547 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(); |
