File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/main/java/rx/exceptions Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -138,16 +138,19 @@ public Object getValue() {
138
138
* @return a string version of the object if primitive, otherwise the classname of the object
139
139
*/
140
140
private static String renderValue (Object value ){
141
- if (value == null ){
141
+ if (value == null ) {
142
142
return "null" ;
143
143
}
144
- if (value .getClass ().isPrimitive ()){
144
+ if (value .getClass ().isPrimitive ()) {
145
145
return value .toString ();
146
146
}
147
- if (value instanceof String ){
148
- return (String )value ;
147
+ if (value instanceof String ) {
148
+ return (String ) value ;
149
149
}
150
- return value .getClass ().getSimpleName () + ".class" ;
150
+ if (value instanceof Enum ) {
151
+ return ((Enum ) value ).name ();
152
+ }
153
+ return value .getClass ().getName () + ".class" ;
151
154
}
152
155
}
153
156
}
You can’t perform that action at this time.
0 commit comments