Skip to content

Commit

Permalink
Merge pull request #5021 from ghubstan/fix-annotations
Browse files Browse the repository at this point in the history
Adjust lombok annotations to reduce build warnings
  • Loading branch information
sqrrm authored Jan 4, 2021
2 parents ffb2aa8 + 0c9c961 commit 6fc9ad4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.util.Optional;
import java.util.stream.Collectors;

import lombok.Value;
import lombok.Getter;

import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
Expand All @@ -39,7 +39,7 @@
* Gets persisted.
*/
@Immutable
@Value
@Getter
public final class Tx extends BaseTx implements PersistablePayload, ImmutableDaoStateModel {
// Created after parsing of a tx is completed. We store only the immutable tx in the block.
public static Tx fromTempTx(TempTx tempTx) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import java.util.Objects;

import lombok.Data;
import lombok.Getter;

import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
Expand All @@ -36,7 +36,7 @@
* Gets persisted.
*/
@Immutable
@Data
@Getter
public class TxOutput extends BaseTxOutput implements PersistablePayload, ImmutableDaoStateModel {
public static TxOutput fromTempOutput(TempTxOutput tempTxOutput) {
return new TxOutput(tempTxOutput.getIndex(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
import java.util.Map;
import java.util.Objects;

import lombok.Value;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.concurrent.Immutable;

@Immutable
@Slf4j
@Value
@Getter
public final class ChangeParamProposal extends Proposal implements ImmutableDaoStateModel {
private final Param param;
private final String paramValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@
import bisq.common.app.Version;
import bisq.common.proto.network.NetworkEnvelope;

import lombok.Value;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

@Value
@Getter
@EqualsAndHashCode(callSuper = false)
@ToString
public class GetInventoryRequest extends NetworkEnvelope {
private final String version;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@
import java.util.HashMap;
import java.util.Map;

import lombok.Value;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

@Value
@Getter
@EqualsAndHashCode(callSuper = false)
@ToString
public class GetInventoryResponse extends NetworkEnvelope {
private final Map<InventoryItem, String> inventory;

Expand Down

0 comments on commit 6fc9ad4

Please sign in to comment.