A static String method to check for emptiness would be nice.

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.4
    • Component/s: core-libs
    • x86
    • windows_nt



      Name: bk70084 Date: 11/13/97


      public static boolean isEmpty(String s) {
        return (s == null || s.length() == 0) ? true : false;
      }


      // how many times have you done this check?
      if (string == null || string.length() == 0) ...
      (Review ID: 19868)
      ======================================================================

            Assignee:
            Michael Mccloskey (Inactive)
            Reporter:
            Brian Klock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: