KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm working on an object, specifically its one function, which looks like this: public class Dog { private ArrayList<Paw> paws; private double age; private Tongue tongue; public Dog(ArrayList<Paw> paws, double age, Tongue tongue) { this.paws = paws; this.age = age; this.tongue = tongue; } public void bark() { // ... about 100 lines of side effects operating // on the object's global members ... } } I really want to fix these side effects and refactor the object into functions that do only one thing. Is there an automated process in Eclipse to mark possible side effects? If not, is there a manual algorithm I can follow so I don't get lost down the rabbit hole?
Tags (comma-separated)
Save Edits
Cancel