I am trying to make a report of some code enhancement, however, i am not too sure what this item is called. Basically, instead of doing a conn == null
, it does a null == conn
for readability.
Before:
if (conn == null){
if (log.isDebugEnabled()){
log.debug("Failed to get a DB Connection");
}
}
After:
if (null == conn){
if (log.isDebugEnabled()){
log.debug("Failed to get a DB Connection");
}
}