Skip to content

Commit

Permalink
Merge branch '3.1.x' into 3.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Feb 12, 2024
2 parents 81bfadb + 8ffcfc9 commit 4387b79
Show file tree
Hide file tree
Showing 51 changed files with 69 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private void customizeSameAsParentContext(T factory) {
customizers.add(BeanFactoryUtils.beanOfTypeIncludingAncestors(this.beanFactory, customizerClass));
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
}
invokeCustomizers(factory, customizers);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private void cleanExpiredCachedResponses(long accessTime) {
this.cachedResponses.entrySet().removeIf((entry) -> entry.getValue().isStale(accessTime, this.timeToLive));
}
catch (Exception ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ void healthWhenIndicatorIsSlow(CapturedOutput output) {
Thread.sleep(100);
}
catch (InterruptedException ex) {
// Ignore
}
return this.up;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ private void configureConfigurationClassPostProcessor(BeanDefinitionRegistry reg
registry.getBeanDefinition(AnnotationConfigUtils.CONFIGURATION_ANNOTATION_PROCESSOR_BEAN_NAME));
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeM
}
}
catch (BindException ex) {
// Ignore
}
return ConditionOutcome.noMatch(message.because("unknown cache type"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ private Set<Class<?>> resolveWhenPossible(Set<String> classNames) {
resolved.add(resolve(className, this.classLoader));
}
catch (ClassNotFoundException | NoClassDefFoundError ex) {
// Ignore
}
}
return resolved;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ private abstract static class AbstractOptions {
lookup.put(getCanonicalName(field.getName()), option);
}
catch (IllegalAccessException ex) {
// Ignore
}
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ private Resource getIndexHtmlResource(Resource location) {
}
}
catch (Exception ex) {
// Ignore
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ private ModelAndView resolveResource(String viewName, Map<String, Object> model)
}
}
catch (Exception ex) {
// Ignore
}
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ public Object postProcessAfterInitialization(Object bean, String beanName) throw
jobRegistry.register(getJobFactory());
}
catch (DuplicateJobException ex) {
// Ignore
}
}
return bean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ void filterIsRegisteredWithAsyncErrorAndRequestDispatcherTypes() {
delegatingFilterProxy.doFilter(null, null, null);
}
catch (Exception ex) {
// Ignore
}
assertThat(delegatingFilterProxy).extracting("delegate")
.isSameAs(context.getBean(SessionRepositoryFilter.class));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private void check(RunningService service, int port, Socket socket) throws IOExc
}
}
catch (SocketTimeoutException ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) t
registry.removeBeanDefinition(ImportsConfiguration.BEAN_NAME);
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ private Method getMainMethod(MergedContextConfiguration mergedConfig, UseMainMet
mainMethod = ReflectionUtils.findMethod(kotlinClass, "main", String[].class);
}
catch (ClassNotFoundException ex) {
// Ignore
}
}
Assert.state(mainMethod != null || useMainMethod == UseMainMethod.WHEN_AVAILABLE,
Expand Down Expand Up @@ -555,6 +556,7 @@ private ApplicationContext run(ThrowingSupplier<ConfigurableApplicationContext>
}
}
catch (AbandonedRunException ex) {
// Ignore
}
catch (Exception ex) {
if (this.failedContexts.size() == 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ public ApplicationContextAssert<C> doesNotHaveBean(String name) {
getApplicationContext(), name, bean));
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ private void closeQuietly(Closeable closeable) {
closeable.close();
}
catch (IOException ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ void assertDoesNotHavePath() {
failWithMessage("Expecting no JSON path \"%s\"", this.expression);
}
catch (PathNotFoundException ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
}
}
catch (NoSuchBeanDefinitionException ex) {
// Ignore
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public final D getConnectionDetails(ContainerConnectionSource<C> source) {
}
}
catch (NoClassDefFoundError ex) {
// Ignore
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ private PrivateKey parse(byte[] bytes) {
return keyFactory.generatePrivate(keySpec);
}
catch (InvalidKeySpecException | NoSuchAlgorithmException ex) {
// Ignore
}
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public void onUpdate(TestImageUpdateEvent event) {
Thread.sleep(10);
}
catch (InterruptedException ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ static Double toDouble(Object value) {
try {
return Double.valueOf((String) value);
}
catch (NumberFormatException ignored) {
catch (NumberFormatException ex) {
// Ignore
}
}
return null;
Expand All @@ -68,7 +69,8 @@ static Integer toInteger(Object value) {
try {
return (int) Double.parseDouble((String) value);
}
catch (NumberFormatException ignored) {
catch (NumberFormatException ex) {
// Ignore
}
}
return null;
Expand All @@ -85,7 +87,8 @@ static Long toLong(Object value) {
try {
return (long) Double.parseDouble((String) value);
}
catch (NumberFormatException ignored) {
catch (NumberFormatException ex) {
// Ignore
}
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,8 @@ else if (o.getClass().isArray()) {
return o.toString();
}
}
catch (Exception ignored) {
catch (Exception ex) {
// Ignore
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ else if (number.startsWith("0") && number.length() > 1) {
try {
return Double.valueOf(literal);
}
catch (NumberFormatException ignored) {
catch (NumberFormatException ex) {
// Ignore
}

/* ... finally give up. We have an unquoted string */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ private void closeQuietly(OutputStream outputStream) {
outputStream.close();
}
catch (IOException ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundE
return result;
}
catch (ClassNotFoundException ex) {
// Ignore
}
}
if (this.exploded) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private Path createUnpackDirectory(Path parent) {
return unpackDirectory;
}
catch (IOException ex) {
// Ignore
}
}
throw new IllegalStateException("Failed to create unpack directory in directory '" + parent + "'");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ private URLConnection openFallbackTomcatConnection(URL url) {
return connection;
}
catch (IOException ex) {
// Ignore
}
}
return null;
Expand All @@ -154,6 +155,7 @@ private boolean isTomcatWarUrl(String file) {
}
}
catch (Exception ex) {
// Ignore
}
}
return false;
Expand All @@ -174,6 +176,7 @@ private URLConnection openFallbackContextConnection(URL url) {
}
}
catch (Exception ex) {
// Ignore
}
return null;
}
Expand Down Expand Up @@ -425,6 +428,7 @@ static void captureJarContextUrl() {
}
}
catch (Exception ex) {
// Ignore
}
}
finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ private JarFile(RandomAccessDataFile rootFile, String pathFromRoot, RandomAccess
super.close();
}
catch (IOException ioex) {
// Ignore
}
throw ex;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private void closeZipFileSystem(FileSystem zipFileSystem) {
zipFileSystem.close();
}
catch (Exception ex) {
// Ignore
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ void tearDown() throws Exception {
this.zipContent.close();
}
catch (IllegalStateException ex) {
// Ignore
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ void repackagedJarContainsTheLayersIndexByDefault(MavenBuild mavenBuild) {
.anyMatch((dependency) -> dependency.startsWith("BOOT-INF/lib/log4j-api-2"));
}
catch (IOException ex) {
// Ignore
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ void repackagedWarContainsTheLayersIndexByDefault(MavenBuild mavenBuild) {
.anyMatch((dependency) -> dependency.startsWith("WEB-INF/lib-provided/"));
}
catch (IOException ex) {
// Ignore
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ private static boolean isShortenedIntelliJJar(URL url) {
return createdBy != null && createdBy.contains("IntelliJ");
}
catch (Exception ex) {
// Ignore
}
}
return false;
Expand Down Expand Up @@ -330,6 +331,7 @@ private boolean isExcluded(URL url) {
}
}
catch (URISyntaxException ex) {
// Ignore
}
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ AnsiElement getElement(String postfix) {
try {
return this.factory.apply(Integer.parseInt(postfix));
}
catch (IllegalArgumentException ignored) {
catch (IllegalArgumentException ex) {
// Ignore
}
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ private static Map<String, ConfigurationPropertiesBean> getAll(ConfigurableAppli
}
}
catch (Exception ex) {
// Ignore
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private void collectUnbound(ConfigurationPropertyName name, Set<ConfigurationPro
source.filter((candidate) -> isUnbound(name, candidate)).getConfigurationProperty(unboundName));
}
catch (Exception ex) {
// Ignore
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ private <T> T getBoundField(Map<ConfigurationPropertyName, T> boundFields, Strin
}
}
catch (Exception ex) {
// Ignore
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public boolean containsProperty(String key) {
return attached.findConfigurationProperty(name) != null;
}
catch (Exception ex) {
// Ignore
}
}
}
Expand Down Expand Up @@ -91,6 +92,7 @@ private Object findPropertyValue(String key) {
return (configurationProperty != null) ? configurationProperty.getValue() : null;
}
catch (Exception ex) {
// Ignore
}
}
}
Expand Down
Loading

0 comments on commit 4387b79

Please sign in to comment.