| 1 | package com.rox.debug.breakpoints; | |
| 2 | ||
| 3 | /** Which CPU accesses a watchpoint catches. */ | |
| 4 | public enum WatchKind { | |
| 5 | READ(true, false), | |
| 6 | WRITE(false, true), | |
| 7 | ACCESS(true, true); | |
| 8 | ||
| 9 | private final boolean reads; | |
| 10 | private final boolean writes; | |
| 11 | ||
| 12 | WatchKind(final boolean reads, final boolean writes){ | |
| 13 | this.reads = reads; | |
| 14 | this.writes = writes; | |
| 15 | } | |
| 16 | ||
| 17 | public boolean catches(final boolean write){ | |
| 18 |
3
1. catches : replaced boolean return with false for com/rox/debug/breakpoints/WatchKind::catches → KILLED 2. catches : replaced boolean return with true for com/rox/debug/breakpoints/WatchKind::catches → KILLED 3. catches : negated conditional → KILLED |
return write ? writes : reads; |
| 19 | } | |
| 20 | } | |
Mutations | ||
| 18 |
1.1 2.2 3.3 |