1.1 --- a/samples/deadlock/test/org/apidesign/javamonitorflaws/MultiplyCache.java Wed Feb 11 07:12:41 2009 +0100
1.2 +++ b/samples/deadlock/test/org/apidesign/javamonitorflaws/MultiplyCache.java Wed Feb 11 08:52:00 2009 +0100
1.3 @@ -8,6 +8,7 @@
1.4 *
1.5 * @author Jaroslav Tulach <jtulach@netbeans.org>
1.6 */
1.7 +// BEGIN: monitor.pitfalls.subclass
1.8 public class MultiplyCache extends Cache<String,Integer> {
1.9 private PropertyChangeSupport pcs;
1.10 private int multiply;
1.11 @@ -38,6 +39,7 @@
1.12 protected Integer createItem(String f) {
1.13 return f.length() * getMultiply();
1.14 }
1.15 +}
1.16 +// END: monitor.pitfalls.subclass
1.17
1.18
1.19 -}
1.20 \ No newline at end of file