标签: java coding-style readability
假设我有下一个代码块:
if (active) { return entity; } else { throw new BusinessException("the entity is expired"); // or here can be other return }
else子句在这种情况下是否提高了代码可读性?或者它是否污染了代码?
else