Skip to content

module desription file [ module-info.java ] can not be formatted? #274

Open
@vilinian

Description

@vilinian

I have a project that contains module-info.java, package-info.java, and regular Java source files.
The [Adapter for Eclipse Code Formatter] plugin is unable to format module-info.java,
but other files can be formatted normally.

How can I resolve this issue?

The content of my module-info.java file is as follows:

module pri.jvd.jdk9Module {
    requires org.checkerframework.checker.qual;
    requires org.apache
        .commons.io;             
    requires java.management;          
                
    requires jdk.random;          
    requires jdk.httpserver;           
    requires org.eclipse
        .collections.impl;
}

As shown above, some lines have extra spaces at the end of the line, and some lines contain incorrect line breaks.
When I execute the formatting, it does not format correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions