Github user ottobackwards commented on the issue:
https://github.com/apache/commons-lang/pull/311
same with the static factory:
```java
@Test
public void testTryWithResourcesStaticFactory() {
final StopWatch stopWatch = new StopWatch();
try(StackWatch<String,String> watch =
StackWatch.startStackWatch("testStackWatch")) {
stopWatch.start();
stopWatch.stop();
}
watch.visit(new StackWatch.TimingVisitor<String,String>() {
@Override
public void visitTiming(int level, List<String> path,
StackWatch.Timing<String,String> node) {
assertTrue(node.getStopWatch().getNanoTime() >
stopWatch.getNanoTime());
}
});
}
```
---