Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Prasetya, S.W.B. (Wishnu)
t3
Commits
4f61ded4
Commit
4f61ded4
authored
Jul 15, 2018
by
ISWB Prasetya
Browse files
small fix on the Show of objects. Primivitive-like values were not showed properly.
parent
6ca2bcd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Sequenic/T3/utils/Show.java
View file @
4f61ded4
...
...
@@ -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
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment