From c1551458bb2deda5894ca105919b339fb4b53c6e Mon Sep 17 00:00:00 2001 From: Nicolai Ommer Date: Wed, 28 Oct 2015 17:47:40 +0100 Subject: [PATCH] updated string2valueConverter --- pom.xml | 4 ++-- .../instanceables/InstanceableParameter.java | 19 ++++--------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index 7ae819d..6e7da10 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.g3force instanceables - v1.1 + v1.2 instanceables @@ -28,7 +28,7 @@ com.github.g3force String2ValueConverter - v1.4 + v1.5 diff --git a/src/main/java/com/github/g3force/instanceables/InstanceableParameter.java b/src/main/java/com/github/g3force/instanceables/InstanceableParameter.java index d39902c..83df412 100644 --- a/src/main/java/com/github/g3force/instanceables/InstanceableParameter.java +++ b/src/main/java/com/github/g3force/instanceables/InstanceableParameter.java @@ -21,14 +21,14 @@ */ public class InstanceableParameter { - private static String2ValueConverter s2vConv = new String2ValueConverter(); - + private static String2ValueConverter s2vConv = String2ValueConverter.getDefault(); + private final Class impl; private final String description; private final String defaultValue; private final List> genericsImpls; - - + + /** * @param impl * @param description @@ -45,17 +45,6 @@ public InstanceableParameter(final Class impl, final String description, fina } - /** - * Replace {@link String2ValueConverter} by your own implementation - * - * @param conv - */ - public static void registerString2ValueConverter(String2ValueConverter conv) - { - s2vConv = conv; - } - - /** * Parse given String to value *