Add some finals where appropriate
This commit is contained in:
parent
c561900512
commit
d65e9e9bea
|
@ -92,7 +92,7 @@ public class ClusterState implements ToXContent {
|
|||
}
|
||||
}
|
||||
|
||||
public static Map<String, Custom.Factory> customFactories = new HashMap<>();
|
||||
private final static Map<String, Custom.Factory> customFactories = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Register a custom index meta data factory. Make sure to call it from a static block.
|
||||
|
|
|
@ -41,7 +41,7 @@ import org.elasticsearch.indices.fielddata.breaker.CircuitBreakerService;
|
|||
public interface IndexFieldData<FD extends AtomicFieldData> extends IndexComponent {
|
||||
|
||||
public static class CommonSettings {
|
||||
public static String SETTING_MEMORY_STORAGE_HINT = "memory_storage_hint";
|
||||
public static final String SETTING_MEMORY_STORAGE_HINT = "memory_storage_hint";
|
||||
|
||||
public enum MemoryStorageFormat {
|
||||
ORDINALS, PACKED, PAGED;
|
||||
|
|
|
@ -31,7 +31,7 @@ import java.io.IOException;
|
|||
*/
|
||||
public abstract class BucketCollector implements ReaderContextAware {
|
||||
|
||||
public static BucketCollector NO_OP_COLLECTOR = new BucketCollector() {
|
||||
public final static BucketCollector NO_OP_COLLECTOR = new BucketCollector() {
|
||||
|
||||
@Override
|
||||
public void collect(int docId, long bucketOrdinal) throws IOException {
|
||||
|
|
Loading…
Reference in New Issue