Skip to content

Commit fff2d34

Browse files
committed
update comment
1 parent b1874ae commit fff2d34

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

client/src/main/java/com/microsoft/durabletask/FailureDetails.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ public final class FailureDetails {
5353
this.properties = properties != null ? Collections.unmodifiableMap(new HashMap<>(properties)) : null;
5454
}
5555

56-
FailureDetails(Exception exception) {
57-
this(exception.getClass().getName(),
58-
exception.getMessage(),
59-
getFullStackTrace(exception),
60-
false,
61-
fromExceptionRecursive(exception.getCause(), null, 1),
62-
null);
63-
}
64-
6556
/**
6657
* Creates a {@code FailureDetails} from an exception, optionally using the provided
6758
* {@link ExceptionPropertiesProvider} to extract custom properties.
@@ -143,10 +134,7 @@ public FailureDetails getInnerFailure() {
143134
*/
144135
@Nullable
145136
public Map<String, Object> getProperties() {
146-
if (this.properties == null) {
147-
return null;
148-
}
149-
return Collections.unmodifiableMap(this.properties);
137+
return this.properties;
150138
}
151139

152140
/**

0 commit comments

Comments
 (0)