]> source.dussan.org Git - jgit.git/commit
Don't allow null name or e-mail in PersonIdent 91/8191/1
authorRobin Stocker <robin@nibor.org>
Sat, 13 Oct 2012 16:38:51 +0000 (18:38 +0200)
committerRobin Stocker <robin@nibor.org>
Sat, 13 Oct 2012 16:40:46 +0000 (18:40 +0200)
commit6dadc801bdd8e2715e7351f1279ef3b3d59763cc
tree8ce034f0cb1f45a181e64d3f432a2d0969b0b077
parent14164e040c5b2bb31ba68754516045253be81506
Don't allow null name or e-mail in PersonIdent

toExternalString, equals and hashCode don't expect them to be null, so
explicitly disallow it in the constructor.

Also fix the documentation of setAuthor and setCommitter in
CommitCommand when specifying name and email as separate arguments.

Bug: 352984
Change-Id: I0ac994ae8e47789d38f7c6e6db55d482f0f1bac3
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0001_PersonIdentTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java