]> source.dussan.org Git - jgit.git/commitdiff
Hide deprecation warnings in some test classes 60/9260/4
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 15 Dec 2012 11:01:25 +0000 (12:01 +0100)
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>
Thu, 27 Dec 2012 17:09:01 +0000 (12:09 -0500)
These test classes heavily rely on Tree and associated classes. They
are convenient for building test cases and hence not yet replaced, but
there is a deprecation warning at about every line, which is not helpful.

Change-Id: Ia7cc8f3bb980dc03055b94748b6c7529a82ea5a5

org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/IndexDiffTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0002_TreeTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/ObjectWalkTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_BasicTest.java

index dde32d7e9fc1c3a1516e3f07e7e0b481b4bf4a89..2441032eb92b423a4fa924aa321156c6fba037dc 100644 (file)
@@ -70,6 +70,7 @@ import org.eclipse.jgit.treewalk.FileTreeIterator;
 import org.eclipse.jgit.util.IO;
 import org.junit.Test;
 
+@SuppressWarnings("deprecation")
 public class IndexDiffTest extends RepositoryTestCase {
 
        static PathEdit add(final Repository db, final File workdir,
index dca34a0e16258174080052f0e82496967fdbbe7c..f6371d01904c5a393975dd28f809f9b6afff8d52 100644 (file)
@@ -57,6 +57,7 @@ import java.util.List;
 
 import org.junit.Test;
 
+@SuppressWarnings("deprecation")
 public class T0002_TreeTest extends SampleDataRepositoryTestCase {
        private static final ObjectId SOME_FAKE_ID = ObjectId.fromString(
                        "0123456789abcdef0123456789abcdef01234567");
index f183e02987624d1d8368a6ecf3a7a04ef2eb674d..dfde7fcf2c222cfd4d12312b273736f8d0ab0ec4 100644 (file)
@@ -54,6 +54,7 @@ import org.eclipse.jgit.lib.ObjectInserter;
 import org.eclipse.jgit.lib.Tree;
 import org.junit.Test;
 
+@SuppressWarnings("deprecation")
 public class ObjectWalkTest extends RevWalkTestCase {
        protected ObjectWalk objw;
 
index 12c634909f70269657f3121a102e9d8c61033e6d..01febcad61c4f3afbc5f3c7bbded71dff8bf7f15 100644 (file)
@@ -84,6 +84,7 @@ import org.eclipse.jgit.revwalk.RevWalk;
 import org.eclipse.jgit.util.FileUtils;
 import org.junit.Test;
 
+@SuppressWarnings("deprecation")
 public class T0003_BasicTest extends SampleDataRepositoryTestCase {
 
        @Test