ome / ome-model

OME model (specification, code generator, implementation)
Other
13 stars 26 forks source link

Static analysis code remediation: xsd-fu Java templates #135

Closed rleigh-codelibre closed 1 year ago

rleigh-codelibre commented 3 years ago

Following static analysis of the ome-model source tree, the following remediation of the xsd-fu Java templates has been performed:

OME Model Object template:

OME Model Enums and Handlers templates:

OME Model Object and Enums templates:

MetadataStore and MetadataRetrieve class templates:

Total static analysis warnings fixed: 9042 (12303 before, 3261 after)

Testing:

The refactoring should not result in any behavioural changes. All unit tests and integration tests should continue to pass. There should be no compatibility changes for downstream consumers.

Generated source changes may be downloaded from here or you can generate the diff yourself.

Review of the changes is here.

If you would prefer to review these changes in a more fine-grained way, it can be split out into multiple PRs without any trouble. None of the commits depend upon each other, so can be freely cherry-picked.

imagesc-bot commented 3 years ago

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/static-analysis-and-ome-model-bugfixes/45977/1