Skip to content

Commit

Permalink
Clean up Javadoc and source code regarding " ." typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen authored and mdeinum committed Jun 29, 2023
1 parent ddde962 commit 2d8648d
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 31 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-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 Down Expand Up @@ -34,7 +34,7 @@

/**
* Integration tests for scoped proxy use in conjunction with aop: namespace.
* Deemed an integration test because .web mocks and application contexts are required.
* Deemed an integration test because web mocks and application contexts are required.
*
* @author Rob Harrop
* @author Juergen Hoeller
Expand Down
Expand Up @@ -61,7 +61,7 @@ void repositoryUsesAspectJAdviceMode() {
ctx.register(Config.class, AspectJCacheConfig.class);
// this test is a bit fragile, but gets the job done, proving that an
// attempt was made to look up the AJ aspect. It's due to classpath issues
// in .integration-tests that it's not found.
// in integration-tests that it's not found.
assertThatException().isThrownBy(ctx::refresh)
.withMessageContaining("AspectJCachingConfiguration");
}
Expand Down
Expand Up @@ -97,7 +97,7 @@ void repositoryUsesAspectJAdviceMode() {
ctx.register(Config.class, AspectJTxConfig.class);
// this test is a bit fragile, but gets the job done, proving that an
// attempt was made to look up the AJ aspect. It's due to classpath issues
// in .integration-tests that it's not found.
// in integration-tests that it's not found.
assertThatException()
.isThrownBy(ctx::refresh)
.withMessageContaining("AspectJJtaTransactionManagementConfiguration");
Expand Down
Expand Up @@ -143,7 +143,7 @@ public String getTargetTypeName() {
}

/**
* Return whether this typed String value carries a target type .
* Return whether this typed String value carries a target type.
*/
public boolean hasTargetType() {
return (this.targetType instanceof Class);
Expand Down
Expand Up @@ -163,7 +163,7 @@ public void testReflectionHelperCompareArguments_Varargs_ExactMatching() {
checkMatch2(new Class<?>[] {Integer.class, String[].class}, new Class<?>[] {String.class, String[].class}, tc, ArgumentsMatchKind.REQUIRES_CONVERSION);

// Passing (Integer, Sub, String[]) on call to (String, Super, String[]) is exact match
checkMatch2(new Class<?>[] {Integer.class, Sub.class, String[].class}, new Class<?>[] {String.class,Super .class, String[].class}, tc, ArgumentsMatchKind.REQUIRES_CONVERSION);
checkMatch2(new Class<?>[] {Integer.class, Sub.class, String[].class}, new Class<?>[] {String.class, Super.class, String[].class}, tc, ArgumentsMatchKind.REQUIRES_CONVERSION);

// Passing (String) on call to (String[]) is exact match
checkMatch2(new Class<?>[] {String.class}, new Class<?>[] {String[].class}, tc, ArgumentsMatchKind.EXACT);
Expand Down Expand Up @@ -298,7 +298,7 @@ public void testReflectivePropertyAccessor() throws Exception {
assertThat(rpa.read(ctx, t, "property3").getValue()).isEqualTo("doodoo");

// Access through is method
assertThat(rpa .read(ctx, t, "field3").getValue()).isEqualTo(0);
assertThat(rpa.read(ctx, t, "field3").getValue()).isEqualTo(0);
assertThat(rpa.read(ctx, t, "property4").getValue()).isEqualTo(false);
assertThat(rpa.canRead(ctx, t, "property4")).isTrue();

Expand Down
Expand Up @@ -64,7 +64,7 @@ public class MarshallingMessageConverter implements MessageConverter, Initializi
/**
* Construct a new {@code MarshallingMessageConverter} with no {@link Marshaller}
* or {@link Unmarshaller} set. The marshaller must be set after construction by invoking
* {@link #setMarshaller(Marshaller)} and {@link #setUnmarshaller(Unmarshaller)} .
* {@link #setMarshaller(Marshaller)} and {@link #setUnmarshaller(Unmarshaller)}.
*/
public MarshallingMessageConverter() {
}
Expand Down
Expand Up @@ -94,7 +94,7 @@ public interface RSocketRequester extends Disposable {
* {@code "flight.{code}"} in which case the supplied route variables are
* formatted via {@code toString()} and expanded into the template.
* If a formatted variable contains a "." it is replaced with the escape
* sequence "%2E" to avoid treating it as separator by the responder .
* sequence "%2E" to avoid treating it as separator by the responder.
* <p>If the connection is set to use composite metadata, the route is
* encoded as {@code "message/x.rsocket.routing.v0"}. Otherwise, the route
* is encoded according to the mime type for the connection.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2020 the original author or authors.
* Copyright 2002-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 Down Expand Up @@ -440,7 +440,7 @@ public void testPersistenceContextsFromJndi() {
persistenceContexts.put("", "pc1");
persistenceContexts.put("Person", "pc2");
Map<String, String> extendedPersistenceContexts = new HashMap<>();
extendedPersistenceContexts .put("", "pc3");
extendedPersistenceContexts.put("", "pc3");
ExpectedLookupTemplate jt = new ExpectedLookupTemplate();
jt.addObject("java:comp/env/pc1", mockEm);
jt.addObject("java:comp/env/pc2", mockEm2);
Expand Down Expand Up @@ -480,7 +480,7 @@ public void testPersistenceContextsFromJndiWithDefaultUnit() {
persistenceContexts.put("System", "pc1");
persistenceContexts.put("Person", "pc2");
Map<String, String> extendedPersistenceContexts = new HashMap<>();
extendedPersistenceContexts .put("System", "pc3");
extendedPersistenceContexts.put("System", "pc3");
ExpectedLookupTemplate jt = new ExpectedLookupTemplate();
jt.addObject("java:comp/env/pc1", mockEm);
jt.addObject("java:comp/env/pc2", mockEm2);
Expand Down Expand Up @@ -519,7 +519,7 @@ public void testSinglePersistenceContextFromJndi() {
Map<String, String> persistenceContexts = new HashMap<>();
persistenceContexts.put("System", "pc1");
Map<String, String> extendedPersistenceContexts = new HashMap<>();
extendedPersistenceContexts .put("System", "pc2");
extendedPersistenceContexts.put("System", "pc2");
ExpectedLookupTemplate jt = new ExpectedLookupTemplate();
jt.addObject("java:comp/env/pc1", mockEm);
jt.addObject("java:comp/env/pc2", mockEm2);
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-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 Down Expand Up @@ -46,7 +46,7 @@ public interface RequestPath extends PathContainer {

/**
* The portion of the request path after the context path which is typically
* used for request mapping within the application .
* used for request mapping within the application.
*/
PathContainer pathWithinApplication();

Expand Down
Expand Up @@ -30,7 +30,8 @@

/**
* Interface specifying a basic set of RESTful operations.
* Implemented by {@link RestTemplate}. Not often used directly, but a useful
*
* <p>Implemented by {@link RestTemplate}. Not often used directly, but a useful
* option to enhance testability, as it can easily be mocked or stubbed.
*
* @author Arjen Poutsma
Expand Down Expand Up @@ -67,7 +68,7 @@ public interface RestOperations {
<T> T getForObject(String url, Class<T> responseType, Map<String, ?> uriVariables) throws RestClientException;

/**
* Retrieve a representation by doing a GET on the URL .
* Retrieve a representation by doing a GET on the URL.
* The response (if any) is converted and returned.
* @param url the URL
* @param responseType the type of the return value
Expand All @@ -78,7 +79,7 @@ public interface RestOperations {

/**
* Retrieve an entity by doing a GET on the specified URL.
* The response is converted and stored in an {@link ResponseEntity}.
* The response is converted and stored in a {@link ResponseEntity}.
* <p>URI Template variables are expanded using the given URI variables, if any.
* @param url the URL
* @param responseType the type of the return value
Expand All @@ -91,7 +92,7 @@ <T> ResponseEntity<T> getForEntity(String url, Class<T> responseType, Object...

/**
* Retrieve a representation by doing a GET on the URI template.
* The response is converted and stored in an {@link ResponseEntity}.
* The response is converted and stored in a {@link ResponseEntity}.
* <p>URI Template variables are expanded using the given map.
* @param url the URL
* @param responseType the type of the return value
Expand All @@ -103,8 +104,8 @@ <T> ResponseEntity<T> getForEntity(String url, Class<T> responseType, Map<String
throws RestClientException;

/**
* Retrieve a representation by doing a GET on the URL .
* The response is converted and stored in an {@link ResponseEntity}.
* Retrieve a representation by doing a GET on the URL.
* The response is converted and stored in a {@link ResponseEntity}.
* @param url the URL
* @param responseType the type of the return value
* @return the converted object
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-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 @@ -22,7 +22,7 @@

/**
* Strategy interface to handle the value returned from the invocation of a
* handler method .
* handler method.
*
* @author Arjen Poutsma
* @since 3.1
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-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 Down Expand Up @@ -45,7 +45,7 @@ public interface WebSessionStore {
* and if it has expired remove the session and return empty. This method
* should also update the lastAccessTime of retrieved sessions.
* @param sessionId the session to load
* @return the session, or an empty {@code Mono} .
* @return the session, or an empty {@code Mono}
*/
Mono<WebSession> retrieveSession(String sessionId);

Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-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 Down Expand Up @@ -70,7 +70,7 @@ public interface UriBuilder {
UriBuilder port(int port);

/**
* Set the URI port . Use this method only when the port needs to be
* Set the URI port. Use this method only when the port needs to be
* parameterized with a URI variable. Otherwise use {@link #port(int)}.
* Passing {@code null} will clear the port of this builder.
* @param port the URI port
Expand Down
Expand Up @@ -82,7 +82,7 @@ protected MessageSource getMessageSource() {


/**
* Handle all exceptions raised within Spring MVC handling of the request .
* Handle all exceptions raised within Spring MVC handling of the request.
* @param ex the exception to handle
* @param exchange the current request-response
*/
Expand Down
Expand Up @@ -103,7 +103,7 @@ protected MessageSource getMessageSource() {


/**
* Handle all exceptions raised within Spring MVC handling of the request .
* Handle all exceptions raised within Spring MVC handling of the request.
* @param ex the exception to handle
* @param request the current request
*/
Expand Down
Expand Up @@ -24,7 +24,7 @@
* <p>Decoration should be done through sub-classing
* {@link org.springframework.web.socket.handler.WebSocketHandlerDecorator
* WebSocketHandlerDecorator} to allow any code to traverse decorators and/or
* unwrap the original handler when necessary .
* unwrap the original handler when necessary.
*
* @author Rossen Stoyanchev
* @since 4.1.2
Expand All @@ -35,7 +35,7 @@ public interface WebSocketHandlerDecoratorFactory {
* Decorate the given WebSocketHandler.
* @param handler the handler to be decorated.
* @return the same handler or the handler wrapped with a subclass of
* {@code WebSocketHandlerDecorator}.
* {@code WebSocketHandlerDecorator}
*/
WebSocketHandler decorate(WebSocketHandler handler);

Expand Down

0 comments on commit 2d8648d

Please sign in to comment.