Browse Source

Remove useless empty inheritDoc Javadoc tag

pull/31899/head
Stéphane Nicoll 2 years ago
parent
commit
cd8bc2f82a
  1. 42
      spring-test/src/main/java/org/springframework/test/context/cache/DefaultContextCache.java
  2. 3
      spring-test/src/main/java/org/springframework/test/context/support/AbstractTestContextBootstrapper.java
  3. 8
      spring-test/src/main/java/org/springframework/test/context/support/DefaultBootstrapContext.java
  4. 5
      spring-web/src/main/java/org/springframework/http/client/support/InterceptingHttpAccessor.java
  5. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractHtmlElementTag.java
  6. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/json/MappingJackson2JsonView.java

42
spring-test/src/main/java/org/springframework/test/context/cache/DefaultContextCache.java vendored

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

3
spring-test/src/main/java/org/springframework/test/context/support/AbstractTestContextBootstrapper.java

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

8
spring-test/src/main/java/org/springframework/test/context/support/DefaultBootstrapContext.java

@ -1,5 +1,5 @@ @@ -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");
* you may not use this file except in compliance with the License.
@ -48,17 +48,11 @@ public class DefaultBootstrapContext implements BootstrapContext { @@ -48,17 +48,11 @@ public class DefaultBootstrapContext implements BootstrapContext {
this.cacheAwareContextLoaderDelegate = cacheAwareContextLoaderDelegate;
}
/**
* {@inheritDoc}
*/
@Override
public Class<?> getTestClass() {
return this.testClass;
}
/**
* {@inheritDoc}
*/
@Override
public CacheAwareContextLoaderDelegate getCacheAwareContextLoaderDelegate() {
return this.cacheAwareContextLoaderDelegate;

5
spring-web/src/main/java/org/springframework/http/client/support/InterceptingHttpAccessor.java

@ -1,5 +1,5 @@ @@ -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");
* you may not use this file except in compliance with the License.
@ -82,9 +82,6 @@ public abstract class InterceptingHttpAccessor extends HttpAccessor { @@ -82,9 +82,6 @@ public abstract class InterceptingHttpAccessor extends HttpAccessor {
return this.interceptors;
}
/**
* {@inheritDoc}
*/
@Override
public void setRequestFactory(ClientHttpRequestFactory requestFactory) {
super.setRequestFactory(requestFactory);

3
spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractHtmlElementTag.java

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

3
spring-webmvc/src/main/java/org/springframework/web/servlet/view/json/MappingJackson2JsonView.java

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

Loading…
Cancel
Save