Skip to content

Commit 28605e4

Browse files
committed
Minor, removed commented code
1 parent ea4d8d4 commit 28605e4

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

logstash-core/lib/logstash/settings.rb

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)