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() {
138138 * @return a string version of the object if primitive, otherwise the classname of the object
139139 */
140140 private static String renderValue (Object value ){
141- if (value == null ){
141+ if (value == null ) {
142142 return "null" ;
143143 }
144- if (value .getClass ().isPrimitive ()){
144+ if (value .getClass ().isPrimitive ()) {
145145 return value .toString ();
146146 }
147- if (value instanceof String ){
148- return (String )value ;
147+ if (value instanceof String ) {
148+ return (String ) value ;
149149 }
150- return value .getClass ().getSimpleName () + ".class" ;
150+ if (value instanceof Enum ) {
151+ return ((Enum ) value ).name ();
152+ }
153+ return value .getClass ().getName () + ".class" ;
151154 }
152155 }
153156}
You can’t perform that action at this time.
0 commit comments