1 | // Passenger.java | |
2 | package tpcalc; | |
3 | public class Passenger { | |
4 | ||
5 | private int age; | |
6 | ||
7 | public Passenger(int age) { | |
8 | this.age = age; | |
9 | } | |
10 | ||
11 | public int getAge() { | |
12 |
1
1. getAge : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED |
return age; |
13 | } | |
14 | ||
15 | public void setAge(int age) { | |
16 | this.age = age; | |
17 | } | |
18 | ||
19 | } | |
20 | ||
Mutations | ||
12 |
1.1 |