Safely increment the reference counter. Returns false when the object is shutting down (no change to the reference counter in this case).
()
| 48 | * this case). |
| 49 | */ |
| 50 | public synchronized boolean increment() { |
| 51 | if (shutdown) |
| 52 | return false; |
| 53 | |
| 54 | ++count; |
| 55 | return true; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Safely increment the reference counter. Returns false when the |
no outgoing calls
no test coverage detected