Skip to content

Commit

Permalink
resolves #38. Errorprone causes issues with the build when this setti…
Browse files Browse the repository at this point in the history
…ng is on check('FieldCanBeFinal', CheckSeverity.WARN) (#44)
  • Loading branch information
jrhea committed Dec 20, 2018
1 parent 9333938 commit a3d7afe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ public class ValidatorRecord {
private UInt64 latest_status_change_slot;
private UInt64 exit_count;

public ValidatorRecord(){}

public ValidatorRecord(int pubkey, Hash withdrawal_credentials, Hash randao_commitment,
public ValidatorRecord(int pubkey, Hash withdrawal_credentials, Hash randao_commitment,
UInt64 randao_layers, UInt64 deposit, UInt64 status, UInt64 slot, UInt64 exit_count) {
this.pubkey = new UInt384(pubkey);
this.withdrawal_credentials = withdrawal_credentials;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ public class BeaconState {
private Hash processed_pow_receipt_root;
private ArrayList<CandidatePoWReceiptRootRecord> candidate_pow_receipt_roots;

// Default Constructor
public BeaconState()
{
}

public BeaconState(
// Misc
UInt64 slot, UInt64 genesis_time, ForkData fork_data,
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ allprojects {
// We use the JSR-305 annotations instead of the Google annotations.
check('ImmutableEnumChecker', CheckSeverity.OFF)

check('FieldCanBeFinal', CheckSeverity.WARN)
check('FieldCanBeFinal', CheckSeverity.OFF)
check('InsecureCryptoUsage', CheckSeverity.WARN)
check('WildcardImport', CheckSeverity.WARN)
}
Expand Down

0 comments on commit a3d7afe

Please sign in to comment.