|
|||||||||||||||||||
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 | |||||||||||||||
CharConverter.java | - | 100% | 100% | 100% |
|
1 |
package com.thoughtworks.xstream.converters.basic;
|
|
2 |
|
|
3 |
public class CharConverter extends AbstractBasicConverter { |
|
4 |
|
|
5 | 116 |
public boolean canConvert(Class type) { |
6 | 116 |
return type.equals(char.class) || type.equals(Character.class); |
7 |
} |
|
8 |
|
|
9 | 1 |
protected Object fromString(String str) {
|
10 | 1 |
return new Character(str.charAt(0)); |
11 |
} |
|
12 |
|
|
13 |
} |
|
14 |
|
|