Add more missed final keywords in BootstrapChecks

This commit is contained in:
Jason Tedor 2016-03-02 10:00:44 -05:00
parent 0c914b51c7
commit 99aa4942d2
1 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ final class BootstrapCheck {
static void check(final boolean enforceLimits, final List<Check> checks) { static void check(final boolean enforceLimits, final List<Check> checks) {
final ESLogger logger = Loggers.getLogger(BootstrapCheck.class); final ESLogger logger = Loggers.getLogger(BootstrapCheck.class);
for (Check check : checks) { for (final Check check : checks) {
final boolean fail = check.check(); final boolean fail = check.check();
if (fail) { if (fail) {
if (enforceLimits) { if (enforceLimits) {
@ -115,8 +115,8 @@ final class BootstrapCheck {
// the list of checks to execute // the list of checks to execute
private static List<Check> checks(final Settings settings) { private static List<Check> checks(final Settings settings) {
List<Check> checks = new ArrayList<>(); final List<Check> checks = new ArrayList<>();
FileDescriptorCheck fileDescriptorCheck final FileDescriptorCheck fileDescriptorCheck
= Constants.MAC_OS_X ? new OsXFileDescriptorCheck() : new FileDescriptorCheck(); = Constants.MAC_OS_X ? new OsXFileDescriptorCheck() : new FileDescriptorCheck();
checks.add(fileDescriptorCheck); checks.add(fileDescriptorCheck);
checks.add(new MlockallCheck(BootstrapSettings.MLOCKALL_SETTING.get(settings))); checks.add(new MlockallCheck(BootstrapSettings.MLOCKALL_SETTING.get(settings)));