diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-10-13 20:47:08 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-10-13 20:48:51 -0700 |
commit | 3f3b6bfdb37f4f9aac0dbe0c6f3b1513e7ba8e81 (patch) | |
tree | 0f3e54722f611e3b8d0d1c81fdd80e1087ef1a75 /org.eclipse.jgit.test/tst/org/eclipse/jgit/diff | |
parent | 8ea558bd8245097a05dfa8600f765c670b0bad5e (diff) | |
download | jgit-3f3b6bfdb37f4f9aac0dbe0c6f3b1513e7ba8e81.tar.gz jgit-3f3b6bfdb37f4f9aac0dbe0c6f3b1513e7ba8e81.zip |
Remove dead RawText(RawTextComparator) constructor
Since the introduction of HashedSequence we no longer need to supply
the RawTextComparator at the time of constructing a RawText. Drop the
definition from the constructor, because it doesn't make sense as part
of our public API.
Change-Id: Iaab34611d60eee4a2036830142b089b2dae81842
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/diff')
4 files changed, 16 insertions, 16 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreAllWhitespaceTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreAllWhitespaceTest.java index c59f3780b1..f97763f5c3 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreAllWhitespaceTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreAllWhitespaceTest.java @@ -52,9 +52,9 @@ public class RawTextIgnoreAllWhitespaceTest extends TestCase { private final RawTextComparator cmp = RawTextComparator.WS_IGNORE_ALL; public void testEqualsWithoutWhitespace() { - final RawText a = new RawText(cmp, Constants + final RawText a = new RawText(Constants .encodeASCII("foo-a\nfoo-b\nfoo\n")); - final RawText b = new RawText(cmp, Constants + final RawText b = new RawText(Constants .encodeASCII("foo-b\nfoo-c\nf\n")); assertEquals(3, a.size()); @@ -74,9 +74,9 @@ public class RawTextIgnoreAllWhitespaceTest extends TestCase { } public void testEqualsWithWhitespace() { - final RawText a = new RawText(cmp, Constants + final RawText a = new RawText(Constants .encodeASCII("foo-a\n \n a b c\na \n")); - final RawText b = new RawText(cmp, Constants + final RawText b = new RawText(Constants .encodeASCII("foo-a b\n\nab c\na\n")); // "foo-a" != "foo-a b" diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreLeadingWhitespaceTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreLeadingWhitespaceTest.java index 647fa30d2e..e510bddc62 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreLeadingWhitespaceTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreLeadingWhitespaceTest.java @@ -52,9 +52,9 @@ public class RawTextIgnoreLeadingWhitespaceTest extends TestCase { private final RawTextComparator cmp = RawTextComparator.WS_IGNORE_LEADING; public void testEqualsWithoutWhitespace() { - final RawText a = new RawText(cmp, Constants + final RawText a = new RawText(Constants .encodeASCII("foo-a\nfoo-b\nfoo\n")); - final RawText b = new RawText(cmp, Constants + final RawText b = new RawText(Constants .encodeASCII("foo-b\nfoo-c\nf\n")); assertEquals(3, a.size()); @@ -74,9 +74,9 @@ public class RawTextIgnoreLeadingWhitespaceTest extends TestCase { } public void testEqualsWithWhitespace() { - final RawText a = new RawText(cmp, Constants + final RawText a = new RawText(Constants .encodeASCII("foo-a\n \n a b c\n a\nb \n")); - final RawText b = new RawText(cmp, Constants + final RawText b = new RawText(Constants .encodeASCII("foo-a b\n\nab c\na\nb\n")); // "foo-a" != "foo-a b" diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreTrailingWhitespaceTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreTrailingWhitespaceTest.java index b6999cd031..de7e5bf4d1 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreTrailingWhitespaceTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreTrailingWhitespaceTest.java @@ -52,9 +52,9 @@ public class RawTextIgnoreTrailingWhitespaceTest extends TestCase { private final RawTextComparator cmp = RawTextComparator.WS_IGNORE_TRAILING; public void testEqualsWithoutWhitespace() { - final RawText a = new RawText(cmp, Constants + final RawText a = new RawText(Constants .encodeASCII("foo-a\nfoo-b\nfoo\n")); - final RawText b = new RawText(cmp, Constants + final RawText b = new RawText(Constants .encodeASCII("foo-b\nfoo-c\nf\n")); assertEquals(3, a.size()); @@ -74,9 +74,9 @@ public class RawTextIgnoreTrailingWhitespaceTest extends TestCase { } public void testEqualsWithWhitespace() { - final RawText a = new RawText(cmp, Constants + final RawText a = new RawText(Constants .encodeASCII("foo-a\n \n a b c\na \n b\n")); - final RawText b = new RawText(cmp, Constants + final RawText b = new RawText(Constants .encodeASCII("foo-a b\n\nab c\na\nb\n")); // "foo-a" != "foo-a b" diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreWhitespaceChangeTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreWhitespaceChangeTest.java index 62a079f395..c601130be7 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreWhitespaceChangeTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RawTextIgnoreWhitespaceChangeTest.java @@ -52,9 +52,9 @@ public class RawTextIgnoreWhitespaceChangeTest extends TestCase { private final RawTextComparator cmp = RawTextComparator.WS_IGNORE_CHANGE; public void testEqualsWithoutWhitespace() { - final RawText a = new RawText(cmp, Constants + final RawText a = new RawText(Constants .encodeASCII("foo-a\nfoo-b\nfoo\n")); - final RawText b = new RawText(cmp, Constants + final RawText b = new RawText(Constants .encodeASCII("foo-b\nfoo-c\nf\n")); assertEquals(3, a.size()); @@ -74,9 +74,9 @@ public class RawTextIgnoreWhitespaceChangeTest extends TestCase { } public void testEqualsWithWhitespace() { - final RawText a = new RawText(cmp, Constants + final RawText a = new RawText(Constants .encodeASCII("foo-a\n \n a b c\na \n foo\na b c\n")); - final RawText b = new RawText(cmp, Constants + final RawText b = new RawText(Constants .encodeASCII("foo-a b\n\nab c\na\nfoo\na b c \n")); // "foo-a" != "foo-a b" |