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