Remove useless empty inheritDoc Javadoc tag

This commit is contained in:
Stéphane Nicoll
2023-12-22 11:23:11 +01:00
parent 12f6330fae
commit cd8bc2f82a
6 changed files with 2 additions and 62 deletions

View File

@@ -114,18 +114,12 @@ public class DefaultContextCache implements ContextCache {
} }
/**
* {@inheritDoc}
*/
@Override @Override
public boolean contains(MergedContextConfiguration key) { public boolean contains(MergedContextConfiguration key) {
Assert.notNull(key, "Key must not be null"); Assert.notNull(key, "Key must not be null");
return this.contextMap.containsKey(key); return this.contextMap.containsKey(key);
} }
/**
* {@inheritDoc}
*/
@Override @Override
@Nullable @Nullable
public ApplicationContext get(MergedContextConfiguration key) { public ApplicationContext get(MergedContextConfiguration key) {
@@ -140,9 +134,6 @@ public class DefaultContextCache implements ContextCache {
return context; return context;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void put(MergedContextConfiguration key, ApplicationContext context) { public void put(MergedContextConfiguration key, ApplicationContext context) {
Assert.notNull(key, "Key must not be null"); Assert.notNull(key, "Key must not be null");
@@ -159,9 +150,6 @@ public class DefaultContextCache implements ContextCache {
} }
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void remove(MergedContextConfiguration key, @Nullable HierarchyMode hierarchyMode) { public void remove(MergedContextConfiguration key, @Nullable HierarchyMode hierarchyMode) {
Assert.notNull(key, "Key must not be null"); Assert.notNull(key, "Key must not be null");
@@ -218,26 +206,17 @@ public class DefaultContextCache implements ContextCache {
removedContexts.add(key); removedContexts.add(key);
} }
/**
* {@inheritDoc}
*/
@Override @Override
public int getFailureCount(MergedContextConfiguration key) { public int getFailureCount(MergedContextConfiguration key) {
return this.failureCounts.getOrDefault(key, 0); return this.failureCounts.getOrDefault(key, 0);
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void incrementFailureCount(MergedContextConfiguration key) { public void incrementFailureCount(MergedContextConfiguration key) {
this.totalFailureCount.incrementAndGet(); this.totalFailureCount.incrementAndGet();
this.failureCounts.merge(key, 1, Integer::sum); this.failureCounts.merge(key, 1, Integer::sum);
} }
/**
* {@inheritDoc}
*/
@Override @Override
public int size() { public int size() {
return this.contextMap.size(); return this.contextMap.size();
@@ -250,33 +229,21 @@ public class DefaultContextCache implements ContextCache {
return this.maxSize; return this.maxSize;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public int getParentContextCount() { public int getParentContextCount() {
return this.hierarchyMap.size(); return this.hierarchyMap.size();
} }
/**
* {@inheritDoc}
*/
@Override @Override
public int getHitCount() { public int getHitCount() {
return this.hitCount.get(); return this.hitCount.get();
} }
/**
* {@inheritDoc}
*/
@Override @Override
public int getMissCount() { public int getMissCount() {
return this.missCount.get(); return this.missCount.get();
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void reset() { public void reset() {
synchronized (this.contextMap) { synchronized (this.contextMap) {
@@ -287,9 +254,6 @@ public class DefaultContextCache implements ContextCache {
} }
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void clear() { public void clear() {
synchronized (this.contextMap) { synchronized (this.contextMap) {
@@ -298,9 +262,6 @@ public class DefaultContextCache implements ContextCache {
} }
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void clearStatistics() { public void clearStatistics() {
synchronized (this.contextMap) { synchronized (this.contextMap) {
@@ -309,9 +270,6 @@ public class DefaultContextCache implements ContextCache {
} }
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void logStatistics() { public void logStatistics() {
if (statsLogger.isDebugEnabled()) { if (statsLogger.isDebugEnabled()) {

View File

@@ -204,9 +204,6 @@ public abstract class AbstractTestContextBootstrapper implements TestContextBoot
return TestContextSpringFactoriesUtils.loadFactoryImplementations(TestExecutionListener.class); return TestContextSpringFactoriesUtils.loadFactoryImplementations(TestExecutionListener.class);
} }
/**
* {@inheritDoc}
*/
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Override @Override
public final MergedContextConfiguration buildMergedContextConfiguration() { public final MergedContextConfiguration buildMergedContextConfiguration() {

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2022 the original author or authors. * Copyright 2002-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -48,17 +48,11 @@ public class DefaultBootstrapContext implements BootstrapContext {
this.cacheAwareContextLoaderDelegate = cacheAwareContextLoaderDelegate; this.cacheAwareContextLoaderDelegate = cacheAwareContextLoaderDelegate;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public Class<?> getTestClass() { public Class<?> getTestClass() {
return this.testClass; return this.testClass;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public CacheAwareContextLoaderDelegate getCacheAwareContextLoaderDelegate() { public CacheAwareContextLoaderDelegate getCacheAwareContextLoaderDelegate() {
return this.cacheAwareContextLoaderDelegate; return this.cacheAwareContextLoaderDelegate;

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2022 the original author or authors. * Copyright 2002-2023 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -82,9 +82,6 @@ public abstract class InterceptingHttpAccessor extends HttpAccessor {
return this.interceptors; return this.interceptors;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void setRequestFactory(ClientHttpRequestFactory requestFactory) { public void setRequestFactory(ClientHttpRequestFactory requestFactory) {
super.setRequestFactory(requestFactory); super.setRequestFactory(requestFactory);

View File

@@ -429,9 +429,6 @@ public abstract class AbstractHtmlElementTag extends AbstractDataBoundFormElemen
return this.dynamicAttributes; return this.dynamicAttributes;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void setDynamicAttribute(String uri, String localName, Object value) throws JspException { public void setDynamicAttribute(String uri, String localName, Object value) throws JspException {
if (this.dynamicAttributes == null) { if (this.dynamicAttributes == null) {

View File

@@ -106,9 +106,6 @@ public class MappingJackson2JsonView extends AbstractJackson2View {
this.jsonPrefix = (prefixJson ? ")]}', " : null); this.jsonPrefix = (prefixJson ? ")]}', " : null);
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void setModelKey(String modelKey) { public void setModelKey(String modelKey) {
this.modelKeys = Collections.singleton(modelKey); this.modelKeys = Collections.singleton(modelKey);