]> source.dussan.org Git - jgit.git/commit
Move repeated LFS Gson handling to common class 76/112976/3
authorDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 6 Dec 2017 15:00:52 +0000 (00:00 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 7 Dec 2017 11:02:59 +0000 (20:02 +0900)
commitb433f2722fd55e43a764e7d56c29bb037d87fa09
treeba4b98034cffbcc7870e5e324d4cc1309c60f318
parentcc3cf93eee8a216852179e05330b6c092751ae00
Move repeated LFS Gson handling to common class

LfsProtocolServlet and FileLfsServlet both implement the same
setup of the Gson object.

Factor it out to a common class and reuse it.

Change-Id: I5696404fad140cbff1b712ebb04a7e8bba60e4b4
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/internal/LfsGson.java [new file with mode: 0644]