This commit is contained in:
Robert Muir 2015-12-21 12:54:33 -05:00
parent f81b12e327
commit 3ffd1a5219
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ import org.elasticsearch.plugins.Plugin;
import org.elasticsearch.repositories.RepositoriesModule;
// Code
public class HdfsPlugin extends Plugin {
public final class HdfsPlugin extends Plugin {
// initialize some problematic classes with elevated privileges
static {

View File

@ -50,7 +50,7 @@ import org.elasticsearch.repositories.RepositoryName;
import org.elasticsearch.repositories.RepositorySettings;
import org.elasticsearch.repositories.blobstore.BlobStoreRepository;
public class HdfsRepository extends BlobStoreRepository implements FileContextFactory {
public final class HdfsRepository extends BlobStoreRepository implements FileContextFactory {
public final static String TYPE = "hdfs";

View File

@ -28,7 +28,7 @@ import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
class SecurityUtils {
final class SecurityUtils {
static <V> V execute(FileContextFactory fcf, FcCallback<V> callback) throws IOException {
return execute(fcf.getFileContext(), callback);