final
This commit is contained in:
parent
f81b12e327
commit
3ffd1a5219
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue