From: Dave Borowitz Date: Tue, 3 May 2016 20:18:52 +0000 (-0400) Subject: PersonIdent: Make appendSanitized public X-Git-Tag: v4.4.0.201605041135-m1~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c9b00288fdc9a796c85434007d955c2df0e88096;p=jgit.git PersonIdent: Make appendSanitized public Change-Id: I337c90fff3c013819a42a7622ac6bacc72828c07 --- diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0001_PersonIdentTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0001_PersonIdentTest.java index 86d8206b36..19181f5ff0 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0001_PersonIdentTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0001_PersonIdentTest.java @@ -132,4 +132,11 @@ public class T0001_PersonIdentTest { assertTrue(externalString.startsWith(" <>")); } + @Test + public void testAppendSanitized() { + StringBuilder r = new StringBuilder(); + PersonIdent.appendSanitized(r, " Baz>\n\u1234