Commit 4f61ded4 authored by ISWB Prasetya's avatar ISWB Prasetya
Browse files

small fix on the Show of objects. Primivitive-like values were not showed properly.

parent 6ca2bcd3
......@@ -38,6 +38,7 @@ package Sequenic.T3.utils;
* for aliasing.
*/
import Sequenic.T3.CONSTANTS;
import Sequenic.T3.Reflection.Reflection;
import java.lang.reflect.*;
import java.util.*;
......@@ -196,7 +197,8 @@ public class Show {
Class C = o.getClass();
// primitive type:
if (C.isPrimitive() || C.isEnum() || C.getName().equals("java.lang.String")) {
//if (C.isPrimitive() || C.isEnum() || C.getName().equals("java.lang.String")) {
if (Reflection.isPrimitiveLike(C) || C.isEnum() || C.getName().equals("java.lang.String")) {
return previousPP.aside_(PP.text("(" + C.getSimpleName() + ") : " + o));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment