Improve structure of java classes to make them consistent #538
Labels
👏 help wanted
Extra attention is needed
📄 java
Pull requests that update Java code
♻️ duplicate
This issue or pull request already exists
🌷 enhancement
New feature or request
Projects
Milestone
If you take a look at our Java classes it is visible that not all of them do have the same structure. What I mean by that is the order in which we group our classes.
Imo it should have a strict order to follow. The general rule of thumb should be the following:
I think that's a good rule because public methods are usually most important to potential users of the API. We can enforce this rule because methods do not have to be declared before being used like in other languages, e.g., C or C++.
This leads to a more clear structure and therefore make the code more clean.
We could also enforce more strict rules for each of the visibilities like:
What do you think about this proposal?
I also prepared an example, I rewrote
TelestionVerticle
for that matter.The text was updated successfully, but these errors were encountered: