diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-06 11:41:22 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-06 11:41:22 +0300 |
commit | a6688c9362d8f2d87b8334b21ecf966789900ceb (patch) | |
tree | 4b68787eae5fe605ea73bc544ef4d025d5d4f26c /server/src/com/vaadin/data/util/converter | |
parent | 201121c5e00ee78d85add849f8b071fce076cc0d (diff) | |
download | vaadin-framework-a6688c9362d8f2d87b8334b21ecf966789900ceb.tar.gz vaadin-framework-a6688c9362d8f2d87b8334b21ecf966789900ceb.zip |
Remove some references to Application in API and docs (#9402)
Diffstat (limited to 'server/src/com/vaadin/data/util/converter')
-rw-r--r-- | server/src/com/vaadin/data/util/converter/ConverterUtil.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/com/vaadin/data/util/converter/ConverterUtil.java b/server/src/com/vaadin/data/util/converter/ConverterUtil.java index a6014bb3eb..5944b505ab 100644 --- a/server/src/com/vaadin/data/util/converter/ConverterUtil.java +++ b/server/src/com/vaadin/data/util/converter/ConverterUtil.java @@ -36,22 +36,22 @@ public class ConverterUtil implements Serializable { * The presentation type * @param modelType * The model type - * @param application - * The application to use to find a ConverterFactory or null to - * use the current application + * @param session + * The session to use to find a ConverterFactory or null to use + * the current session * @return A Converter capable of converting between the given types or null * if no converter was found */ public static <PRESENTATIONTYPE, MODELTYPE> Converter<PRESENTATIONTYPE, MODELTYPE> getConverter( Class<PRESENTATIONTYPE> presentationType, - Class<MODELTYPE> modelType, VaadinSession application) { + Class<MODELTYPE> modelType, VaadinSession session) { Converter<PRESENTATIONTYPE, MODELTYPE> converter = null; - if (application == null) { - application = VaadinSession.getCurrent(); + if (session == null) { + session = VaadinSession.getCurrent(); } - if (application != null) { - ConverterFactory factory = application.getConverterFactory(); + if (session != null) { + ConverterFactory factory = session.getConverterFactory(); converter = factory.createConverter(presentationType, modelType); } return converter; |