Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

extract class refactoring.#167

Open
Vivek504 wants to merge 1 commit intoapache:trunk from
Vivek504:extract-class-refactoring
Open

extract class refactoring. #167
Vivek504 wants to merge 1 commit intoapache:trunk from
Vivek504:extract-class-refactoring

Conversation

@Vivek504
Copy link

@Vivek504 Vivek504 commented Nov 18, 2023

Extract Class Refactoring

Location of the class: org.apache.pdfbox.examples.pdmodel.CreatePatternsPDF

Reason: Imperative Abstraction - The tool detected the smell in this class because it looks like that an operation is turned into a class. This class contains only the following public method: main

Logic of the refactoring: New class (PatternDrawer) is created to refactor the code and refactored code separates the responsibilities of two classes (CreatePatternsPDF and PatternDrawer).

Copy link
Contributor

This is an example class. There is no need to refactor it and create an additional class.

Copy link
Author

Thanks for your quick feedback. I'll try to contribute if there is a need of refactoring any other class instead of Example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /