imagen icon indicating copy to clipboard operation
imagen copied to clipboard

Modernize the code base with Vector, Generics and Concurrency

Open aaime opened this issue 7 months ago • 1 comments

ImageN is written against Java 5 constructs, we need to modernize it. For example:

  • [ ] Use List instead of Vector, Map instead of Hashtable, and so on

  • [ ] Introduce generics

  • [ ] Heavy use of synchronized instead of Java concurrent constructs

    • [ ] ConcurrentOperatorRegistry for replacement strategy as a replacement for ThreadSafeOperationRegistry using home grown lock primitives that should be also removed

Consider: OpenRewrite Java migrations to perform this job (careful about the downstream migration scripts though!). Or IntelliJ ones, too. To be done after we have code coverage.

aaime avatar May 21 '25 14:05 aaime

Meeting discussion update:

  • A lot of use of Vector due to to use of JDK ParamterBlock, it is not performance senstive code and and thus is more ugly than impactful.

    ParameterBlock.html (javadoc)

jodygarnett avatar Sep 18 '25 18:09 jodygarnett