This is an automated email from the git hooks/post-receive script. New commit to branch feature/7463-3 in repository observe. See http://git.codelutin.com/observe.git commit 6e2d4dc92ca4a2d71849590be4339ce63c20292b Author: Tony CHEMIT <chemit@codelutin.com> Date: Mon Sep 7 14:31:04 2015 +0200 Suppression d'un converter non utilisé --- .../ObserveDataSourceConfigurationConverter.java | 47 ---------------------- 1 file changed, 47 deletions(-) diff --git a/observe-application-web/src/main/java/fr/ird/observe/application/web/ObserveDataSourceConfigurationConverter.java b/observe-application-web/src/main/java/fr/ird/observe/application/web/ObserveDataSourceConfigurationConverter.java deleted file mode 100644 index 0e688ae..0000000 --- a/observe-application-web/src/main/java/fr/ird/observe/application/web/ObserveDataSourceConfigurationConverter.java +++ /dev/null @@ -1,47 +0,0 @@ -package fr.ird.observe.application.web; - -import com.google.gson.Gson; -import fr.ird.observe.services.configuration.ObserveDataSourceConfiguration; -import fr.ird.observe.services.configuration.ObserveDataSourceConfigurationTopiaPG; -import fr.ird.observe.services.dto.gson.ObserveDtoGsonSupplier; -import org.apache.commons.beanutils.converters.AbstractConverter; - -/** - * Created on 05/09/15. - * - * @author Tony Chemit - chemit@codelutin.com - */ -public class ObserveDataSourceConfigurationConverter extends AbstractConverter { - - protected final Gson gson; - - public ObserveDataSourceConfigurationConverter(boolean devMode) { - gson = new ObserveDtoGsonSupplier(devMode).get(); - } - - @Override - protected <T> T convertToType(Class<T> type, Object value) throws Throwable { - - String stringValue; - - if (value instanceof String) { - - stringValue = (String) value; - - } else { - - stringValue = ((String[]) value)[0]; - - } - - T result = (T) gson.fromJson(stringValue, ObserveDataSourceConfigurationTopiaPG.class); - - return result; - - } - - @Override - protected Class<?> getDefaultType() { - return ObserveDataSourceConfiguration.class; - } -} -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.