[#147] Converted big ints to small ints
This commit is contained in:
@@ -21,7 +21,7 @@ public class LoanApplicationService {
|
||||
|
||||
private final RestTemplate restTemplate;
|
||||
|
||||
private Integer port = 8080;
|
||||
private int port = 8080;
|
||||
|
||||
public LoanApplicationService() {
|
||||
this.restTemplate = new RestTemplate();
|
||||
@@ -61,7 +61,7 @@ public class LoanApplicationService {
|
||||
return new LoanApplicationResult(applicationStatus, response.getRejectionReason());
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
public void setPort(int port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import spock.lang.Specification
|
||||
@ContextConfiguration(loader = SpringApplicationContextLoader, classes = Application)
|
||||
class LoanApplicationServiceSpec extends Specification {
|
||||
|
||||
public static Integer port = org.springframework.util.SocketUtils.findAvailableTcpPort()
|
||||
public static int port = org.springframework.util.SocketUtils.findAvailableTcpPort()
|
||||
|
||||
@ClassRule
|
||||
@Shared
|
||||
|
||||
@@ -21,7 +21,7 @@ public class LoanApplicationService {
|
||||
|
||||
private final RestTemplate restTemplate;
|
||||
|
||||
private Integer port = 8080;
|
||||
private int port = 8080;
|
||||
|
||||
public LoanApplicationService() {
|
||||
this.restTemplate = new RestTemplate();
|
||||
@@ -61,7 +61,7 @@ public class LoanApplicationService {
|
||||
return new LoanApplicationResult(applicationStatus, response.getRejectionReason());
|
||||
}
|
||||
|
||||
public void setPort(Integer port) {
|
||||
public void setPort(int port) {
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import spock.lang.Specification
|
||||
@ContextConfiguration(loader = SpringApplicationContextLoader, classes = Application)
|
||||
class LoanApplicationServiceSpec extends Specification {
|
||||
|
||||
public static Integer port = org.springframework.util.SocketUtils.findAvailableTcpPort()
|
||||
public static int port = org.springframework.util.SocketUtils.findAvailableTcpPort()
|
||||
|
||||
@ClassRule
|
||||
@Shared
|
||||
|
||||
Reference in New Issue
Block a user