Created
April 14, 2009 19:15
-
-
Save raykrueger/95371 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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