Skip to content

Instantly share code, notes, and snippets.

@mtnygard
Created March 31, 2010 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtnygard/350825 to your computer and use it in GitHub Desktop.
Save mtnygard/350825 to your computer and use it in GitHub Desktop.
public class XxxxxManager extends GenericService {
private static final String NO = "N";
private static final String YES = "Y";
private static final String TRUESTR = "true";
private static final String FALSESTR = "false";
...
if (availableCode != null && availableCode.equals(NO)) {
resultHash.put(id, Boolean.valueOf(FALSESTR));
} else {
resultHash.put(id, Boolean.valueOf(TRUESTR));
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment