stainlessai / micronaut-jupyter

A Micronaut configuration that integrates your app with an existing Jupyter installation.
https://stainlessai.github.io/micronaut-jupyter
Apache License 2.0
9 stars 5 forks source link

Use Groovy's Property Access #31

Closed osscontributor closed 4 years ago

osscontributor commented 4 years ago

In Groovy when you define a property like ApplicationContext applicationContext (as opposed to private ApplicationContext applicationContext), that results in a private field being created and corresponding public getter and setter methods that do just what these methods do. These getters and setters can be eliminated from the source code and they will still be in the generated bytecode.