Skip to content

ReplaceWithImpl does not work on static methods annotated with @Bean #10

@ksaua

Description

@ksaua
@Configuration
public class AConfigurationClass {
  @Bean
  public static Clock clock() {
     return Clock.systemUTC();
  }
}
@ReplaceWithImp(value=Clock.class, with=ModifiedClock.class)

does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions