square / javapoet

A Java API for generating .java source files.
Apache License 2.0
10.81k stars 1.37k forks source link

Refactoring #971

Closed AlexanderStocks closed 1 year ago

AlexanderStocks commented 1 year ago

Description:

As a part of my dissertation work, I've implemented a series of automated refactorings and formatting to improve the overall code quality of this repository:

Reformat: By adhering to Google's Java Code Style guidelines, I've reformatted 37 files. This step aims to enhance code readability and ensure consistency with widely accepted programming style standards.

CollapseNestedIfStatements: I have executed the CollapseNestedIfStatements refactoring on 2 files. This refactoring effort is aimed at simplifying the logic of the code and making it more readable.

RemoveDuplication: I have executed the RemoveDuplication refactoring on 2 file, aiming to streamline the codebase by eliminating redundant code blocks.

These changes were all performed with the aid of the Refactoring Janitor tool.

Request for Feedback:

As this effort is part of my dissertation project, your input and feedback on the changes I've made are greatly appreciated. Your insights will significantly contribute to my research and learning process.

JakeWharton commented 1 year ago

Please see https://github.com/square/retrofit/pull/3905#issuecomment-1566159367