Make static fields in GpgKeys and PreviewSubmit final
Change-Id: Ifaf144224aeeb4339db4e445ab5bf458f89bb151 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -63,7 +63,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
public class GpgKeys implements ChildCollection<AccountResource, GpgKey> {
|
public class GpgKeys implements ChildCollection<AccountResource, GpgKey> {
|
||||||
private static final Logger log = LoggerFactory.getLogger(GpgKeys.class);
|
private static final Logger log = LoggerFactory.getLogger(GpgKeys.class);
|
||||||
|
|
||||||
public static String MIME_TYPE = "application/pgp-keys";
|
public static final String MIME_TYPE = "application/pgp-keys";
|
||||||
|
|
||||||
private final DynamicMap<RestView<GpgKey>> views;
|
private final DynamicMap<RestView<GpgKey>> views;
|
||||||
private final Provider<ReviewDb> db;
|
private final Provider<ReviewDb> db;
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ import org.kohsuke.args4j.Option;
|
|||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
public class PreviewSubmit implements RestReadView<RevisionResource> {
|
public class PreviewSubmit implements RestReadView<RevisionResource> {
|
||||||
private static int MAX_DEFAULT_BUNDLE_SIZE = 100 * 1024 * 1024;
|
private static final int MAX_DEFAULT_BUNDLE_SIZE = 100 * 1024 * 1024;
|
||||||
|
|
||||||
private final Provider<ReviewDb> dbProvider;
|
private final Provider<ReviewDb> dbProvider;
|
||||||
private final Provider<MergeOp> mergeOpProvider;
|
private final Provider<MergeOp> mergeOpProvider;
|
||||||
|
|||||||
Reference in New Issue
Block a user