From a8b5ea1c511244528ddcd12598e3ab02ec117e31 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 26 Mar 2016 01:27:37 +0100 Subject: [PATCH] Polishing --- .../jmx/export/annotation/ManagedNotifications.java | 4 ++-- .../annotation/EnableMBeanExportConfigurationTests.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotifications.java b/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotifications.java index 7c2f2aba41..42bedaa4a9 100644 --- a/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotifications.java +++ b/spring-context/src/main/java/org/springframework/jmx/export/annotation/ManagedNotifications.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2015 the original author or authors. + * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ import java.lang.annotation.Target; /** * Type-level annotation that indicates JMX notifications emitted by a bean, - * containing multiple {@link ManagedNotification ManagedNotifications} + * containing multiple {@link ManagedNotification ManagedNotifications}. * * @author Rob Harrop * @since 2.0 diff --git a/spring-context/src/test/java/org/springframework/jmx/export/annotation/EnableMBeanExportConfigurationTests.java b/spring-context/src/test/java/org/springframework/jmx/export/annotation/EnableMBeanExportConfigurationTests.java index 2a294f2b7d..9048882952 100644 --- a/spring-context/src/test/java/org/springframework/jmx/export/annotation/EnableMBeanExportConfigurationTests.java +++ b/spring-context/src/test/java/org/springframework/jmx/export/annotation/EnableMBeanExportConfigurationTests.java @@ -82,6 +82,7 @@ public class EnableMBeanExportConfigurationTests { } @Test + @SuppressWarnings("resource") public void testPackagePrivateExtensionCantBeExposed() { this.thrown.expect(InvalidMetadataException.class); this.thrown.expectMessage(PackagePrivateTestBean.class.getName()); @@ -90,6 +91,7 @@ public class EnableMBeanExportConfigurationTests { } @Test + @SuppressWarnings("resource") public void testPackagePrivateImplementationCantBeExposed() { this.thrown.expect(InvalidMetadataException.class); this.thrown.expectMessage(PackagePrivateAnnotationTestBean.class.getName());