dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39593
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20046: ValueType, removed string constants, use ObjectUtils.asStringList instead
------------------------------------------------------------
revno: 20046
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-09-08 19:04:23 +0200
message:
ValueType, removed string constants, use ObjectUtils.asStringList instead
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/ValueType.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/ValueType.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/ValueType.java 2015-09-08 16:56:53 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/ValueType.java 2015-09-08 17:04:23 +0000
@@ -28,14 +28,13 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-import com.google.common.collect.Lists;
+import java.util.Date;
+import java.util.List;
import org.hisp.dhis.dataelement.DataElement;
import org.hisp.dhis.trackedentity.TrackedEntityInstance;
-import org.hisp.dhis.util.ObjectUtils;
-import java.util.Date;
-import java.util.List;
+import com.google.common.collect.Lists;
/**
* @author Lars Helge Overland
@@ -70,11 +69,7 @@
public static final List<ValueType> TEXT_TYPES = Lists.newArrayList(
TEXT, LONG_TEXT, LETTER );
-
- public static final List<String> INTEGER_TYPE_STRINGS = ObjectUtils.asStringList( INTEGER_TYPES );
- public static final List<String> NUMERIC_TYPE_STRINGS = ObjectUtils.asStringList( NUMERIC_TYPES );
- public static final List<String> TEXT_TYPE_STRINGS = ObjectUtils.asStringList( TEXT_TYPES );
-
+
private final Class<?> javaClass;
ValueType()