1 | package com.shma; | |
2 | ||
3 | public class FizzBuzz { | |
4 | public String getResult(int number) { | |
5 |
2
1. getResult : Replaced integer modulus with multiplication → KILLED 2. getResult : negated conditional → KILLED |
if (number % 15 == 0) { |
6 |
1
1. getResult : replaced return value with "" for com/shma/FizzBuzz::getResult → KILLED |
return "FizzBuzz"; |
7 |
2
1. getResult : Replaced integer modulus with multiplication → SURVIVED 2. getResult : negated conditional → SURVIVED |
} else if (number % 3 == 0) { |
8 |
1
1. getResult : replaced return value with "" for com/shma/FizzBuzz::getResult → SURVIVED |
return "Fizz"; |
9 |
2
1. getResult : Replaced integer modulus with multiplication → SURVIVED 2. getResult : negated conditional → SURVIVED |
} else if (number % 5 == 0) { |
10 |
1
1. getResult : replaced return value with "" for com/shma/FizzBuzz::getResult → SURVIVED |
return "Buzz"; |
11 | } | |
12 |
1
1. getResult : replaced return value with "" for com/shma/FizzBuzz::getResult → SURVIVED |
return Integer.toString(number); |
13 | } | |
14 | } | |
Mutations | ||
5 |
1.1 2.2 |
|
6 |
1.1 |
|
7 |
1.1 2.2 |
|
8 |
1.1 |
|
9 |
1.1 2.2 |
|
10 |
1.1 |
|
12 |
1.1 |