Polishing

This commit is contained in:
Juergen Hoeller
2018-02-02 11:34:03 +01:00
parent 4a1cc9ced7
commit 7f96827ade
5 changed files with 51 additions and 45 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2018 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.
@@ -29,8 +29,8 @@ import org.springframework.lang.Nullable;
public interface MessageCodeFormatter {
/**
* Build and return a message code consisting of the given fields, usually delimited
* by {@link DefaultMessageCodesResolver#CODE_SEPARATOR}.
* Build and return a message code consisting of the given fields,
* usually delimited by {@link DefaultMessageCodesResolver#CODE_SEPARATOR}.
* @param errorCode e.g.: "typeMismatch"
* @param objectName e.g.: "user"
* @param field e.g. "age"
@@ -38,4 +38,5 @@ public interface MessageCodeFormatter {
* @see DefaultMessageCodesResolver.Format
*/
String format(String errorCode, @Nullable String objectName, @Nullable String field);
}
}