Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

@NonConfigurationInstance code should be generated before @Bean injection #1660

@dodgex

Description

@dodgex

currently this code is generated:

if (cast == null) {
    cast = CastManager_.getInstance_(this);
}
// nonConfigurationInstance = ...
if (nonConfigurationInstance != null) {
    cast = nonConfigurationInstance.cast;
    ((CastManager_) cast).rebind(this);
}

it would make more sense to change the order as for a fresh activity fields are null (if not otherwise assigned) by default.

// nonConfigurationInstance = ...
if (nonConfigurationInstance != null) {
    cast = nonConfigurationInstance.cast;
    ((CastManager_) cast).rebind(this);
}
if (cast == null) {
    cast = CastManager_.getInstance_(this);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions