Skip to content

@Nullable Formatting Causes Checkstyle Failures #440

Closed
@ryanjbaxter

Description

@ryanjbaxter

I upgraded to spring-javaformat 0.44 today and it is causing some checkstyle failures after applying the formatting. It looks like there was a change in the way we deal with org.springframework.lang.Nullable, see #435

@Override
@Nullable
public BeanResolver getBeanResolver() {
    return this.beanFactoryResolver;
}

Now gets transformed to

@Override
@Nullable public BeanResolver getBeanResolver() {
    return this.beanFactoryResolver;
}

And then the Checkstyle check fails with Annotation 'Nullable' should be alone on line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions