Skip to content

Commit 8f446a7

Browse files
author
Daniel Mikusa
authored
Fixes Rubocop complaints and adds missing method docs (#961)
Signed-off-by: Daniel Mikusa <[email protected]>
1 parent 0ea003c commit 8f446a7

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

lib/java_buildpack/jre/zing_jre.rb

+11-8
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,24 @@ module Jre
2424

2525
# Encapsulates the detect, compile, and release functionality for selecting an Azul Platform Prime JRE.
2626
class ZingJRE < OpenJDKLike
27+
# (see JavaBuildpack::Component::ModularComponent#command)
2728
def command
28-
""
29+
''
2930
end
3031

32+
# (see JavaBuildpack::Component::ModularComponent#sub_components)
3133
def sub_components(context)
32-
[
33-
OpenJDKLikeJre.new(sub_configuration_context(context, 'jre')
34-
.merge(component_name: self.class.to_s.space_case)),
35-
OpenJDKLikeSecurityProviders.new(context)
36-
]
34+
[
35+
OpenJDKLikeJre.new(sub_configuration_context(context, 'jre')
36+
.merge(component_name: self.class.to_s.space_case)),
37+
OpenJDKLikeSecurityProviders.new(context)
38+
]
3739
end
38-
40+
41+
# (see JavaBuildpack::Component::BaseComponent#release)
3942
def release
4043
super
41-
@droplet.add_preformatted_options "-XX:+ExitOnOutOfMemoryError"
44+
@droplet.add_preformatted_options '-XX:+ExitOnOutOfMemoryError'
4245
end
4346
end
4447
end

0 commit comments

Comments
 (0)