]> source.dussan.org Git - jgit.git/commit
PushCertificateParser: Fix check for blank line after header 92/43492/1
authorShawn Pearce <spearce@spearce.org>
Tue, 10 Mar 2015 00:30:08 +0000 (17:30 -0700)
committerShawn Pearce <spearce@spearce.org>
Tue, 10 Mar 2015 00:30:08 +0000 (17:30 -0700)
commitce3997344ecb564f2af95fd366303e2c9d70143d
tree25f8f00a623b2e984dc59303ceb0a345966a5d9c
parent8cf14cfdadd4e9886b13bcf2b0685ca6006d1d80
PushCertificateParser: Fix check for blank line after header

Reference equality (!= or ==) cannot be used to check for
String equality. String objects are not necessarily interned
to the same instance.

Use .isEmpty() since the function only cares about an empty
string and does not need to test a specific string value.

Change-Id: If530cb59666a8196d57d2348c893706a517ea541
org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificateParser.java