Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Refactoring in grizzly-config: removed dead code #25058

Merged
merged 16 commits into from
Jul 23, 2024
Merged

Conversation

dmatej
Copy link
Contributor

@dmatej dmatej commented Jul 22, 2024

  • I tried to commit step by step
  • First I was comparing the code with JDK11 and 17 as our code was copy pasted some 20 years ago, however then I found that some obsoleted code is not even used ... soon it became clear that quite a lot of this code is not used.
  • Probably when Grizzly was implemented, these classes were adapted to work with it using SSLConfigurator. The unused code remained in the SVN at those times and we inherited it.

- we don't use JSSESupport instances and we don't support Java 1.2 for years.

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- Shortened the inheritance to GlassfishServerSocketFactory


Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- We don't have any other implementation

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- Deleted also javadoc bloc probably copy pasted from some obsoleted JDK

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- Also done small improvements in the code ie the attributes map had always
  just string values.
- The DefaultServerSocketFactory is a part of JDK, we don't use it.


Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
… create()

- Now it makes sense, the original impl moved to the SSLConfigurator mostly,
  and from some point GF required to create just the SSLContext

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
@dmatej dmatej added this to the 7.0.16 milestone Jul 22, 2024
@dmatej dmatej self-assigned this Jul 22, 2024
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- Redundant piece in the hierarchy of calls

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Copy link
Contributor

@avpinchuk avpinchuk left a comment

Choose a reason for hiding this comment

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

A few more minor bugs

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
@dmatej dmatej merged commit b6a2ca9 into eclipse-ee4j:master Jul 23, 2024
2 checks passed
@dmatej dmatej deleted the tls branch July 23, 2024 21:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants