[#147] Converted big ints to small ints

This commit is contained in:
Marcin Grzejszczak
2015-11-15 20:09:53 +01:00
parent ce24a99262
commit d2431f4501
4 changed files with 6 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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