|
1
|
|
package com.reallifedeveloper.maven.jdepend.xml; |
|
2
|
|
|
|
3
|
|
import org.checkerframework.checker.nullness.qual.NonNull; |
|
4
|
|
import org.checkerframework.checker.nullness.qual.Nullable; |
|
5
|
|
|
|
6
|
|
import jakarta.xml.bind.annotation.adapters.XmlAdapter; |
|
7
|
|
|
|
8
|
|
/** |
|
9
|
|
* An {@code XmlAdapter} that removes leading and trailing space from all strings. |
|
10
|
|
* |
|
11
|
|
* @author RealLifeDeveloper |
|
12
|
|
*/ |
|
13
|
|
public class StringTrimmingXmlAdapter extends XmlAdapter<String, String> { |
|
14
|
|
|
|
15
|
|
@Override |
|
16
|
|
public @NonNull String unmarshal(@Nullable String v) { |
|
17
|
2
1. unmarshal : replaced return value with "" for com/reallifedeveloper/maven/jdepend/xml/StringTrimmingXmlAdapter::unmarshal → KILLED
2. unmarshal : negated conditional → KILLED
|
return v == null ? "" : v.trim(); |
|
18
|
|
} |
|
19
|
|
|
|
20
|
|
@Override |
|
21
|
|
public @NonNull String marshal(@Nullable String v) { |
|
22
|
2
1. marshal : replaced return value with "" for com/reallifedeveloper/maven/jdepend/xml/StringTrimmingXmlAdapter::marshal → KILLED
2. marshal : negated conditional → KILLED
|
return v == null ? "" : v.trim(); |
|
23
|
|
} |
|
24
|
|
|
|
25
|
|
} |
| | Mutations |
| 17 |
|
1.1 Location : unmarshal Killed by : com.reallifedeveloper.maven.jdepend.xml.StringTrimmingXmlAdapterTest.[engine:junit-jupiter]/[class:com.reallifedeveloper.maven.jdepend.xml.StringTrimmingXmlAdapterTest]/[method:unmarshalRemovesWhitespaceFromString()] replaced return value with "" for com/reallifedeveloper/maven/jdepend/xml/StringTrimmingXmlAdapter::unmarshal → KILLED
2.2 Location : unmarshal Killed by : com.reallifedeveloper.maven.jdepend.xml.StringTrimmingXmlAdapterTest.[engine:junit-jupiter]/[class:com.reallifedeveloper.maven.jdepend.xml.StringTrimmingXmlAdapterTest]/[method:unmarshalCanHandleNullValues()] negated conditional → KILLED
|
| 22 |
|
1.1 Location : marshal Killed by : com.reallifedeveloper.maven.jdepend.xml.StringTrimmingXmlAdapterTest.[engine:junit-jupiter]/[class:com.reallifedeveloper.maven.jdepend.xml.StringTrimmingXmlAdapterTest]/[method:marshalRemovesWhitespaceFromString()] replaced return value with "" for com/reallifedeveloper/maven/jdepend/xml/StringTrimmingXmlAdapter::marshal → KILLED
2.2 Location : marshal Killed by : com.reallifedeveloper.maven.jdepend.xml.StringTrimmingXmlAdapterTest.[engine:junit-jupiter]/[class:com.reallifedeveloper.maven.jdepend.xml.StringTrimmingXmlAdapterTest]/[method:marshalCanHandleNullValues()] negated conditional → KILLED
|