We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb5ca77 + 9050bd5 commit 7924a3eCopy full SHA for 7924a3e
src/main/java/rx/exceptions/OnErrorThrowable.java
@@ -138,16 +138,19 @@ public Object getValue() {
138
* @return a string version of the object if primitive, otherwise the classname of the object
139
*/
140
private static String renderValue(Object value){
141
- if(value == null){
+ if (value == null) {
142
return "null";
143
}
144
- if(value.getClass().isPrimitive()){
+ if (value.getClass().isPrimitive()) {
145
return value.toString();
146
147
- if(value instanceof String){
148
- return (String)value;
+ if (value instanceof String) {
+ return (String) value;
149
150
- return value.getClass().getSimpleName() + ".class";
+ if (value instanceof Enum) {
151
+ return ((Enum) value).name();
152
+ }
153
+ return value.getClass().getName() + ".class";
154
155
156
0 commit comments