acoburn opened a new pull request #806: ISSUE #230: Enable checkstyle on bookie 
and client
URL: https://github.com/apache/bookkeeper/pull/806
 
 
   Part of #230, this adds checkstyle verification to the bookie and client 
packages in `bookkeeper-server`.
   
   Descriptions of the changes in this PR:
   
   The changes here are primarily cosmetic, but there are also two notable 
changes to point out:
   
   1. In both `TopologyAwareEnsemblePlacementPolicy.TruePredicate` and 
`TopologyAwareEnsemblePlacementPolicy.EnsembleForReplacementWithNoConstraints` 
a `public static final` field was renamed from `instance` to `INSTANCE`. This 
is consistent with the use of an `INSTANCE` field in the `bookkeeper-stats` 
package. An alternative would be to introduce a public method `getInstance()`, 
but either way the checkstyle rules don't like a public constant field in lower 
case.
   
   2. In `UpdateLedgerOp#updateBookieIdInLedgers()`, the `throws BKException` 
part of the signature is problematic and prevents the checkstyle validation 
from completing successfully. From what I can tell, that checked exception is 
never thrown; as such, I have removed that from the signature. I have also 
removed the corresponding guard from `bookie.BookieShell`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to