Harmonize style of igored exceptions across the codebase

This commit is contained in:
Moritz Halbritter 2024-02-12 10:09:29 +01:00
parent 831a98c83c
commit 8ffcfc9b77
51 changed files with 116 additions and 55 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -81,6 +81,7 @@ public abstract class ManagementWebServerFactoryCustomizer<T extends Configurabl
customizers.add(BeanFactoryUtils.beanOfTypeIncludingAncestors(this.beanFactory, customizerClass));
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
}
invokeCustomizers(factory, customizers);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -110,6 +110,7 @@ public class CachingOperationInvoker implements OperationInvoker {
this.cachedResponses.entrySet().removeIf((entry) -> entry.getValue().isStale(accessTime, this.timeToLive));
}
catch (Exception ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -79,6 +79,7 @@ class HealthEndpointTests extends
Thread.sleep(100);
}
catch (InterruptedException ex) {
// Ignore
}
return this.up;
};

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -124,6 +124,7 @@ class SharedMetadataReaderFactoryContextInitializer implements
registry.getBeanDefinition(AnnotationConfigUtils.CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME));
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -56,6 +56,7 @@ class CacheCondition extends SpringBootCondition {
}
}
catch (BindException ex) {
// Ignore
}
return ConditionOutcome.noMatch(message.because("unknown cache type"));
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -500,6 +500,7 @@ class OnBeanCondition extends FilteringSpringBootCondition implements Configurat
resolved.add(resolve(className, this.classLoader));
}
catch (ClassNotFoundException | NoClassDefFoundError ex) {
// Ignore
}
}
return resolved;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -164,6 +164,7 @@ public class UndertowWebServerFactoryCustomizer
lookup.put(getCanonicalName(field.getName()), option);
}
catch (IllegalAccessException ex) {
// Ignore
}
}
});

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -514,6 +514,7 @@ public class WebMvcAutoConfiguration {
}
}
catch (Exception ex) {
// Ignore
}
return null;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -126,6 +126,7 @@ public class DefaultErrorViewResolver implements ErrorViewResolver, Ordered {
}
}
catch (Exception ex) {
// Ignore
}
}
return null;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -584,6 +584,7 @@ class BatchAutoConfigurationTests {
jobRegistry.register(getJobFactory());
}
catch (DuplicateJobException ex) {
// Ignore
}
}
return bean;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -106,6 +106,7 @@ class SessionAutoConfigurationTests extends AbstractSessionAutoConfigurationTest
delegatingFilterProxy.doFilter(null, null, null);
}
catch (Exception ex) {
// Ignore
}
assertThat(delegatingFilterProxy).extracting("delegate")
.isSameAs(context.getBean(SessionRepositoryFilter.class));

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -72,6 +72,7 @@ class TcpConnectServiceReadinessCheck {
}
}
catch (SocketTimeoutException ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -43,6 +43,7 @@ public final class JsonTypeExcludeFilter extends StandardAnnotationCustomizableT
includes.add(ClassUtils.forName(JACKSON_MODULE, null));
}
catch (Exception ex) {
// Ignore
}
includes.add(JsonComponent.class);
DEFAULT_INCLUDES = Collections.unmodifiableSet(includes);

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -205,6 +205,7 @@ class ImportsContextCustomizer implements ContextCustomizer {
registry.removeBeanDefinition(ImportsConfiguration.BEAN_NAME);
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
}

View File

