Is there any java standards that states that a package private class should have a /package/ in the beginning of the class name?
/*package*/ class MyPackagePrivateClass {
private var1;
private var2;
}
Official standards, no. Standards set forth by a particular company or project, maybe.
The problem with standards that require certain documentation (JavaDocs aside) is that they'll have to make a linter to enforce it. Otherwise, it's a pretty useless piece of information.
However, there's nothing "official" about that particular comment style. As others have mentioned in the comments the fact the lack of public or private can either be deliberate or accidental may definitely prompt a particular group to enforce such a standard.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With