-
Notifications
You must be signed in to change notification settings - Fork 1.1k
GH-10083: Apply Nullability to some core support packages #10360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
3bb9a51
56f532d
a0ce80d
9cdcb30
66aebbb
70e49b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,9 @@ public Message<?> toMessage(Object payload, @Nullable MessageHeaders headers) { | |
} | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "converter"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here: this is not an |
||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,6 +201,11 @@ public final void stop(Runnable callback) { | |
} | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "endpoint"; | ||
|
||
} | ||
|
||
/** | ||
* Stop the component and invoke callback. | ||
* @param callback the Runnable to invoke. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* Provides classes supporting use of the channel. | ||
*/ | ||
@org.jspecify.annotations.NullMarked | ||
package org.springframework.integration.support.channel; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/** | ||
* Provides classes supporting use of the application context. | ||
*/ | ||
@org.jspecify.annotations.NullMarked | ||
package org.springframework.integration.support.context; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
/** | ||
* Provides classes supporting message conversion. | ||
*/ | ||
@org.springframework.lang.NonNullApi | ||
@org.springframework.lang.NonNullFields | ||
@org.jspecify.annotations.NullMarked | ||
package org.springframework.integration.support.converter; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,6 +131,11 @@ public void processAfterRollback(IntegrationResourceHolder holder) { | |
doProcess(holder, this.afterRollbackExpression, this.afterRollbackChannel, "afterRollback"); | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "processor"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one also must not be an |
||
} | ||
|
||
private void doProcess(IntegrationResourceHolder holder, Expression expression, | ||
@Nullable MessageChannel messageChannel, String expressionType) { | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,11 @@ public ApplicationEventPublisher getApplicationEventPublisher() { | |
return this.applicationEventPublisher; | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "connection"; | ||
|
||
} | ||
|
||
/** | ||
* Sets socket attributes on the socket. | ||
* @param socket The socket. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header-channel-registry
.I can argue that this class is not supposed to be an
IntegrationObjectSupport
.But that's different story.