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

Fix compiler warnings and a minor bug #69

Merged
merged 2 commits into from
Sep 8, 2023
Merged

Conversation

jarkkoka
Copy link
Collaborator

@jarkkoka jarkkoka commented Sep 6, 2023

  • Fix most compiler warnings
  • Fix use of deprecated WebSecurityConfigurerAdapter

This change is Reviewable

@jarkkoka jarkkoka requested review from culka and removed request for culka September 6, 2023 13:56
@jarkkoka jarkkoka force-pushed the fix-compiler-warnings branch from 5fc4826 to aeee626 Compare September 6, 2023 17:12
@jarkkoka jarkkoka requested a review from culka September 6, 2023 17:12
@jarkkoka jarkkoka force-pushed the fix-compiler-warnings branch from aeee626 to 63bc02c Compare September 6, 2023 17:48
@jarkkoka jarkkoka removed the request for review from culka September 6, 2023 18:23
@jarkkoka jarkkoka force-pushed the fix-compiler-warnings branch from 63bc02c to a3be69a Compare September 6, 2023 18:27
@jarkkoka jarkkoka requested a review from culka September 6, 2023 18:27
@jarkkoka jarkkoka force-pushed the fix-compiler-warnings branch from a3be69a to 6fc0f90 Compare September 6, 2023 19:18
@jarkkoka jarkkoka force-pushed the fix-compiler-warnings branch from 6fc0f90 to bc95399 Compare September 7, 2023 13:07
Copy link
Contributor

@culka culka left a comment

Choose a reason for hiding this comment

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

Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jarkkoka)


spring-boot/src/main/kotlin/fi/hsl/jore4/mapmatching/config/WebSecurityConfig.kt line 23 at r1 (raw file):

            .sessionManagement { it.sessionCreationPolicy(SessionCreationPolicy.NEVER) }
            .csrf { it.disable() }
            .cors {}

CORS was not called in the old configuration. I don't think this empty call does anything.

Copy link
Collaborator Author

@jarkkoka jarkkoka left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @culka)


spring-boot/src/main/kotlin/fi/hsl/jore4/mapmatching/config/WebSecurityConfig.kt line 23 at r1 (raw file):

Previously, culka (Teemu Mäkinen) wrote…

CORS was not called in the old configuration. I don't think this empty call does anything.

You're right. It does not affect anything. Basically, we are using the default CORS configuration. In other words, CORS is turned on even without this line.

I kind of made the usage of CORS explicit here since it is needed. There is a separate CORS configuration in WebConfig class (under development Spring profile).

Is it ok to leave it here?

@jarkkoka jarkkoka force-pushed the fix-compiler-warnings branch from bc95399 to 56c3eab Compare September 8, 2023 11:14
Copy link
Contributor

@culka culka left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jarkkoka)


spring-boot/src/main/kotlin/fi/hsl/jore4/mapmatching/config/WebSecurityConfig.kt line 23 at r1 (raw file):

Previously, jarkkoka (Jarkko Kaura) wrote…

You're right. It does not affect anything. Basically, we are using the default CORS configuration. In other words, CORS is turned on even without this line.

I kind of made the usage of CORS explicit here since it is needed. There is a separate CORS configuration in WebConfig class (under development Spring profile).

Is it ok to leave it here?

Looks good!

@jarkkoka jarkkoka merged commit a8b701a into main Sep 8, 2023
9 checks passed
@jarkkoka jarkkoka deleted the fix-compiler-warnings branch September 8, 2023 12:19
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.

2 participants