Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created January 22, 2014 23:42

Revisions

  1. andrewpthorp renamed this gist Jan 22, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt → lurkfest.java
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    private static String className(Class<?> clazz) {
    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
    @@ -8,4 +8,4 @@ private static String className(Class<?> clazz) {
    } else {
    return className;
    }
    }
    }
  2. andrewpthorp created this gist Jan 22, 2014.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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;
    }
    }