server: replace non-ASCII chars in comments

This commit is contained in:
Oscar Mira 2022-10-04 13:09:43 +02:00
parent 28a8cd9a93
commit c924e15c42
11 changed files with 12 additions and 12 deletions

View file

@ -560,7 +560,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
webSocketEnvironment.jersey().register(new MetricsApplicationEventListener(TrafficSource.WEBSOCKET));
webSocketEnvironment.jersey().register(new KeepAliveController(clientPresenceManager));
// these should be common, but use @Auth DisabledPermittedAccount, which isnt supported yet on websocket
// these should be common, but use @Auth DisabledPermittedAccount, which isn't supported yet on websocket
environment.jersey().register(
new AccountController(pendingAccountsManager, accountsManager, usernamesManager, abusiveHostRules, rateLimiters,
smsSender, dynamicConfigurationManager, turnTokenGenerator, config.getTestDevices(),

View file

@ -56,7 +56,7 @@ public class AuthEnablementRefreshRequirementProvider implements WebsocketRefres
if (requestEvent.getUriInfo().getMatchedResourceMethod().getInvocable().getHandlingMethod().getAnnotation(ChangesDeviceEnabledState.class) != null) {
// The authenticated principal, if any, will be available after filters have run.
// Now that the account is known, capture a snapshot of `isEnabled` for the account's devices before carrying out
// the requests business logic.
// the request's business logic.
ContainerRequestUtil.getAuthenticatedAccount(requestEvent.getContainerRequest()).ifPresent(account ->
setAccount(requestEvent.getContainerRequest(), account));
}

View file

@ -125,7 +125,7 @@ public class Accounts extends AbstractDynamoDbStore {
throw new ContestedOptimisticLockException();
}
// this shouldnt happen
// this shouldn't happen
throw new RuntimeException("could not create account: " + extractCancellationReasonCodes(e));
}
} catch (JsonProcessingException e) {
@ -284,7 +284,7 @@ public class Accounts extends AbstractDynamoDbStore {
} catch (final ConditionalCheckFailedException e) {
// the exception doesnt give details about which condition failed,
// the exception doesn't give details about which condition failed,
// but we can infer it was an optimistic locking failure if the UUID is known
throw get(account.getUuid()).isPresent() ? new ContestedOptimisticLockException() : e;
}

View file

@ -133,7 +133,7 @@ public class MessagesDynamoDb extends AbstractDynamoDbStore {
messageEntities.add(convertItemToOutgoingMessageEntity(message));
if (messageEntities.size() == numberOfMessagesToFetch) {
// queryPaginator() uses limit() as the page size, not as an absolute limit
// but a page might be smaller than limit, because a page is capped at 1 MB
// ...but a page might be smaller than limit, because a page is capped at 1 MB
break;
}
}

View file

@ -35,7 +35,7 @@ public class LoggingUnhandledExceptionMapper extends LoggingExceptionMapper<Thro
String userAgent = "missing";
String requestPath = "/{unknown path}";
try {
// request shouldnt be `null`, but it is technically possible
// request shouldn't be `null`, but it is technically possible
requestMethod = request.get().getMethod();
requestPath = UriInfoUtil.getPathTemplate(request.get().getUriInfo());
userAgent = request.get().getHeaderString("user-agent");

View file

@ -407,7 +407,7 @@ class AuthEnablementRefreshRequirementProviderTest {
@GET
@Path("/authorized")
public String testAuth(@Auth TestPrincipal principal) {
return "Youre in!";
return "You're in!";
}
@PUT

View file

@ -1577,7 +1577,7 @@ class AccountControllerTest {
void testSetInvalidUsername() {
Response response =
resources.getJerseyTest()
.target("/v1/accounts/username/pаypal")
.target("/v1/accounts/username/p\u0430ypal")
.request()
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_UUID, AuthHelper.VALID_PASSWORD))
.put(Entity.text(""));

View file

@ -87,7 +87,7 @@ public class AccountsHelper {
updatedAccount = mock(Account.class);
// its not possible to make `account` behave as if it were stale, because we use static mocks in AuthHelper
// it's not possible to make `account` behave as if it were stale, because we use static mocks in AuthHelper
for (Stubbing stubbing : mockingDetails.getStubbings()) {
switch (stubbing.getInvocation().getMethod().getName()) {

View file

@ -1,5 +1,5 @@
/*
* Copyright © 2019 Smoke Turner, LLC (github@smoketurner.com)
* Copyright (C) 2019 Smoke Turner, LLC (github@smoketurner.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View file

@ -1,5 +1,5 @@
/*
* Copyright © 2019 Smoke Turner, LLC (github@smoketurner.com)
* Copyright (C) 2019 Smoke Turner, LLC (github@smoketurner.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View file

@ -1,5 +1,5 @@
/*
* Copyright © 2019 Smoke Turner, LLC (github@smoketurner.com)
* Copyright (C) 2019 Smoke Turner, LLC (github@smoketurner.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.