mirror of
https://github.com/google/nomulus.git
synced 2025-07-04 02:03:24 +02:00
In tests we use a TestPipelineExtension which does some static initialization that should not be repeated the same JVM. In our XXXPipeline classes we save the pipeline as a field and usually write lambdas that are pass to the pipeline. Because lambdas are effectively anonymous inner classes they are bound to their enclosing instances. When they get serialized during pipeline execution, their enclosing classes also do. This might result in undefined behavior when multiple lambdas in the same XXXPipeline are used on the same JVM (such as in tests) where the static initialization may be done multiple times if different class loaders are used. This is very unlikely to happen but as a best practice we still remove them as fields. |
||
---|---|---|
.. | ||
gradle/dependency-locks | ||
src | ||
WEB-INF/appengine-generated | ||
build.gradle | ||
Dockerfile | ||
karma.conf.js |