Skip to content

Instantly share code, notes, and snippets.

@raykrueger
Created April 14, 2009 19:15
Show Gist options
  • Save raykrueger/95371 to your computer and use it in GitHub Desktop.
Save raykrueger/95371 to your computer and use it in GitHub Desktop.
if (cidrBlock != null) {
............
//eclipse told me to make this function static, so i did...is that the right thing to do?
sqlLabel = dao.getLabel(id, cidrBlock.getIpAddress(), cidrString);
//Above function throws data exception, will that also be caught by the generic Exception e clause below?
if (sqlLabel != null)
{
cidrElement.setAttribute("label", sqlLabel);
logger.debug("Label found:(" + sqlLabel + ")");
}
else{
logger.debug("No Label attribute!");
}
}
else {
//do i need to have anything here?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment