Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created January 22, 2014 23:42
Show Gist options
  • Save andrewpthorp/8569899 to your computer and use it in GitHub Desktop.
Save andrewpthorp/8569899 to your computer and use it in GitHub Desktop.
private static String className(Class<?> clazz) {
String className = clazz.getSimpleName().toLowerCase().replace("$", " ");
// TODO: Delurk this, with invoiceitem being a valid url, we can't get too
// fancy yet.
if (className.equals("applicationfee")) {
return "application_fee";
} else {
return className;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment