GUACAMOLE-1809: Remove obsolete license information

The Spring framework is no longer used.
This commit is contained in:
Inperpetuammemoriam
2023-06-11 13:42:08 +02:00
parent 0530450748
commit 3e11ee8d8c
7 changed files with 3 additions and 31 deletions

View File

@@ -52,7 +52,7 @@ public class RequestValidationService {
* @param confService
* The (mock) instance of ConfigurationService
*/
private RequestValidationService(ConfigurationService confService) {
public RequestValidationService(ConfigurationService confService) {
this.confService = confService;
}

View File

@@ -61,7 +61,7 @@ public class RequestValidationServiceTest {
*/
private MockConfigurationService(String trustedNetworks) {
if (trustedNetworks == null || trustedNetworks.isEmpty())
trustedNetworks = Collections.<String>emptyList();
this.trustedNetworks = Collections.<String>emptyList();
else
this.trustedNetworks = Arrays.asList(Pattern.compile(",\\s*").split(trustedNetworks));
}
@@ -372,7 +372,7 @@ public class RequestValidationServiceTest {
@Test
public void testNoTrustedNetwork() {
requestService = new RequestValidationService(new MockConfigurationService());
requestService = new RequestValidationService(new MockConfigurationService(null));
try {
assertTrue(requestService.isAuthenticationAllowed(mockHttpServletRequest("1.1.1.1")));