File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
logstash-core/lib/logstash Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -523,33 +523,11 @@ def validate(value)
523523 @validator_class . validate ( value )
524524 end
525525 end
526-
527-
526+
528527 java_import org . logstash . settings . StringSetting
529528
530- # class String < Setting
531- # def initialize(name, default = nil, strict = true, possible_strings = [])
532- # @possible_strings = possible_strings
533- # super(name, ::String, default, strict)
534- # end
535- #
536- # def validate(value)
537- # super(value)
538- # unless @possible_strings.empty? || @possible_strings.include?(value)
539- # raise ArgumentError.new("Invalid value \"#{name}: #{value}\". Options are: #{@possible_strings.inspect}")
540- # end
541- # end
542- # end
543-
544529 java_import org . logstash . settings . NullableString
545530
546- # class NullableString < String
547- # def validate(value)
548- # return if value.nil?
549- # super(value)
550- # end
551- # end
552-
553531 class Password < Coercible
554532 def initialize ( name , default = nil , strict = true )
555533 super ( name , LogStash ::Util ::Password , default , strict )
You can’t perform that action at this time.
0 commit comments