Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make port numbers protected (now static)#11421

Unanswered
jimisola asked this question inQ&A
Discussion options

I'm trying to contribute toArconia andnoticed that the port number in the different Container classes are private.

E.g. forRabbitMQContainer

private static final int DEFAULT_AMQP_PORT = 5672;private static final int DEFAULT_AMQPS_PORT = 5671;private static final int DEFAULT_HTTPS_PORT = 15671;private static final int DEFAULT_HTTP_PORT = 15672;

This causes some duplication of code when such as class is extended and the subclass has the add those constants again.

Would it be possible to be a bit more lenient with the access and change it toprotected?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@jimisola

[8]ページ先頭

©2009-2026 Movatter.jp