Skip to content

Commit 6ec744f

Browse files
authored
Fix various typos (#11144)
1 parent 354b028 commit 6ec744f

File tree

28 files changed

+37
-37
lines changed

28 files changed

+37
-37
lines changed

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ with OpenSSL](#tls-with-netty-tcnative-on-openssl) are other valid options.
8484
[Apache Tomcat's tcnative](https://tomcat.apache.org/native-doc/) and is a JNI
8585
wrapper around OpenSSL/BoringSSL/LibreSSL.
8686

87-
We recommend BoringSSL for its simplicitly and low occurrence of security
87+
We recommend BoringSSL for its simplicity and low occurrence of security
8888
vulnerabilities relative to OpenSSL. BoringSSL is used by Conscrypt as well.
8989

9090
### TLS with netty-tcnative on BoringSSL

alts/src/main/java/io/grpc/alts/AltsChannelBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* ALTS version of {@code ManagedChannelBuilder}. This class sets up a secure and authenticated
32-
* commmunication between two cloud VMs using ALTS.
32+
* communication between two cloud VMs using ALTS.
3333
*/
3434
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4151")
3535
public final class AltsChannelBuilder extends ForwardingChannelBuilder2<AltsChannelBuilder> {

alts/src/main/java/io/grpc/alts/AltsChannelCredentials.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import java.util.logging.Logger;
3737

3838
/**
39-
* Provides secure and authenticated commmunication between two cloud VMs using ALTS.
39+
* Provides secure and authenticated communication between two cloud VMs using ALTS.
4040
*/
4141
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4151")
4242
public final class AltsChannelCredentials {

alts/src/test/java/io/grpc/alts/internal/FakeTsiHandshaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void getBytesToSendToPeer(ByteBuffer bytes) throws GeneralSecurityExcepti
147147
return;
148148
}
149149

150-
// Prepare the next message, if neeeded.
150+
// Prepare the next message, if needed.
151151
if (sendBuffer == null) {
152152
if (sendState.next() != receiveState) {
153153
// We're still waiting for bytes from the peer, so bail.

api/src/main/java/io/grpc/ServerInterceptors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public static <T> ServerServiceDefinition useMarshalledMessages(
197197
* to allow for interceptors to handle messages as multiple different ReqT/RespT types within
198198
* the chain if the added cost of serialization is not a concern.
199199
*
200-
* @param serviceDef the sevice definition to add request and response marshallers to.
200+
* @param serviceDef the service definition to add request and response marshallers to.
201201
* @param requestMarshaller request marshaller
202202
* @param responseMarshaller response marshaller
203203
* @param <ReqT> the request payload type

api/src/main/java/io/grpc/SynchronizationContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public String toString() {
163163
}
164164

165165
/**
166-
* Schedules a task to be added and run via {@link #execute} after an inital delay and then
166+
* Schedules a task to be added and run via {@link #execute} after an initial delay and then
167167
* repeated after the delay until cancelled.
168168
*
169169
* @param task the task being scheduled

api/src/test/java/io/grpc/MethodDescriptorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void idempotent() {
6767

6868
assertFalse(descriptor.isIdempotent());
6969

70-
// Create a new desriptor by setting idempotent to true
70+
// Create a new descriptor by setting idempotent to true
7171
MethodDescriptor<String, String> newDescriptor =
7272
descriptor.toBuilder().setIdempotent(true).build();
7373
assertTrue(newDescriptor.isIdempotent());
@@ -86,7 +86,7 @@ public void safe() {
8686
.build();
8787
assertFalse(descriptor.isSafe());
8888

89-
// Create a new desriptor by setting safe to true
89+
// Create a new descriptor by setting safe to true
9090
MethodDescriptor<String, String> newDescriptor = descriptor.toBuilder().setSafe(true).build();
9191
assertTrue(newDescriptor.isSafe());
9292
// All other fields should staty the same

binder/src/androidTest/java/io/grpc/binder/internal/BinderTransportTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void serverAlreadyListening() throws Exception {
136136
// refers to an Android Service class declared in an applications manifest.
137137
//
138138
// However, unlike a regular network server, which is responsible for listening on its port, a
139-
// BinderServier is not responsible for the creation of its host Service. The opposite is
139+
// BinderServer is not responsible for the creation of its host Service. The opposite is
140140
// the case, with the host Android Service (itself created by the Android platform in
141141
// response to a connection) building the gRPC server.
142142
//

binder/src/main/java/io/grpc/binder/SecurityPolicies.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ private static boolean checkPackageSignature(
321321
packageInfo = packageManager.getPackageInfo(packageName, PackageManager.GET_SIGNATURES);
322322
if (packageInfo.signatures == null || packageInfo.signatures.length != 1) {
323323
// Reject multiply-signed apks because of b/13678484
324-
// (See PackageManagerGetSignatures supression above).
324+
// (See PackageManagerGetSignatures suppression above).
325325
return false;
326326
}
327327

buildscripts/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
<property name="accessModifiers" value="public"/>
203203
<property name="allowMissingParamTags" value="true"/>
204204
<property name="allowMissingReturnTag" value="true"/>
205-
<!-- TOOD(ejona): Too restrictive for tests
205+
<!-- TODO(ejona): Too restrictive for tests
206206
<property name="allowedAnnotations" value="Override, Test"/-->
207207
<property name="allowedAnnotations" value="Override, Test, Before, After, BeforeClass, AfterClass, Setup, TearDown"/>
208208
</module>

0 commit comments

Comments
 (0)