From c9b00288fdc9a796c85434007d955c2df0e88096 Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Tue, 3 May 2016 16:18:52 -0400 Subject: [PATCH] PersonIdent: Make appendSanitized public Change-Id: I337c90fff3c013819a42a7622ac6bacc72828c07 --- .../tst/org/eclipse/jgit/lib/T0001_PersonIdentTest.java | 7 +++++++ org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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