Deprecated Code

February 15, 2025 ยท View on GitHub

:unlock: Definition

The term deprecated refers to a functionality that still exists in software whose use is not recommended. A functionality that is deprecated is likely to be removed in the future hence it is not advisable to use it. Deprecated functionalities are usually replaced or updated with newer versions.

Maven Compiler Plugin

You can use maven compiler plugin to allert about deprecation and warnings.

Hands on with Configure maven-compiler-plugin to fail with deprecation and warnings Task at Account Backend Project.

Note that your IDE may also help you with the task of replacing deprecated code.

:construction_worker: Task

Create one pull request for your project according to Task Submission Guidelines.

Configure your project to notify deprecated code.

Fix two deprecated code reported by the tool. Create a separate commit to each duplicated code fixed.