Format Java files with google-java-format

Change-Id: I167622fbc0a83278edcf593a4db9e5a0ebe6e667
This commit is contained in:
David Pursehouse 2017-02-22 10:47:35 +09:00
parent c31fdeb346
commit f7fc14f516
3 changed files with 4 additions and 7 deletions

View File

@ -26,8 +26,7 @@ import javax.servlet.Filter;
/** Configures Git access over HTTP with authentication. */
public class GitOverHttpModule extends ServletModule {
private static final String LFS_URL_REGEX =
"^(?:(?!/a/))" + LFS_REST;
private static final String LFS_URL_REGEX = "^(?:(?!/a/))" + LFS_REST;
private final AuthConfig authConfig;
private final DownloadConfig downloadConfig;

View File

@ -53,10 +53,8 @@ public class LfsPluginServlet extends HttpServlet
private static final long serialVersionUID = 1L;
private static final Logger log = LoggerFactory.getLogger(LfsPluginServlet.class);
public static final String LFS_REST =
"(?:/p/|/)(.+)(?:/info/lfs/objects/batch)$";
public static final String URL_REGEX =
"^(?:/a)?" + LFS_REST;
public static final String LFS_REST = "(?:/p/|/)(.+)(?:/info/lfs/objects/batch)$";
public static final String URL_REGEX = "^(?:/a)?" + LFS_REST;
private static final String CONTENTTYPE_VND_GIT_LFS_JSON =
"application/vnd.git-lfs+json; charset=utf-8";