From 28605e40dc1dcdd4a1106a348d31637abcc94924 Mon Sep 17 00:00:00 2001 From: andsel Date: Tue, 12 Nov 2024 14:07:50 +0100 Subject: [PATCH] Minor, removed commented code --- logstash-core/lib/logstash/settings.rb | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/logstash-core/lib/logstash/settings.rb b/logstash-core/lib/logstash/settings.rb index 273eda1c0d3..b2613151e6a 100644 --- a/logstash-core/lib/logstash/settings.rb +++ b/logstash-core/lib/logstash/settings.rb @@ -523,33 +523,11 @@ def validate(value) @validator_class.validate(value) end end - - + java_import org.logstash.settings.StringSetting - # class String < Setting - # def initialize(name, default = nil, strict = true, possible_strings = []) - # @possible_strings = possible_strings - # super(name, ::String, default, strict) - # end - # - # def validate(value) - # super(value) - # unless @possible_strings.empty? || @possible_strings.include?(value) - # raise ArgumentError.new("Invalid value \"#{name}: #{value}\". Options are: #{@possible_strings.inspect}") - # end - # end - # end - java_import org.logstash.settings.NullableString - # class NullableString < String - # def validate(value) - # return if value.nil? - # super(value) - # end - # end - class Password < Coercible def initialize(name, default = nil, strict = true) super(name, LogStash::Util::Password, default, strict)