Commit a03a3dd3 authored by Schudel, MJ (Michel)'s avatar Schudel, MJ (Michel)

fixed a few deprecration warnings

parent a3a426fd
package nl.craftsmen.blockchain.craftscoinnode;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.context.annotation.Configuration;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
......@@ -15,14 +15,18 @@ import java.util.Set;
public class CraftsCoinRestController {
private BlockchainService blockchainService;
private final BlockchainService blockchainService;
private WalletService walletService;
private final WalletService walletService;
private final Network network;
private Network network;
public CraftsCoinRestController(BlockchainService blockchainService, WalletService walletService, Network network) {
this.blockchainService = blockchainService;
this.walletService = walletService; = network;
* Creates a new transaction on this node.
......@@ -13,7 +13,7 @@ import java.util.Optional;
class KeyRepository {
private InstanceInfo instanceInfo;
private final InstanceInfo instanceInfo;
KeyRepository(InstanceInfo instanceInfo) {
......@@ -22,7 +22,7 @@ public class SignatureService {
private static final String ALGORITHM = "ECDSA";
private static final String BC = "BC";
private KeyRepository keyRepository;
private final KeyRepository keyRepository;
private KeyPair keyPair;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment