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