|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
BooleanConverter.java | - | 100% | 100% | 100% |
|
1 |
package com.thoughtworks.xstream.converters.basic;
|
|
2 |
|
|
3 |
public class BooleanConverter extends AbstractBasicConverter { |
|
4 |
|
|
5 | 124 |
public boolean canConvert(Class type) { |
6 | 124 |
return type.equals(boolean.class) || type.equals(Boolean.class); |
7 |
} |
|
8 |
|
|
9 | 3 |
protected Object fromString(String str) {
|
10 | 3 |
return str.equals("true") ? Boolean.TRUE : Boolean.FALSE; |
11 |
} |
|
12 |
|
|
13 |
} |
|
14 |
|
|