[midPoint-git] [Evolveum/midpoint] 59820b: Make local node object immutable and non-null

mederly noreply at github.com
Fri Mar 25 11:12:43 CET 2022


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 59820bc341139df54566ea58c97ae706a319c2c4
      https://github.com/Evolveum/midpoint/commit/59820bc341139df54566ea58c97ae706a319c2c4
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-03-25 (Fri, 25 Mar 2022)

  Changed paths:
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/misc/TestMisc.java
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java
    M repo/task-api/src/main/java/com/evolveum/midpoint/task/api/TaskManager.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/LightweightIdentifierGeneratorImpl.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/LocalNodeState.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskManagerQuartzImpl.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/UpAndDown.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/cluster/ClusterExecutionHelperImpl.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/cluster/ClusterManager.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/cluster/NodeRegistrar.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/execution/LocalExecutionManager.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/tracing/TracingOutputCreator.java

  Log Message:
  -----------
  Make local node object immutable and non-null

Here we ensure thread-safety of cached local NodeType object (in task
manager) by making it immutable.

We also clarify related getter methods in TaskManager by annotating
them as @NotNull.

This resolves MID-6324.




More information about the midPoint-svn mailing list