@ -167,6 +167,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
mainMethod = ReflectionUtils.findMethod(kotlinClass, "main", String[].class);
}
catch (ClassNotFoundException ex) {
// Ignore
}
}
Assert.state(mainMethod != null || useMainMethod == UseMainMethod.WHEN_AVAILABLE,
@ -548,6 +549,7 @@ public class SpringBootContextLoader extends AbstractContextLoader implements Ao
}
}
catch (AbandonedRunException ex) {
// Ignore
}
catch (Exception ex) {
if (this.failedContexts.size() == 1) {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -203,6 +203,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
getApplicationContext(), name, bean));
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
return this;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -316,6 +316,7 @@ public abstract class AbstractJsonMarshalTester<T> {
closeable.close();
}
catch (IOException ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -1095,6 +1095,7 @@ public class JsonContentAssert extends AbstractAssert<JsonContentAssert, CharSeq
failWithMessage("Expecting no JSON path \"%s\"", this.expression);
}
catch (PathNotFoundException ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -50,6 +50,7 @@ class TestcontainersLifecycleBeanFactoryPostProcessor implements BeanFactoryPost
}
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -93,6 +93,7 @@ public abstract class ContainerConnectionDetailsFactory<C extends Container<?>,
}
}
catch (NoClassDefFoundError ex) {
// Ignore
}
return null;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -203,6 +203,7 @@ final class PrivateKeyParser {
return keyFactory.generatePrivate(keySpec);
}
catch (InvalidKeySpecException | NoSuchAlgorithmException ex) {
// Ignore
}
}
return null;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -78,6 +78,7 @@ class TotalProgressListenerTests extends AbstractJsonTests {
Thread.sleep(10);
}
catch (InterruptedException ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2010 The Android Open Source Project
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -51,7 +51,8 @@ class JSON {
try {
return Double.valueOf((String) value);
}
catch (NumberFormatException ignored) {
catch (NumberFormatException ex) {
// Ignore
}
}
return null;
@ -68,7 +69,8 @@ class JSON {
try {
return (int) Double.parseDouble((String) value);
}
catch (NumberFormatException ignored) {
catch (NumberFormatException ex) {
// Ignore
}
}
return null;
@ -85,7 +87,8 @@ class JSON {
try {
return (long) Double.parseDouble((String) value);
}
catch (NumberFormatException ignored) {
catch (NumberFormatException ex) {
// Ignore
}
}
return null;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2010 The Android Open Source Project
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -827,7 +827,8 @@ public class JSONObject {
return o.toString();
}
}
catch (Exception ignored) {
catch (Exception ex) {
// Ignore
}
return null;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2010 The Android Open Source Project
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -320,7 +320,8 @@ public class JSONTokener {
try {
return Double.valueOf(literal);
}
catch (NumberFormatException ignored) {
catch (NumberFormatException ex) {
// Ignore
}
/* ... finally give up. We have an unquoted string */

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -196,6 +196,7 @@ class BootZipCopyAction implements CopyAction {
outputStream.close();
}
catch (IOException ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -127,6 +127,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
return result;
}
catch (ClassNotFoundException ex) {
// Ignore
}
}
if (this.exploded) {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -151,6 +151,7 @@ public class JarFileArchive implements Archive {
return unpackDirectory;
}
catch (IOException ex) {
// Ignore
}
}
throw new IllegalStateException("Failed to create unpack directory in directory '" + parent + "'");

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -140,6 +140,7 @@ public class Handler extends URLStreamHandler {
return connection;
}
catch (IOException ex) {
// Ignore
}
}
return null;
@ -154,6 +155,7 @@ public class Handler extends URLStreamHandler {
}
}
catch (Exception ex) {
// Ignore
}
}
return false;
@ -174,6 +176,7 @@ public class Handler extends URLStreamHandler {
}
}
catch (Exception ex) {
// Ignore
}
return null;
}
@ -425,6 +428,7 @@ public class Handler extends URLStreamHandler {
}
}
catch (Exception ex) {
// Ignore
}
}
finally {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -144,6 +144,7 @@ public class JarFile extends AbstractJarFile implements Iterable<java.util.jar.J
super.close();
}
catch (IOException ioex) {
// Ignore
}
throw ex;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -329,6 +329,7 @@ class JarIntegrationTests extends AbstractArchiveIntegrationTests {
.anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-2"));
}
catch (IOException ex) {
// Ignore
}
});
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -166,6 +166,7 @@ class WarIntegrationTests extends AbstractArchiveIntegrationTests {
.anyMatch((dependency) -> dependency.startsWith("WEB-INF/lib-provided/"));
}
catch (IOException ex) {
// Ignore
}
});
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -176,6 +176,7 @@ final class ModifiedClassPathClassLoader extends URLClassLoader {
return createdBy != null && createdBy.contains("IntelliJ");
}
catch (Exception ex) {
// Ignore
}
}
return false;
@ -309,6 +310,7 @@ final class ModifiedClassPathClassLoader extends URLClassLoader {
}
}
catch (URISyntaxException ex) {
// Ignore
}
}
return false;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -150,7 +150,8 @@ public class AnsiPropertySource extends PropertySource<AnsiElement> {
try {
return this.factory.apply(Integer.parseInt(postfix));
}
catch (IllegalArgumentException ignored) {
catch (IllegalArgumentException ex) {
// Ignore
}
}
return null;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -171,6 +171,7 @@ public final class ConfigurationPropertiesBean {
}
}
catch (Exception ex) {
// Ignore
}
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -110,6 +110,7 @@ public class NoUnboundElementsBindHandler extends AbstractBindHandler {
source.filter((candidate) -> isUnbound(name, candidate)).getConfigurationProperty(unboundName));
}
catch (Exception ex) {
// Ignore
}
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -212,6 +212,7 @@ public class ValidationBindHandler extends AbstractBindHandler {
}
}
catch (Exception ex) {
// Ignore
}
return null;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -49,6 +49,7 @@ class ConfigurationPropertySourcesPropertyResolver extends AbstractPropertyResol
return attached.findConfigurationProperty(name) != null;
}
catch (Exception ex) {
// Ignore
}
}
}
@ -91,6 +92,7 @@ class ConfigurationPropertySourcesPropertyResolver extends AbstractPropertyResol
return (configurationProperty != null) ? configurationProperty.getValue() : null;
}
catch (Exception ex) {
// Ignore
}
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -75,6 +75,7 @@ final class DefaultPropertyMapper implements PropertyMapper {
}
}
catch (Exception ex) {
// Ignore
}
return ConfigurationPropertyName.EMPTY;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -89,6 +89,7 @@ class SpringConfigurationPropertySource implements ConfigurationPropertySource {
}
}
catch (Exception ex) {
// Ignore
}
}
return null;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -121,6 +121,7 @@ public class TextResourceOrigin implements Origin {
}
}
catch (IOException ex) {
// Ignore
}
return resource.getDescription();
}

