]> source.dussan.org Git - jgit.git/commit
[errorprone] BaseRepositoryBuilder: Use #split(sep, limit) 75/1203475/1
authorIvan Frade <ifrade@google.com>
Thu, 31 Oct 2024 19:50:00 +0000 (12:50 -0700)
committerIvan Frade <ifrade@google.com>
Fri, 1 Nov 2024 22:42:01 +0000 (15:42 -0700)
commitfacddaccf591c3f3da9384269e1b592ca179a794
treea9bf4280e178e1b7a958ec879487e9e29d533241
parent562d825f26134ee3db30c1791e918fa8c32095f1
[errorprone] BaseRepositoryBuilder: Use #split(sep, limit)

String.split(String) and Pattern.split(CharSequence) have surprising
behaviour [1].

We use one of the recommended replacements: #split(sep, limit).

[1] https://errorprone.info/bugpattern/StringSplitter

Change-Id: Ie1cf7590bd8660d21c79c5c3c1bc2765e5d9462b
org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java