Fennec/NativeUI/CodingStyle: Difference between revisions

Jump to navigation Jump to search
→‎Closing resources: fix finally block
(→‎Timing things: Google recommends using SystemClock.uptimeMillis())
(→‎Closing resources: fix finally block)
Line 52: Line 52:
     log(sse);
     log(sse);
  } finally {
  } finally {
     if (c != null) {
     try {
         c.close();
         c.close();
    } catch (Exception e) {
        // this handles/ignores NullPointerExceptions in case c was never assigned
        // and also anything else c.close() might throw (e.g. IOException)
     }
     }
  }
  }
Confirmed users
586

edits

Navigation menu