()
| 53 | } |
| 54 | |
| 55 | public int activeCount() { |
| 56 | int allCount = Thread.activeCount(); |
| 57 | Thread[] all = new Thread[allCount]; |
| 58 | allCount = Thread.enumerate(all); |
| 59 | |
| 60 | int count = 0; |
| 61 | for (int i = 0; i < allCount; ++i) { |
| 62 | if (parentOf(all[i].getThreadGroup())) { |
| 63 | ++ count; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | return count; |
| 68 | } |
| 69 | |
| 70 | public int enumerate(Thread[] threads) { |
| 71 | return enumerate(threads, true); |
nothing calls this directly
no test coverage detected