Skip to content

Allow use of public fields for getting/setting values #26

Closed
@stephanenicolas

Description

@stephanenicolas

If Jackson JR is designed for Android, it should be using fields. Getters and setters are useless and contribute to reach the dex limit of 65k methods. (Multidex is slow...)

If there was one thing to make mandatory, it would be to use public fields for pojos more than getters and setters.

I know you might be bugged by the problem to access private stuff. But you could also loosen that constraint, if you require the fields to be non-private, you can achieve a super fast lib. You could even create an annotation processor that generates parsing code, which would get read of any/most reflection. Reflection is also a problem on android that should be addressed by such a lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions