Skip to content

chore: clean code DefaultChannelPipeline add method#14249

Merged
normanmaurer merged 6 commits into
netty:4.1from
Roiocam:clean-code-add-method
Aug 29, 2024
Merged

chore: clean code DefaultChannelPipeline add method#14249
normanmaurer merged 6 commits into
netty:4.1from
Roiocam:clean-code-add-method

Conversation

@Roiocam

@Roiocam Roiocam commented Aug 22, 2024

Copy link
Copy Markdown
Contributor

Motivation:

DefaultChannelPipeline has some duplicate code on there, it can be simplified using templates

Modification:

The new internalAdd method is used by addFirst, addLast, addBefore and addAfter

Result:

Clean code

Motivation:

DefaultChannelPipeline has some duplicate code on there, it can be simplified using templates.

Modification:

The new `internalAdd`` method is used by `addFirst`, `addLast`, `addBefore` and `addAfter`

Result:

Clean code
Comment thread transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java Outdated
@normanmaurer

Copy link
Copy Markdown
Member

@Roiocam did you sign our ical ? https://netty.io/s/icla

@normanmaurer normanmaurer added this to the 4.1.113.Final milestone Aug 27, 2024
@Roiocam

Roiocam commented Aug 28, 2024

Copy link
Copy Markdown
Contributor Author

@Roiocam did you sign our ical ? netty.io/s/icla

Yes, I found no format plugin, so I manually added a line break to fix the CI failed.

@normanmaurer

Copy link
Copy Markdown
Member

@chrisvest WDYT ?

@normanmaurer normanmaurer merged commit 95d86bb into netty:4.1 Aug 29, 2024
@normanmaurer

Copy link
Copy Markdown
Member

@Roiocam thanks!

normanmaurer pushed a commit that referenced this pull request Aug 29, 2024
Motivation:

DefaultChannelPipeline has some duplicate code on there, it can be
simplified using templates

Modification:

The new `internalAdd` method is used by `addFirst`, `addLast`,
`addBefore` and `addAfter`

Result:

Clean code
@Roiocam Roiocam deleted the clean-code-add-method branch August 29, 2024 09:10
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