diff --git a/spring-context/src/main/java/org/springframework/format/AnnotationFormatterFactory.java b/spring-context/src/main/java/org/springframework/format/AnnotationFormatterFactory.java index fb539380114..dd0f12dd967 100644 --- a/spring-context/src/main/java/org/springframework/format/AnnotationFormatterFactory.java +++ b/spring-context/src/main/java/org/springframework/format/AnnotationFormatterFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 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. @@ -37,7 +37,7 @@ public interface AnnotationFormatterFactory { /** * Get the Printer to print the value of a field of {@code fieldType} annotated with {@code annotation}. - * If the type <T> the printer accepts is not assignable to {@code fieldType}, a coersion from {@code fieldType} to <T> will be attempted before the Printer is invoked. + * If the type <T> the printer accepts is not assignable to {@code fieldType}, a coercion from {@code fieldType} to <T> will be attempted before the Printer is invoked. * @param annotation the annotation instance * @param fieldType the type of field that was annotated * @return the printer @@ -46,7 +46,7 @@ public interface AnnotationFormatterFactory { /** * Get the Parser to parse a submitted value for a field of {@code fieldType} annotated with {@code annotation}. - * If the object the parser returns is not assignable to {@code fieldType}, a coersion to {@code fieldType} will be attempted before the field is set. + * If the object the parser returns is not assignable to {@code fieldType}, a coercion to {@code fieldType} will be attempted before the field is set. * @param annotation the annotation instance * @param fieldType the type of field that was annotated * @return the parser diff --git a/spring-context/src/main/java/org/springframework/format/FormatterRegistry.java b/spring-context/src/main/java/org/springframework/format/FormatterRegistry.java index eb6d3f130c8..3c2ab139e48 100644 --- a/spring-context/src/main/java/org/springframework/format/FormatterRegistry.java +++ b/spring-context/src/main/java/org/springframework/format/FormatterRegistry.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 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. @@ -41,9 +41,9 @@ public interface FormatterRegistry extends ConverterRegistry { /** * Adds a Formatter to format fields of the given type. *

On print, if the Formatter's type T is declared and {@code fieldType} is not assignable to T, - * a coersion to T will be attempted before delegating to {@code formatter} to print a field value. + * a coercion to T will be attempted before delegating to {@code formatter} to print a field value. * On parse, if the parsed object returned by {@code formatter} is not assignable to the runtime field type, - * a coersion to the field type will be attempted before returning the parsed field value. + * a coercion to the field type will be attempted before returning the parsed field value. * @param fieldType the field type to format * @param formatter the formatter to add */ @@ -54,9 +54,9 @@ public interface FormatterRegistry extends ConverterRegistry { * The formatter will delegate to the specified {@code printer} for printing * and the specified {@code parser} for parsing. *

On print, if the Printer's type T is declared and {@code fieldType} is not assignable to T, - * a coersion to T will be attempted before delegating to {@code printer} to print a field value. + * a coercion to T will be attempted before delegating to {@code printer} to print a field value. * On parse, if the object returned by the Parser is not assignable to the runtime field type, - * a coersion to the field type will be attempted before returning the parsed field value. + * a coercion to the field type will be attempted before returning the parsed field value. * @param fieldType the field type to format * @param printer the printing part of the formatter * @param parser the parsing part of the formatter