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.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
@Configuration
@ConfigurationProperties("node")
......
......@@ -15,14 +15,18 @@ import java.util.Set;
@RestController
public class CraftsCoinRestController {
@Autowired
private BlockchainService blockchainService;
private final BlockchainService blockchainService;
@Autowired
private WalletService walletService;
private final WalletService walletService;
private final Network network;
@Autowired
private Network network;
public CraftsCoinRestController(BlockchainService blockchainService, WalletService walletService, Network network) {
this.blockchainService = blockchainService;
this.walletService = walletService;
this.network = network;
}
/**
* Creates a new transaction on this node.
......
......@@ -13,7 +13,7 @@ import java.util.Optional;
@Component
class KeyRepository {
private InstanceInfo instanceInfo;
private final InstanceInfo instanceInfo;
@Autowired
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;
@Autowired
......
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