File tree Expand file tree Collapse file tree 1 file changed +2
-27
lines changed
avro/src/main/java/com/fasterxml/jackson/dataformat/avro/apacheimpl Expand file tree Collapse file tree 1 file changed +2
-27
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import org .apache .avro .io .*;
7
7
8
- import com .fasterxml .jackson .core .JsonProcessingException ;
9
-
10
8
/**
11
9
* Simple helper class that contains extracted functionality for
12
10
* simple encoder/decoder recycling.
@@ -30,11 +28,11 @@ private ApacheCodecRecycler() { }
30
28
*/
31
29
32
30
public static BinaryDecoder acquireDecoder () {
33
- return _recycler ().claimDecoder ( );
31
+ return _recycler ().decoderRef . getAndSet ( null );
34
32
}
35
33
36
34
public static BinaryEncoder acquireEncoder () {
37
- return _recycler ().claimEncoder ( );
35
+ return _recycler ().encoderRef . getAndSet ( null );
38
36
}
39
37
40
38
public static void release (BinaryDecoder dec ) {
@@ -61,27 +59,4 @@ private static ApacheCodecRecycler _recycler() {
61
59
}
62
60
return r ;
63
61
}
64
-
65
- private BinaryDecoder claimDecoder () {
66
- return decoderRef .getAndSet (null );
67
- }
68
-
69
- private BinaryEncoder claimEncoder () {
70
- return encoderRef .getAndSet (null );
71
- }
72
-
73
- /*
74
- /**********************************************************
75
- /* Helper class
76
- /**********************************************************
77
- */
78
-
79
- public static class BadSchemaException extends JsonProcessingException
80
- {
81
- private static final long serialVersionUID = 1L ;
82
-
83
- public BadSchemaException (String msg , Throwable src ) {
84
- super (msg , src );
85
- }
86
- }
87
62
}
You can’t perform that action at this time.
0 commit comments