Suppress deprecation warning in Gradle build

master
Sam Brannen 5 years ago
parent 44659f4945
commit 4038d590a1
  1. 3
      spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandlerTests.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2018 the original author or authors. * Copyright 2002-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -165,6 +165,7 @@ public class ResponseEntityExceptionHandlerTests {
} }
@Test @Test
@SuppressWarnings("deprecation")
public void httpMessageNotReadable() { public void httpMessageNotReadable() {
Exception ex = new HttpMessageNotReadableException("message"); Exception ex = new HttpMessageNotReadableException("message");
testException(ex); testException(ex);

Loading…
Cancel
Save