-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix string interpolation cache api and related specs #4325
Conversation
|
||
# clear the global compiled templates cache | ||
def clear_cache | ||
Java::ComLogstash::StringInterpolation.get_instance.clear_cache; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style question - any reason you chose this syntax instead of com.logstash.StringInterpolation
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is the preferred way of referencing Java classes, the other notations AFAIU is only for top level Java packages java, javax, org, and com per https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby#referencing-java-classes-using-full-qualified-class-name
I only have style concerns. LGTM. The style points I commented on can be resolved at a later date - I have no preference. Merging. :) |
perfect, thanks! |
this also need to be merged into 2.x, will do |
cache_size
andclear_cache
methods to StringInterpolationFixes #4249 and relates to #4191 and #4229