Skip to content

Conversation

@delei
Copy link
Member

@delei delei commented Nov 14, 2025

Purpose of the pull request

Close #651

What's changed?

  • Modify the inheritance relationship of the alias class
  • Remove FesodSheetFactory class
  • Modify the comment information of the class

Checklist

  • I have read the Contributor Guide.
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

@delei delei changed the title refactor: rename and deprecate legacy Excel classes refactor: rename and deprecate legacy core classes Nov 14, 2025
@delei delei requested a review from psxjoy November 14, 2025 12:18
* Core classes of the Fesod spreadsheet processor
*/
public class FesodSheet extends FesodSheetFactory {}
public class FesodSheet {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove FesodSheetFactory as that's from factory pattern?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure a single core class. In fact, these two types are not much different and they can also avoid some of the checks and prompts in the IDE.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the core class hierarchy by consolidating FesodSheetFactory into FesodSheet and updating deprecated alias classes to inherit from the new structure. The changes eliminate code duplication by removing the factory class and moving its functionality directly into FesodSheet, while maintaining backward compatibility through deprecated aliases.

Key Changes

  • Removed FesodSheetFactory class entirely and moved all its methods into FesodSheet
  • Updated deprecated alias classes (FastExcelFactory, FastExcel, EasyExcel) to extend FesodSheet instead of FesodSheetFactory
  • Enhanced deprecation documentation with clearer messages and migration guidance

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
FesodSheetFactory.java Removed the entire factory class (333 lines deleted)
FesodSheet.java Changed from a simple alias extending FesodSheetFactory to a standalone class containing all factory methods previously in FesodSheetFactory
FastExcelFactory.java Updated inheritance from FesodSheetFactory to FesodSheet and improved deprecation documentation
FastExcel.java Updated inheritance from FesodSheetFactory to FesodSheet and improved deprecation documentation
EasyExcel.java Updated inheritance from FesodSheetFactory to FesodSheet and improved deprecation documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

/**
* Build excel the write
*
* @return
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing @return description in JavaDoc. The @return tag should include a description of what is returned (e.g., "Excel writer builder").

Suggested change
* @return
* @return Excel writer builder

Copilot uses AI. Check for mistakes.
* @param sheetNo Index of sheet,0 base.
* @param sheetName The name of sheet.
* @param numRows The number of rows to read, the default is all, start with 0.
* @return
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing @return description in JavaDoc. The @return tag should include a description of what is returned (e.g., "Excel sheet reader builder").

Suggested change
* @return
* @return Excel sheet reader builder.

Copilot uses AI. Check for mistakes.
@psxjoy psxjoy added the PR: require-multiple-approvals This pull request requires multiple approvals. label Nov 17, 2025
psxjoy
psxjoy previously approved these changes Nov 17, 2025
Copy link
Member

@psxjoy psxjoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have strong feelings about whether to keep FesodFactory.
Let's hear from the community: if there are no objections within 72 hours, this PR will be merged.

我对于是否保留FesodFactory并没有太多的坚持。
让我们听取一下社区的声音:如果 72 小时内没有人反对。该 PR 将合并。

@delei delei requested a review from psxjoy November 20, 2025 17:33
Copy link
Member

@psxjoy psxjoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No one disagree. Merge

@psxjoy psxjoy merged commit 9cf34bb into apache:main Nov 20, 2025
8 checks passed
@delei delei deleted the core-class branch November 20, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: require-multiple-approvals This pull request requires multiple approvals.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Discuss] Rename the core class

3 participants