1 | package net.bmahe.genetics4j.gp.spec.chromosome; | |
2 | ||
3 | import org.immutables.value.Value; | |
4 | ||
5 | import net.bmahe.genetics4j.core.spec.chromosome.ChromosomeSpec; | |
6 | import net.bmahe.genetics4j.gp.program.Program; | |
7 | ||
8 | @Value.Immutable | |
9 | public abstract class ProgramTreeChromosomeSpec implements ChromosomeSpec { | |
10 | ||
11 | @Value.Parameter | |
12 | public abstract Program program(); | |
13 | ||
14 | public static ProgramTreeChromosomeSpec of(final Program program) { | |
15 |
2
1. of : replaced return value with null for net/bmahe/genetics4j/gp/spec/chromosome/ProgramTreeChromosomeSpec::of → KILLED 2. of : removed call to net/bmahe/genetics4j/gp/spec/chromosome/ImmutableProgramTreeChromosomeSpec::of → KILLED |
return ImmutableProgramTreeChromosomeSpec.of(program); |
16 | } | |
17 | } | |
Mutations | ||
15 |
1.1 2.2 |