Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Throw an UnsupportedOperationException for FileUtils() #125

Open
yashvi2399 opened this issue Nov 27, 2023 · 0 comments
Open

Throw an UnsupportedOperationException for FileUtils() #125

yashvi2399 opened this issue Nov 27, 2023 · 0 comments
Assignees
Labels

Comments

@yashvi2399
Copy link
Collaborator

yashvi2399 commented Nov 27, 2023

Describe the technical debt
An empty method, especially if it lacks comments or clear documentation, might indicate an intentionality issue—it becomes unclear whether the method was intentionally left empty or if it's a placeholder that needs implementation.

Issue screenshot
WhatsApp Image 2023-11-28 at 4 47 38 AM

Proposed solution
Make it a constructor and Throw an exception if this constructor is accidentally called from within the class.

Commit Id
0ada16e

image

@yashvi2399 yashvi2399 self-assigned this Nov 27, 2023
yashvi2399 added a commit that referenced this issue Nov 27, 2023
@yashvi2399 yashvi2399 changed the title Use Logger instead of System.out Throw an UnsupportedOperationException for FileUtils() Nov 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant