Skip to content

Commit abcfffd

Browse files
committed
Allow JAXB to be registered next to plain Jackson
Issue: SPR-14336
1 parent 3c987b1 commit abcfffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/http/converter/support/AllEncompassingFormHttpMessageConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -53,7 +53,7 @@ public class AllEncompassingFormHttpMessageConverter extends FormHttpMessageConv
5353
public AllEncompassingFormHttpMessageConverter() {
5454
addPartConverter(new SourceHttpMessageConverter<Source>());
5555

56-
if (jaxb2Present && !jackson2Present) {
56+
if (jaxb2Present && !jackson2XmlPresent) {
5757
addPartConverter(new Jaxb2RootElementHttpMessageConverter());
5858
}
5959

0 commit comments

Comments
 (0)