Skip to content

Commit b844f25

Browse files
Rebase fix
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
1 parent 25aeffc commit b844f25

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spring/src/main/java/io/cloudevents/spring/messaging/CloudEventContextUtils.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,21 @@ public static CloudEventContext fromMap(Map<String, Object> headers) throws Clou
5050
}
5151

5252
/**
53-
* Helper method for extracting {@link MessageHeaders} from a {@link CloudEvent}. The
53+
* Helper method for extracting {@link MessageHeaders} from a {@link CloudEventContext}. The
5454
* result will contain headers canonicalized with a {@code ce-} prefix, analogous to the
5555
* "binary" message format in Cloud Events.
5656
*
57-
* @param event the input {@link CloudEvent}
57+
* @param context the input {@link CloudEventContext}
5858
* @return the response headers represented by the event
5959
* @throws CloudEventRWException if something goes wrong while converting the {@link CloudEventContext} to headers
6060
*/
61-
public static Map<String, Object> toMap(CloudEvent event) throws CloudEventRWException {
61+
public static Map<String, Object> toMap(CloudEventContext context) throws CloudEventRWException {
6262
Map<String, Object> headers = new HashMap<>();
6363
// Probably this should be done in CloudEventContextReaderAdapter
64-
headers.put(CE_PREFIX + "specversion", event.getSpecVersion().toString());
64+
headers.put(CE_PREFIX + "specversion", context.getSpecVersion().toString());
6565
MessageBuilderMessageWriter writer = new MessageBuilderMessageWriter(headers);
66-
CloudEventUtils.toContextReader(event).readContext(writer);
66+
CloudEventUtils.toContextReader(context).readContext(writer);
6767
return writer.end().getHeaders();
68-
}
68+
}
6969

7070
}

0 commit comments

Comments
 (0)