I want to reduce cyclomatic complexity of my switch case my code is :
public String getCalenderName() { switch (type) { case COUNTRY: r
You can remove all the null comparisons and check it prior to switch case. In that case complexity will reduce by 4 or may be more.