Fixed javadoc warnings (#159)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Roberto Saltini 6 years ago committed by GitHub
parent 7e09bd9246
commit 0c9dee764f
  1. 1
      consensus/ibft/src/main/java/tech/pegasys/pantheon/consensus/ibft/ibftmessagedata/IbftUnsignedPrepareMessageData.java
  2. 1
      consensus/ibft/src/main/java/tech/pegasys/pantheon/consensus/ibft/ibftmessagedata/IbftUnsignedRoundChangeMessageData.java
  3. 2
      consensus/ibft/src/main/java/tech/pegasys/pantheon/consensus/ibft/protocol/IbftProtocolManager.java
  4. 4
      ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/core/Util.java

@ -22,7 +22,6 @@ public class IbftUnsignedPrepareMessageData extends AbstractIbftUnsignedInRoundM
private static final int TYPE = IbftV2.PREPARE;
private final Hash digest;
/** Constructor used when a validator wants to send a message */
public IbftUnsignedPrepareMessageData(
final ConsensusRoundIdentifier roundIdentifier, final Hash digest) {
super(roundIdentifier);

@ -29,7 +29,6 @@ public class IbftUnsignedRoundChangeMessageData extends AbstractIbftUnsignedMess
// The validator may not hae any prepared certificate
private final Optional<IbftPreparedCertificate> preparedCertificate;
/** Constructor used only by the {@link #readFrom(RLPInput)} method */
public IbftUnsignedRoundChangeMessageData(
final ConsensusRoundIdentifier roundIdentifier,
final Optional<IbftPreparedCertificate> preparedCertificate) {

@ -38,7 +38,7 @@ public class IbftProtocolManager implements ProtocolManager {
* Constructor for the ibft protocol manager
*
* @param ibftEventQueue Entry point into the ibft event processor
* @param peers
* @param peers iBFT network peers
*/
public IbftProtocolManager(final IbftEventQueue ibftEventQueue, final IbftNetworkPeers peers) {
this.ibftEventQueue = ibftEventQueue;

@ -38,6 +38,10 @@ public class Util {
/**
* Implements a fast version of ceiling(numerator/denominator) that does not require using
* floating point math
*
* @param numerator Numerator
* @param denominator Denominator
* @return result of ceiling(numerator/denominator)
*/
public static int fastDivCeiling(final int numerator, final int denominator) {
return ((numerator - 1) / denominator) + 1;

Loading…
Cancel
Save