| 1 | package org.sanmibuh.tedee.lock.domain.vo; | |
| 2 | ||
| 3 | import org.sanmibuh.ddd.domain.AggregateRootId; | |
| 4 | import org.sanmibuh.tedee.lock.domain.exception.InvalidLockIdException; | |
| 5 | ||
| 6 | public record LockId(Integer value) implements AggregateRootId<Integer> { | |
| 7 | ||
| 8 | public LockId { | |
| 9 |
2
1. <init> : changed conditional boundary → KILLED 2. <init> : negated conditional → KILLED |
if (value <= 0) { |
| 10 | throw new InvalidLockIdException(value); | |
| 11 | } | |
| 12 | } | |
| 13 | } | |
Mutations | ||
| 9 |
1.1 2.2 |