Skip to content

Commit aa7b250

Browse files
committed
SWS-1048 - Reinstate Java 6 support.
1 parent 4b10829 commit aa7b250

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

pom.xml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
<properties>
8282
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8383
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
84-
<maven.compiler.source>1.7</maven.compiler.source>
85-
<maven.compiler.target>1.7</maven.compiler.target>
84+
<maven.compiler.source>1.6</maven.compiler.source>
85+
<maven.compiler.target>1.6</maven.compiler.target>
8686
<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
8787

8888
<activemq.version>4.1.2</activemq.version>
@@ -182,6 +182,28 @@
182182
</configuration>
183183
</plugin>
184184

185+
<plugin>
186+
<groupId>org.codehaus.mojo</groupId>
187+
<artifactId>animal-sniffer-maven-plugin</artifactId>
188+
<version>1.16</version>
189+
<configuration>
190+
<signature>
191+
<groupId>org.codehaus.mojo.signature</groupId>
192+
<artifactId>java16-sun</artifactId>
193+
<version>1.0</version>
194+
</signature>
195+
</configuration>
196+
<executions>
197+
<execution>
198+
<id>check-java16-sun</id>
199+
<phase>test</phase>
200+
<goals>
201+
<goal>check</goal>
202+
</goals>
203+
</execution>
204+
</executions>
205+
</plugin>
206+
185207
</plugins>
186208
</build>
187209

spring-ws-core/src/main/java/org/springframework/ws/transport/http/HttpUrlConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public Iterator<String> getResponseHeaderNames() throws IOException {
121121

122122
@Override
123123
public Iterator<String> getResponseHeaders(String name) throws IOException {
124-
Map<String, List<String>> headersListMappedByLowerCaseName = new HashMap<>();
124+
Map<String, List<String>> headersListMappedByLowerCaseName = new HashMap<String, List<String>>();
125125

126126
for (String key : connection.getHeaderFields().keySet()) {
127127
if (key != null) {

0 commit comments

Comments
 (0)