pdfbox icon indicating copy to clipboard operation
pdfbox copied to clipboard

extract class refactoring.

Open Vivek504 opened this issue 2 years ago • 2 comments

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).

Vivek504 avatar Nov 18 '23 18:11 Vivek504

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

THausherr avatar Nov 18 '23 19:11 THausherr

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

Vivek504 avatar Nov 18 '23 20:11 Vivek504