Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Prevent object instantiation on deserialization #2

Description

@BastiOfBerlin

Before instantiating new objects on deserialization, check whether there is already an object and reuse it.

  • Plain objects: simply reuse
  • Collections: clear() and add all elements (instantiations needed)
  • Array: nullify all elements with index i, i > field.getElements()
  • String: reuse impossible?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions