Skip to content

Commit 41ccca3

Browse files
authored
Remove use of deprecated java import from ruby (#449)
* Remove use of deprecated java `import` from ruby As of jruby-9.3, the use of `import` in ruby file to import java classes has been deprecated, and the use of `java_import` is recommended. Relates: jruby/jruby#6976, jruby/jruby#7143
1 parent e276c56 commit 41ccca3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 6.3.1
2+
- Fix: Removed use of deprecated `import` of java classes in ruby [#449](https://github.com/logstash-plugins/logstash-input-beats/pull/449)
3+
14
## 6.3.0
25
- Added support for TLSv1.3. [#447](https://github.com/logstash-plugins/logstash-input-beats/pull/447)
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.3.0
1+
6.3.1

lib/logstash/inputs/beats/message_listener.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# encoding: utf-8
22
require "thread_safe"
33
require "logstash-input-beats_jars"
4-
import "javax.net.ssl.SSLPeerUnverifiedException"
5-
import "org.logstash.beats.MessageListener"
4+
java_import "javax.net.ssl.SSLPeerUnverifiedException"
5+
java_import "org.logstash.beats.MessageListener"
66

77
module LogStash module Inputs class Beats
88
class MessageListener

0 commit comments

Comments
 (0)