Why you should care
Group use declarations are used to cut verbiosity when importing multiple entities from a common nameplace. These declarations help make it easier to identify multiple imported entities belong to the same module. It helps improve readability, allow for the code to be less complicated and less error prone as well.
Business Impacts
It is recommended to use Grouping declarations as it helps improve readability and code accessibility by reducing complexity, thereby reducing costs and improving agility.
CAST Recommendations
How we detect
This code insight shows that Declarations are centralized within one area of the JSP page’s body and are preferred to be contained in a single < %! … %> JSP declaration block.
About CAST and Highlight’s Code Insights
Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.