Refactoring code may lead to more faults, study finds.
Refactoring is a common way to improve software quality by fixing code issues. A study looked at 29 types of refactoring in 33 Java projects and found that some types are used more often. Surprisingly, refactorings usually don't fix code smells, which goes against what was previously thought. Also, code changes with refactoring are more likely to introduce faults.