View File

@ -261,6 +261,7 @@ final class PemPrivateKeyParser {
return keyFactory.generatePrivate(keySpec);
}
catch (InvalidKeySpecException | NoSuchAlgorithmException ex) {
// Ignore
}
}
return null;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -82,6 +82,7 @@ public class ApplicationHome {
}
}
catch (Exception ex) {
// Ignore
}
}
return null;
@ -98,6 +99,7 @@ public class ApplicationHome {
}
}
catch (Exception ex) {
// Ignore
}
return null;
}
@ -112,6 +114,7 @@ public class ApplicationHome {
}
}
catch (Exception ex) {
// Ignore
}
return false;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -128,6 +128,7 @@ public class NettyWebServer implements WebServer {
message.append(String.format(format, value));
}
catch (UnsupportedOperationException ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -155,6 +155,7 @@ public class UndertowWebServer implements WebServer {
closeable.close();
}
catch (Exception ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -304,6 +304,7 @@ public class ErrorPageFilter implements Filter, ErrorPageRegistry, Ordered {
collection.add(ClassUtils.forName(className, null));
}
catch (Throwable ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -139,6 +139,7 @@ class BufferingApplicationStartupTests {
Thread.sleep(1);
}
catch (InterruptedException ex) {
// Ignore
}
step.end();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -208,6 +208,7 @@ class BindConverterTests {
thread.join();
}
catch (InterruptedException ex) {
// Ignore
}
}
assertThat(results).isNotEmpty().doesNotContainNull();

View File

@ -133,6 +133,7 @@ class ApplicationContextRequestMatcherTests {
thread.join(1000);
}
catch (InterruptedException ex) {
// Ignore
}
}
@ -205,6 +206,7 @@ class ApplicationContextRequestMatcherTests {
Thread.sleep(200);
}
catch (InterruptedException ex) {
// Ignore
}
this.initialized.set(true);
}

View File

@ -1262,7 +1262,7 @@ public abstract class AbstractServletWebServerFactoryTests {
blockingServlet.admitOne();
}
catch (RuntimeException ex) {
// Ignore
}
}
@ -1318,7 +1318,7 @@ public abstract class AbstractServletWebServerFactoryTests {
blockingServlet.admitOne();
}
catch (RuntimeException ex) {
// Ignore
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -132,6 +132,7 @@ abstract class AbstractApplicationLauncher implements BeforeEachCallback {
StreamUtils.copy(this.input, this.output);
}
catch (IOException ex) {
// Ignore
}
}