jgit/org.eclipse.jgit.lfs.test
Thomas Wolf aa052ea099 LFS: make pointer parsing more robust
Parsing an LFS pointer must check the input more to not run into
exceptions. LfsPoint.parseLfsPointer() is used in various places to
determine whether a blob is a LFS pointer; it is not only called with
valid LFS pointers. Tighten the validations and return null if they
fail. All callers already do check for a null return value.

Also, LfsPointer implemented Comparable but did not override equals().
This is rather unusual and actually warned against in the javadoc of
Comparable. Implement equals() and hashCode().

Add more tests.

Bug: 570744
Change-Id: I90ca264d0a250275cf1907e9dcfcee5eab80df0f
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2021-01-31 10:31:10 +01:00
..
.settings Ignore missing javadoc tags in test bundles 2020-11-29 20:16:38 +01:00
META-INF Prepare 5.11.0-SNAPSHOT builds 2020-12-02 15:57:16 +01:00
src/org/eclipse/jgit/lfs/test Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
tst/org/eclipse/jgit/lfs/lib LFS: make pointer parsing more robust 2021-01-31 10:31:10 +01:00
.classpath Configure classpath for separate test sources in Eclipse 2018-10-17 11:08:24 +09:00
.gitignore Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
.project Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
BUILD [bazel] Add missing dependency to slf4j-api 2020-09-01 17:51:45 +02:00
build.properties Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
plugin.properties Fix bundle localization of Apache SSH bundle 2019-06-21 17:54:06 +02:00
pom.xml Prepare 5.11.0-SNAPSHOT builds 2020-12-02 15:57:16 +01:00