Archive
Product
-
The code contains classes that overload equals(Object)
βequalsβ as a method name should be used exclusively to override Object.equals(Object) to prevent any confusion. It is tempting to overload the method to…
-
Avoid equality in loop termination condition
Testing for loop termination using an equality operator (== and !=) is dangerous, because it could set up an infinite loop. Using a broader…
-
Avoid variable assignments in conditional expressions
This pattern verifies the presence of variable assignments in conditional (IF) expressions. It is generally not recommended to use the assignment operator in this…
-
The code contains too many negative comparisons
This pattern verifies the presence in source code of negative comparisons. Depending on the frequency, CAST Highlight will trigger this code insight.
-

Feature Focus: Multi-Cloud Insights
CAST Highlight detects the use of vendor-specific PaaS services that could prevent or hinder an application from being deployed across multiple cloud platforms. This…
-

Release Notes β CAST Highlight June 2021
Weβre very proud to announce the next major release of CAST Highlight, the Software Intelligence solution for performing rapid application portfolio analysis. This version…
-

Feature Focus: Portfolio Advisor for Technical Debt
We recently enhanced the Technical Debt calculation in CAST Highlight which has enabled new possibilities to visualize and analyze the Technical Debt of an…
-
Avoid using ellipsis in functions
Functions should not be defined with a variable number of arguments. Varargs methods are a convenient way to define methods that require a variable…
-
The code contains use of getClass().getName()
It could be necessary to check whether a given object has a specific class type or whether two objects have the same class type…
-
Avoid unconditional jump statement
Having an unconditional break, return or throw in a loop renders it useless; the loop will only execute once and the loop structure itself…