LabKey / platform

A set of modules that provide core functionality for LabKey Server
Apache License 2.0
7 stars 7 forks source link

RecordFactory: an ObjectFactory that handles Java records #5825

Closed labkey-adam closed 2 months ago

labkey-adam commented 2 months ago

Rationale

Selector methods can produce beans and simple classes, but can't produce records. RecordFactory enables production of records from Selector and other code paths that use ObjectFactory.getFactory().

Remove ObjectFactory.handleArray() and all implementations. Arrays are lame and this method was called in exactly one place, and that code doesn't even care about arrays.

Clean up some warnings and an NPE waiting to happen.