Skip to content

Commit 12a10a3

Browse files
author
Arjen Poutsma
committed
Bumped up compile warnings
Bumped up the compiler warning to errors.
1 parent ded1efd commit 12a10a3

File tree

125 files changed

+443
-353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+443
-353
lines changed

build.gradle

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,21 @@ configure(allprojects) {
1919
apply plugin: "propdeps-idea"
2020
apply plugin: "propdeps"
2121

22-
/* [compileJava, compileTestJava]*.options*.compilerArgs = [
23-
"-Xlint:serial",
24-
"-Xlint:varargs",
25-
"-Xlint:cast",
26-
"-Xlint:classfile",
27-
"-Xlint:dep-ann",
28-
"-Xlint:divzero",
29-
"-Xlint:empty",
30-
"-Xlint:finally",
31-
"-Xlint:overrides",
32-
"-Xlint:path",
33-
"-Xlint:processing",
34-
"-Xlint:static",
35-
"-Xlint:try",
36-
"-Xlint:-options", // intentionally disabled
37-
"-Xlint:-fallthrough", // intentionally disabled
38-
"-Xlint:-rawtypes", // TODO enable and fix warnings
39-
"-Xlint:-deprecation", // TODO enable and fix warnings
40-
"-Xlint:-unchecked" // TODO enable and fix warnings
22+
compileJava.options*.compilerArgs = [
23+
"-Xlint:serial", "-Xlint:varargs", "-Xlint:cast", "-Xlint:classfile",
24+
"-Xlint:dep-ann", "-Xlint:divzero", "-Xlint:empty", "-Xlint:finally",
25+
"-Xlint:overrides", "-Xlint:path", "-Xlint:processing", "-Xlint:static",
26+
"-Xlint:try", "-Xlint:fallthrough", "-Xlint:rawtypes", "-Xlint:deprecation",
27+
"-Xlint:unchecked", "-Xlint:-options", "-Werror"
4128
]
42-
*/
29+
30+
compileTestJava.options*.compilerArgs = [
31+
"-Xlint:serial", "-Xlint:varargs", "-Xlint:cast", "-Xlint:classfile",
32+
"-Xlint:dep-ann", "-Xlint:divzero", "-Xlint:empty", "-Xlint:finally",
33+
"-Xlint:overrides", "-Xlint:path", "-Xlint:processing", "-Xlint:static",
34+
"-Xlint:try", "-Xlint:-fallthrough", "-Xlint:-rawtypes", "-Xlint:-deprecation",
35+
"-Xlint:-unchecked", "-Xlint:-options"]
36+
4337
compileJava {
4438
sourceCompatibility=1.6
4539
targetCompatibility=1.6

spring-ws-core/src/main/java/org/springframework/ws/InvalidXmlException.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2005-2012 the original author or authors.
2+
* Copyright 2005-2014 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.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -23,6 +23,7 @@
2323
* @author Arjen Poutsma
2424
* @since 2.0.4
2525
*/
26+
@SuppressWarnings("serial")
2627
public final class InvalidXmlException extends WebServiceException {
2728

2829
public InvalidXmlException(String msg, Throwable ex) {

spring-ws-core/src/main/java/org/springframework/ws/NoEndpointFoundException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2005 the original author or authors.
2+
* Copyright 2005-2014 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.
@@ -22,6 +22,7 @@
2222
* @author Arjen Poutsma
2323
* @since 1.0.0
2424
*/
25+
@SuppressWarnings("serial")
2526
public final class NoEndpointFoundException extends WebServiceException {
2627

2728
public NoEndpointFoundException(WebServiceMessage request) {

spring-ws-core/src/main/java/org/springframework/ws/WebServiceException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2005-2007 the original author or authors.
2+
* Copyright 2005-2014 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.
@@ -24,6 +24,7 @@
2424
* @author Arjen Poutsma
2525
* @since 1.0.0
2626
*/
27+
@SuppressWarnings("serial")
2728
public abstract class WebServiceException extends NestedRuntimeException {
2829

2930
/**

spring-ws-core/src/main/java/org/springframework/ws/WebServiceMessageException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2005 the original author or authors.
2+
* Copyright 2005-2014 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.
@@ -22,6 +22,7 @@
2222
* @author Arjen Poutsma
2323
* @since 1.0.0
2424
*/
25+
@SuppressWarnings("serial")
2526
public abstract class WebServiceMessageException extends WebServiceException {
2627

2728
/** Constructor for {@code WebServiceMessageException}. */

spring-ws-core/src/main/java/org/springframework/ws/client/WebServiceClientException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2007 the original author or authors.
2+
* Copyright 2005-2014 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.
@@ -24,6 +24,7 @@
2424
* @author Arjen Poutsma
2525
* @since 1.0.0
2626
*/
27+
@SuppressWarnings("serial")
2728
public abstract class WebServiceClientException extends WebServiceException {
2829

2930
/**

spring-ws-core/src/main/java/org/springframework/ws/client/WebServiceFaultException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2007 the original author or authors.
2+
* Copyright 2005-2014 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.
@@ -24,6 +24,7 @@
2424
* @author Arjen Poutsma
2525
* @since 1.0.0
2626
*/
27+
@SuppressWarnings("serial")
2728
public class WebServiceFaultException extends WebServiceClientException {
2829

2930
private final FaultAwareWebServiceMessage faultMessage;

spring-ws-core/src/main/java/org/springframework/ws/client/WebServiceIOException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2007 the original author or authors.
2+
* Copyright 2005-2014 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.
@@ -24,6 +24,7 @@
2424
* @author Arjen Poutsma
2525
* @since 1.0.0
2626
*/
27+
@SuppressWarnings("serial")
2728
public class WebServiceIOException extends WebServiceClientException {
2829

2930
/**

spring-ws-core/src/main/java/org/springframework/ws/client/WebServiceTransformerException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2007 the original author or authors.
2+
* Copyright 2005-2014 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.
@@ -24,6 +24,7 @@
2424
* @author Arjen Poutsma
2525
* @since 1.0.0
2626
*/
27+
@SuppressWarnings("serial")
2728
public class WebServiceTransformerException extends WebServiceClientException {
2829

2930
/**

spring-ws-core/src/main/java/org/springframework/ws/client/WebServiceTransportException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2007 the original author or authors.
2+
* Copyright 2005-2014 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.
@@ -24,6 +24,7 @@
2424
* @author Arjen Poutsma
2525
* @since 1.0.0
2626
*/
27+
@SuppressWarnings("serial")
2728
public class WebServiceTransportException extends WebServiceIOException {
2829

2930
/**

0 commit comments

Comments
 (0)