Skip to content

Javadoc and other java 1_8 compatible changes in 50x back to main. #1328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void setApplicationContext(ApplicationContext applicationContext) throws
/**
* Set the {@link EntityCallbacks} instance to use when invoking
* {@link org.springframework.data.mapping.callback.EntityCallback callbacks} like the {@link BeforeConvertCallback}.
* <p/>
* <p>
* Overrides potentially existing {@link EntityCallbacks}.
*
* @param entityCallbacks must not be {@literal null}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public void setApplicationContext(ApplicationContext applicationContext) throws
* Set the {@link ReactiveEntityCallbacks} instance to use when invoking
* {@link org.springframework.data.mapping.callback.ReactiveEntityCallbacks callbacks} like the
* {@link ReactiveBeforeConvertCallback}.
* <p/>
* <p>
* Overrides potentially existing {@link EntityCallbacks}.
*
* @param reactiveEntityCallbacks must not be {@literal null}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public CouchbaseDocument setContent(final JsonObject payload) {

/**
* Returns the expiration time of the document.
* <p/>
* <p>
* If the expiration time is 0, then the document will be persisted until deleted manually ("forever").
*
* @return the expiration time of the document.
Expand All @@ -226,9 +226,9 @@ public int getExpiration() {

/**
* Set the expiration time of the document.
* <p/>
* <p>
* If the expiration time is 0, then the document will be persisted until deleted manually ("forever").
* <p/>
* <p>
* Expiration should be expressed as seconds if <= 30 days (30 x 24 x 60 x 60 seconds), or as an expiry date (UTC,
* UNIX time ie. seconds form the Epoch) if > 30 days.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,8 @@ public final boolean isEmpty() {

/**
* Verifies that only values of a certain and supported type can be stored.
* <p/>
* <p>
* If this is not the case, a {@link IllegalArgumentException} is thrown.
* </p>
*
* @param value the object to verify its type.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.lang.annotation.Annotation;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.RootBeanDefinition;
Expand Down Expand Up @@ -70,7 +71,11 @@ protected BeanDefinitionBuilder getAuditHandlerBeanDefinitionBuilder(AuditingCon
Assert.notNull(configuration, "AuditingConfiguration must not be null!");

BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(IsNewAwareAuditingHandler.class);
builder.addConstructorArgReference(BeanNames.COUCHBASE_MAPPING_CONTEXT);

BeanDefinitionBuilder definition = BeanDefinitionBuilder.genericBeanDefinition(PersistentEntitiesFactoryBean.class);
definition.setAutowireMode(AbstractBeanDefinition.AUTOWIRE_CONSTRUCTOR);

builder.addConstructorArgValue(definition.getBeanDefinition());
return configureDefaultAuditHandlerAttributes(configuration, builder);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2020 the original author or authors
* Copyright 2012-2022 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.
Expand All @@ -26,6 +26,7 @@
import org.springframework.data.couchbase.core.convert.CouchbaseConverter;
import org.springframework.data.couchbase.core.mapping.CouchbasePersistentEntity;
import org.springframework.data.couchbase.core.mapping.CouchbasePersistentProperty;
import org.springframework.data.couchbase.core.mapping.Field;
import org.springframework.data.couchbase.core.query.N1QLExpression;
import org.springframework.data.couchbase.core.query.N1QLQuery;
import org.springframework.data.couchbase.repository.query.CouchbaseEntityInformation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public ViewMetadataProvider getViewMetadataProvider() {

/**
* {@link MethodInterceptor} to inspect the currently invoked {@link Method} for a {@link View} annotation.
* <p/>
* <p>
* If a View annotation is found, it will bind it to a locally held ThreadLocal for later lookup in the
* SimpleCouchbaseRepository class.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* <p>
* Note that the internals on what and how the containers are managed is up to the {@link TestCluster} implementation,
* and if it is unmanaged than this very well be mostly a "stub".
* </p>
*
* @since 2.0.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public Optional<X509Certificate> clusterCert() {
* Finds the first node with a given service enabled in the config.
* <p>
* This method can be used to find bootstrap nodes and similar.
* </p>
*
* @param service the service to find.
* @return a node config if found, empty otherwise.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Util {
* Waits and sleeps for a little bit of time until the given condition is met.
*
* <p>Sleeps 1ms between "false" invocations. It will wait at most one minute to prevent hanging forever in case
* the condition never becomes true.</p>
* the condition never becomes true.
*
* @param supplier return true once it should stop waiting.
*/
Expand Down Expand Up @@ -83,7 +83,7 @@ public static boolean threadRunning(final String name) {
* Reads a file from the resources folder (in the same path as the requesting test class).
*
* <p>The class will be automatically loaded relative to the namespace and converted
* to a string.</p>
* to a string.
*
* @param filename the filename of the resource.
* @param clazz the reference class.
Expand Down