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