From: Teemu Suo-Anttila Date: Tue, 25 Oct 2016 08:36:44 +0000 (+0300) Subject: Remove undocumented, unused extra default methods from Converter X-Git-Tag: 8.0.0.alpha6~45 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5bc31e8267230fc4abfef34dcaa77ce5eae447b3;p=vaadin-framework.git Remove undocumented, unused extra default methods from Converter Change-Id: I36a1deaadbb85d4b699c581058c80a7cd6e314fc --- diff --git a/server/src/main/java/com/vaadin/data/util/converter/Converter.java b/server/src/main/java/com/vaadin/data/util/converter/Converter.java index 3521789e5a..9c46469f22 100644 --- a/server/src/main/java/com/vaadin/data/util/converter/Converter.java +++ b/server/src/main/java/com/vaadin/data/util/converter/Converter.java @@ -17,7 +17,6 @@ package com.vaadin.data.util.converter; import java.io.Serializable; -import java.util.Locale; import java.util.function.Function; import com.vaadin.data.Binder.Binding; @@ -53,11 +52,6 @@ public interface Converter extends Serializable { public Result convertToModel(PRESENTATION value, ValueContext context); - default public Result convertToModel(PRESENTATION value, - Locale locale) { - return convertToModel(value, new ValueContext(locale)); - } - /** * Converts the given value from presentation type to model type. *

@@ -72,11 +66,6 @@ public interface Converter extends Serializable { public PRESENTATION convertToPresentation(MODEL value, ValueContext context); - default public PRESENTATION convertToPresentation(MODEL value, - Locale locale) { - return convertToPresentation(value, new ValueContext()); - } - /** * Returns a converter that returns its input as-is in both directions. *