Skip to content

Commit

Permalink
server: replace non-ASCII chars in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
valldrac committed Oct 17, 2022
1 parent 28a8cd9 commit c924e15
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public DistributionStatisticConfig configure(final Id id, final DistributionStat
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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void handleRequestFiltered(final RequestEvent requestEvent) {
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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public boolean create(Account account) {
throw new ContestedOptimisticLockException();
}

// this shouldnt happen
// this shouldn't happen
throw new RuntimeException("could not create account: " + extractCancellationReasonCodes(e));
}
} catch (JsonProcessingException e) {
Expand Down Expand Up @@ -284,7 +284,7 @@ public void update(Account account) throws ContestedOptimisticLockException {

} 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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public List<OutgoingMessageEntity> load(final UUID destinationAccountUuid, final
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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected String formatLogMessage(final long id, final Throwable exception) {
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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public String testGetHello() {
@GET
@Path("/authorized")
public String testAuth(@Auth TestPrincipal principal) {
return "Youre in!";
return "You're in!";
}

@PUT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ void testSetTakenUsername() {
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(""));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static Account copyAndMarkStale(Account account) throws IOException {

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()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Smoke Turner, LLC ([email protected])
* Copyright (C) 2019 Smoke Turner, LLC ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Smoke Turner, LLC ([email protected])
* Copyright (C) 2019 Smoke Turner, LLC ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019 Smoke Turner, LLC ([email protected])
* Copyright (C) 2019 Smoke Turner, LLC ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit c924e15

Please sign in to comment.