Code Refactoring Technique Lab Sheet
Code Refactoring Technique Lab Sheet
Download the Project Hackerthon2015Input in the course web and Refactor the project as
follows.
1) Refactor the Project with adding proper design patterns (Add Template method, Singleton
Design Patterns for the project).
2) Modify project Classes, Methods and all implemented variables according to Java coding
conventions.
3) Remove all unnecessarily created variables and use meaning full variables according to
Java coding conventions.
5) Put all Xpaths, and resource file paths in the configuration file. (Remove all hard coded
paths/Xpaths in the project.)
6) Modify each class with adding class-level, method-level, single-line comments and multi-
line comments.
7) Modify Exception handling hierarchy with catching specific exception and each exception
should be logged.
9) Remove all hard coded Strings and magic numbers with using proper constants.