Replace 'e.g.' with 'for example' in documentation and comments

Closes gh-33515
This commit is contained in:
Yanming Zhou
2024-09-26 14:03:46 +02:00
committed by Sam Brannen
parent e55fe9077f
commit 8941e2876e
722 changed files with 1290 additions and 1290 deletions

View File

@@ -83,7 +83,7 @@ class CancelWithoutDemandCodecTests {
MediaType.APPLICATION_JSON, Collections.emptyMap());
BaseSubscriber<DataBuffer> subscriber = new ZeroDemandSubscriber();
flux.subscribe(subscriber); // Assume sync execution (e.g. encoding with Flux.just)
flux.subscribe(subscriber); // Assume sync execution (for example, encoding with Flux.just)
subscriber.cancel();
}
@@ -96,7 +96,7 @@ class CancelWithoutDemandCodecTests {
MediaType.APPLICATION_XML, Collections.emptyMap());
BaseSubscriber<DataBuffer> subscriber = new ZeroDemandSubscriber();
flux.subscribe(subscriber); // Assume sync execution (e.g. encoding with Flux.just)
flux.subscribe(subscriber); // Assume sync execution (for example, encoding with Flux.just)
subscriber.cancel();
}
@@ -110,7 +110,7 @@ class CancelWithoutDemandCodecTests {
MediaType.APPLICATION_PROTOBUF, Collections.emptyMap());
BaseSubscriber<DataBuffer> subscriber = new ZeroDemandSubscriber();
flux.subscribe(subscriber); // Assume sync execution (e.g. encoding with Flux.just)
flux.subscribe(subscriber); // Assume sync execution (for example, encoding with Flux.just)
subscriber.cancel();
}
@@ -187,7 +187,7 @@ class CancelWithoutDemandCodecTests {
public Mono<Void> writeWith(Publisher<? extends DataBuffer> body) {
Flux<? extends DataBuffer> flux = Flux.from(body);
BaseSubscriber<DataBuffer> subscriber = new ZeroDemandSubscriber();
flux.subscribe(subscriber); // Assume sync execution (e.g. encoding with Flux.just)
flux.subscribe(subscriber); // Assume sync execution (for example, encoding with Flux.just)
subscriber.cancel();
return Mono.empty();
}
@@ -196,7 +196,7 @@ class CancelWithoutDemandCodecTests {
public Mono<Void> writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>> body) {
Flux<? extends DataBuffer> flux = Flux.from(body).concatMap(Flux::from);
BaseSubscriber<DataBuffer> subscriber = new ZeroDemandSubscriber();
flux.subscribe(subscriber); // Assume sync execution (e.g. encoding with Flux.just)
flux.subscribe(subscriber); // Assume sync execution (for example, encoding with Flux.just)
subscriber.cancel();
return Mono.empty();
}

View File

@@ -179,7 +179,7 @@ class ChannelSendOperatorTests {
// 1. First item received
// 2. writeFunction applied and writeCompletionBarrier subscribed to it
// 3. writeFunction fails, e.g. to flush status and headers, before request(n) from server
// 3. writeFunction fails, for example, to flush status and headers, before request(n) from server
LeakAwareDataBufferFactory bufferFactory = new LeakAwareDataBufferFactory();

View File

@@ -29,7 +29,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
/**
* Tests the interaction between a WebApplicationContext and ContextLoaderListener with
* regard to config location precedence, overriding and defaulting in programmatic
* configuration use cases, e.g. with WebApplicationInitializer.
* configuration use cases, for example, with WebApplicationInitializer.
*
* @author Chris Beams
* @since 3.1

View File

@@ -196,7 +196,7 @@ class ModelAttributeMethodProcessorTests {
Object target = new TestBean();
this.container.addAttribute(name, target);
// Declare binding disabled (e.g. via @ModelAttribute method)
// Declare binding disabled (for example, via @ModelAttribute method)
this.container.setBindingDisabled(name);
StubRequestDataBinder dataBinder = new StubRequestDataBinder(target, name);