Add some finals where appropriate

This commit is contained in:
Simon Willnauer 2014-05-16 15:57:42 +02:00
parent c561900512
commit d65e9e9bea
3 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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 {