Skip to content

Commit 9f01551

Browse files
committed
Merge branch '2.7' into 2.8
2 parents 8a5b111 + efc6b98 commit 9f01551

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Do not merge `pom.xml` from older version, as it will typically conflict
2+
#
3+
# note: also need:
4+
# git config --global merge.ours.driver true
5+
# (and if ever need to disable change `true` to `false`
26

37
pom.xml merge=ours

release-notes/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Project: jackson-databind
9191
#1277: Add caching of resolved generic types for `TypeFactory`
9292
(requested by Andriy P)
9393

94-
2.7.8 (not yet released)
94+
2.7.8 (26-Sep-2016)
9595

9696
#877: @JsonIgnoreProperties`: ignoring the "cause" property of `Throwable` on GAE
9797
#1359: Improve `JsonNode` deserializer to create `FloatNode` if parser supports

src/main/java/com/fasterxml/jackson/databind/jsontype/TypeSerializer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public abstract class TypeSerializer
102102
* @param g Generator to use for writing type information
103103
*/
104104
public abstract void writeTypePrefixForArray(Object value, JsonGenerator g) throws IOException;
105-
105+
106106
/**
107107
* Method called after value has been serialized, to close any scopes opened
108108
* by earlier matching call to {@link #writeTypePrefixForScalar}.
@@ -173,8 +173,8 @@ public void writeTypePrefixForArray(Object value, JsonGenerator g, Class<?> type
173173
* @param g Generator to use for writing type information
174174
* @param typeId Exact type id to use
175175
*/
176-
public abstract void writeCustomTypePrefixForScalar(Object value, JsonGenerator g, String typeId) throws IOException, JsonProcessingException;
177-
176+
public abstract void writeCustomTypePrefixForScalar(Object value, JsonGenerator g, String typeId) throws IOException;
177+
178178
/**
179179
* Method called to write initial part of type information for given
180180
* value, when it will be output as JSON Object value (not as JSON

src/test/java/com/fasterxml/jackson/databind/jsontype/TestDefaultForObject.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@
1111
public class TestDefaultForObject
1212
extends BaseMapTest
1313
{
14-
/*
15-
/**********************************************************
16-
/* Helper types
17-
/**********************************************************
18-
*/
19-
2014
static abstract class AbstractBean { }
2115

2216
static class StringBean extends AbstractBean { // ha, punny!
@@ -42,7 +36,6 @@ enum ComplexChoice {
4236
public String toString() { return String.valueOf(state); }
4337
}
4438

45-
// [JACKSON-311]
4639
static class PolymorphicType {
4740
public String foo;
4841
public Object bar;
@@ -70,7 +63,6 @@ public ObjectHolder() { }
7063
public ObjectHolder(Object v) { value = v; }
7164
}
7265

73-
// [JACKSON-352]
7466
static class DomainBean {
7567
public int weight;
7668
}

src/test/java/com/fasterxml/jackson/databind/ser/TestJsonValue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public void testInList() throws Exception {
249249
assertEquals(json, "{\"values\":[{\"i\":1},{\"i\":2}]}");
250250
}
251251

252-
// [Issue#167]
252+
// [databind#167]
253253
public void testPolymorphicSerdeWithDelegate() throws Exception
254254
{
255255
AdditionInterface adder = new AdditionInterfaceImpl(1);
@@ -262,7 +262,7 @@ public void testPolymorphicSerdeWithDelegate() throws Exception
262262
adder = new NegatingAdditionInterface(adder);
263263
assertEquals(0, adder.add(1));
264264
json = MAPPER.writeValueAsString(adder);
265-
265+
266266
assertEquals("{\"boingo\":\"boopsy\",\"toAdd\":1}", json);
267267
assertEquals(2, MAPPER.readValue(json, AdditionInterface.class).add(1));
268268
}

0 commit comments

Comments
 (0)