karouani / javasimon

Automatically exported from code.google.com/p/javasimon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Split creation changes, StopwatchTemplate never returns null #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Starting with 3.4 there are following changes in the Split interface:
- default constructor is made private (anonymous Split)
- anonymous Split can be created by a factory method start()
- disabled anonymous Split can be obtained by Split.DISABLED

Disabled split does literally nothing, it is an anolog to disabled Simon and 
may be better option to null value.

StopwatchTemplate.start was modified, so it returns DISABLED split instead of 
null. SimonServletFilter was modified accordingly.

Original issue reported on code.google.com by virgo47 on 30 Apr 2013 at 8:31