Skip to content
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

[Spring Cleanup] Remove Spring dependencies in the CORS management API #693

Conversation

NipuniBhagya
Copy link
Contributor

Purpose

This PR removes dependencies and usages of the Spring framework in the CORS management REST API.

Related Issue(s)

@@ -103,6 +98,11 @@
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.server.api</groupId>
<artifactId>org.wso2.carbon.identity.api.server.cors.common</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this dependency is already available


static {
CORSManagementService corsManagementService = CORSServiceHolder.getCorsManagementService();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line

if (corsManagementService == null) {
throw new IllegalStateException("CORSManagementService is not available from OSGi context.");
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

@lashinijay
Copy link
Contributor

Comments will be addressed with #756

@lashinijay lashinijay merged commit 9fdcf77 into wso2:feature-spring-cleanup Dec 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants