20
20
import com .datastax .oss .driver .api .core .type .DataTypes ;
21
21
import com .datastax .oss .driver .api .core .type .codec .TypeCodec ;
22
22
import com .datastax .oss .driver .api .core .type .reflect .GenericType ;
23
- import edu .umd .cs .findbugs .annotations .NonNull ;
24
23
import com .ing .data .cassandra .jdbc .utils .ByteBufferUtil ;
25
24
25
+ import javax .annotation .Nonnull ;
26
26
import java .math .BigDecimal ;
27
27
import java .nio .ByteBuffer ;
28
28
@@ -37,28 +37,28 @@ public class BigintToBigDecimalCodec extends AbstractCodec<BigDecimal> implement
37
37
public BigintToBigDecimalCodec () {
38
38
}
39
39
40
- @ NonNull
40
+ @ Nonnull
41
41
@ Override
42
42
public GenericType <BigDecimal > getJavaType () {
43
43
return GenericType .BIG_DECIMAL ;
44
44
}
45
45
46
- @ NonNull
46
+ @ Nonnull
47
47
@ Override
48
48
public DataType getCqlType () {
49
49
return DataTypes .BIGINT ;
50
50
}
51
51
52
52
@ Override
53
- public ByteBuffer encode (final BigDecimal value , @ NonNull final ProtocolVersion protocolVersion ) {
53
+ public ByteBuffer encode (final BigDecimal value , @ Nonnull final ProtocolVersion protocolVersion ) {
54
54
if (value == null ) {
55
55
return null ;
56
56
}
57
57
return ByteBufferUtil .bytes (value .longValue ());
58
58
}
59
59
60
60
@ Override
61
- public BigDecimal decode (final ByteBuffer bytes , @ NonNull final ProtocolVersion protocolVersion ) {
61
+ public BigDecimal decode (final ByteBuffer bytes , @ Nonnull final ProtocolVersion protocolVersion ) {
62
62
if (bytes == null ) {
63
63
return null ;
64
64
}
@@ -68,12 +68,12 @@ public BigDecimal decode(final ByteBuffer bytes, @NonNull final ProtocolVersion
68
68
}
69
69
70
70
@ Override
71
- BigDecimal parseNonNull (@ NonNull final String value ) {
71
+ BigDecimal parseNonNull (@ Nonnull final String value ) {
72
72
return BigDecimal .valueOf (Long .parseLong (value ));
73
73
}
74
74
75
75
@ Override
76
- String formatNonNull (@ NonNull final BigDecimal value ) {
76
+ String formatNonNull (@ Nonnull final BigDecimal value ) {
77
77
return String .valueOf (value );
78
78
}
79
79
0 commit comments