aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm.test
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-09-06 12:26:44 +0200
committerLuca Milanesio <luca.milanesio@gmail.com>2024-11-09 23:19:45 +0000
commite8c414b9cc72cd0e4f8c66b836de4c43f134b102 (patch)
treed5dc293c5dc38b63c9ff8eba11b7c43d85d07d5e /org.eclipse.jgit.pgm.test
parent93ede18ffd17df936da4e8d0ef28e2ba69019c93 (diff)
downloadjgit-e8c414b9cc72cd0e4f8c66b836de4c43f134b102.tar.gz
jgit-e8c414b9cc72cd0e4f8c66b836de4c43f134b102.zip
Replace custom encoder `Constants#encode` by JDK implementation
Using the implementation provided in the JDK since Java 1.6 by `String#getBytes(Charset)` reduces JGit maintenance effort and improves performance. The method Constants#encode was implemented when JGit still used Java 1.5. See [1]. Kudos to Marcin for proposing to use this improvement in RefWriter [2]. I think it should be used generally. [1] https://repo.or.cz/jgit.git?a=commit;h=bfa3da225f198b19061158499b1135aff07d85b3 [2] https://eclipse.gerrithub.io/c/eclipse-jgit/jgit/+/1195180 Also-By: Marcin Czech <maczech@gmail.com> Change-Id: I361ed6286b98351a315b8a8ffc3cb845831d35b2 (cherry picked from commit e5d2898997462e0f2409c09497ab62c6cda2dbaf)
Diffstat (limited to 'org.eclipse.jgit.pgm.test')
0 files changed, 0 insertions, 0 deletions