Skip to content

Recipe to move classes to their own files #667

Description

@greg-at-moderne

What problem are you trying to solve?

Code readability.

Describe the situation before applying the recipe

Book.java

public class Book {
   public String title;
   public Author author;
}

class Author {
    public String firstName;
    public String lastName;
}

Describe the situation after applying the recipe

Book.java

public class Book {
   public String title;
   public Author author;
}

Author.java

class Author {
    public String firstName;
    public String lastName;
}

Context

Interfaces should be included too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Recipes Wanted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions