From e6814f6609db0ea59e4a6c7db82126d46a3b4a25 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 18 Mar 2020 17:04:28 +0100 Subject: [PATCH] Clean up warnings in Jsr354NumberFormatAnnotationFormatterFactory --- .../money/Jsr354NumberFormatAnnotationFormatterFactory.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/format/number/money/Jsr354NumberFormatAnnotationFormatterFactory.java b/spring-context/src/main/java/org/springframework/format/number/money/Jsr354NumberFormatAnnotationFormatterFactory.java index 434d483a185..1f7c7a241f0 100644 --- a/spring-context/src/main/java/org/springframework/format/number/money/Jsr354NumberFormatAnnotationFormatterFactory.java +++ b/spring-context/src/main/java/org/springframework/format/number/money/Jsr354NumberFormatAnnotationFormatterFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2020 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. @@ -53,9 +53,8 @@ public class Jsr354NumberFormatAnnotationFormatterFactory extends EmbeddedValueR @Override - @SuppressWarnings("unchecked") public Set> getFieldTypes() { - return (Set) Collections.singleton(MonetaryAmount.class); + return Collections.singleton(MonetaryAmount.class); } @Override