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