make constants final

This commit is contained in:
Xavier Léauté 2014-09-15 12:16:31 -07:00
parent d4795ce927
commit e57e2d97ba
4 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ import java.nio.ByteBuffer;
public class Bucket public class Bucket
{ {
public static int PREAMBLE_BYTES = 16; public static final int PREAMBLE_BYTES = 16;
/** ID for this bucket, unique for this indexer run. Used for grouping and partitioning. */ /** ID for this bucket, unique for this indexer run. Used for grouping and partitioning. */
private final int shardNum; private final int shardNum;

View File

@ -28,7 +28,7 @@ import java.util.List;
public class TaskConfig public class TaskConfig
{ {
public static List<String> DEFAULT_DEFAULT_HADOOP_COORDINATES = ImmutableList.of( public static final List<String> DEFAULT_DEFAULT_HADOOP_COORDINATES = ImmutableList.of(
"org.apache.hadoop:hadoop-client:2.3.0" "org.apache.hadoop:hadoop-client:2.3.0"
); );

View File

@ -36,7 +36,7 @@ import java.util.Map;
*/ */
public abstract class BaseQuery<T> implements Query<T> public abstract class BaseQuery<T> implements Query<T>
{ {
public static String QUERYID = "queryId"; public static final String QUERYID = "queryId";
private final DataSource dataSource; private final DataSource dataSource;
private final Map<String, Object> context; private final Map<String, Object> context;
private final QuerySegmentSpec querySegmentSpec; private final QuerySegmentSpec querySegmentSpec;

View File

@ -27,8 +27,8 @@ import java.util.List;
public class CacheConfig public class CacheConfig
{ {
public static String USE_CACHE = "useCache"; public static final String USE_CACHE = "useCache";
public static String POPULATE_CACHE = "populateCache"; public static final String POPULATE_CACHE = "populateCache";
@JsonProperty @JsonProperty
private boolean useCache = true; private boolean useCache = true;