|
1 | 1 | package com.fasterxml.jackson.dataformat.csv;
|
2 | 2 |
|
3 |
| -import com.fasterxml.jackson.core.*; |
4 |
| - |
5 | 3 | import com.fasterxml.jackson.databind.*;
|
6 | 4 | import com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition;
|
7 | 5 | import com.fasterxml.jackson.core.type.TypeReference;
|
|
14 | 12 | */
|
15 | 13 | public class CsvMapper extends ObjectMapper
|
16 | 14 | {
|
17 |
| - private static final long serialVersionUID = 898121211926121724L; |
| 15 | + private static final long serialVersionUID = -4573529235914611523L; |
18 | 16 |
|
19 | 17 | /**
|
20 | 18 | * Simple caching for schema instances, given that they are relatively expensive
|
@@ -93,29 +91,6 @@ public final CsvFactory getFactory() {
|
93 | 91 | return (CsvFactory) _jsonFactory;
|
94 | 92 | }
|
95 | 93 |
|
96 |
| - /** |
97 |
| - * Overridden with more specific type, since factory we have |
98 |
| - * is always of type {@link CsvFactory} |
99 |
| - * |
100 |
| - * @deprecated Since 2.1 use {@link #getFactory()} |
101 |
| - */ |
102 |
| - @Deprecated |
103 |
| - @Override |
104 |
| - public final CsvFactory getJsonFactory() { |
105 |
| - return getCsvFactory(); |
106 |
| - } |
107 |
| - |
108 |
| - /** |
109 |
| - * Type-safe accessor for accessing underlying CSV-specific |
110 |
| - * {@link JsonFactory} implementation |
111 |
| - * |
112 |
| - * @deprecated Since 2.1 use {@link #getFactory()}, it is co-variant |
113 |
| - */ |
114 |
| - @Deprecated |
115 |
| - public final CsvFactory getCsvFactory() { |
116 |
| - return (CsvFactory) _jsonFactory; |
117 |
| - } |
118 |
| - |
119 | 94 | /*
|
120 | 95 | /**********************************************************************
|
121 | 96 | /* CsvSchema construction; overrides, new methods
|
@@ -160,24 +135,6 @@ public final CsvSchema typedSchemaFor(Class<?> pojoType) {
|
160 | 135 | public final CsvSchema typedSchemaFor(TypeReference<?> pojoTypeRef) {
|
161 | 136 | return _schemaFor(constructType(pojoTypeRef.getType()), _typedSchemas, true);
|
162 | 137 | }
|
163 |
| - |
164 |
| - @Override |
165 |
| - public ObjectReader reader(FormatSchema schema) |
166 |
| - { |
167 |
| - if ((schema != null) && !(schema instanceof CsvSchema)) { |
168 |
| - throw new IllegalArgumentException("Schema to set must be of type CsvSchema"); |
169 |
| - } |
170 |
| - return super.reader(schema); |
171 |
| - } |
172 |
| - |
173 |
| - @Override |
174 |
| - public ObjectWriter writer(FormatSchema schema) |
175 |
| - { |
176 |
| - if ((schema != null) && !(schema instanceof CsvSchema)) { |
177 |
| - throw new IllegalArgumentException("Schema to set must be of type CsvSchema"); |
178 |
| - } |
179 |
| - return super.writer(schema); |
180 |
| - } |
181 | 138 |
|
182 | 139 | /**
|
183 | 140 | * Convenience method which is functionally equivalent to:
|
@@ -276,5 +233,4 @@ protected CsvSchema.ColumnType _determineType(Class<?> propType)
|
276 | 233 | // but in general we will just do what we can:
|
277 | 234 | return CsvSchema.ColumnType.NUMBER_OR_STRING;
|
278 | 235 | }
|
279 |
| - |
280 | 236 | }
|
0 commit comments