mirror of
https://github.com/mollyim/sweetlies-server.git
synced 2025-05-12 21:30:40 +01:00
server: replace non-ASCII chars in comments
This commit is contained in:
parent
28a8cd9a93
commit
c924e15c42
11 changed files with 12 additions and 12 deletions
|
@ -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 isn’t 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(),
|
||||
|
|
|
@ -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 request’s business logic.
|
||||
// the request's business logic.
|
||||
ContainerRequestUtil.getAuthenticatedAccount(requestEvent.getContainerRequest()).ifPresent(account ->
|
||||
setAccount(requestEvent.getContainerRequest(), account));
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ public class Accounts extends AbstractDynamoDbStore {
|
|||
throw new ContestedOptimisticLockException();
|
||||
}
|
||||
|
||||
// this shouldn’t 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 doesn’t 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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ public class LoggingUnhandledExceptionMapper extends LoggingExceptionMapper<Thro
|
|||
String userAgent = "missing";
|
||||
String requestPath = "/{unknown path}";
|
||||
try {
|
||||
// request shouldn’t 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");
|
||||
|
|
|
@ -407,7 +407,7 @@ class AuthEnablementRefreshRequirementProviderTest {
|
|||
@GET
|
||||
@Path("/authorized")
|
||||
public String testAuth(@Auth TestPrincipal principal) {
|
||||
return "You’re in!";
|
||||
return "You're in!";
|
||||
}
|
||||
|
||||
@PUT
|
||||
|
|
|
@ -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(""));
|
||||
|
|
|
@ -87,7 +87,7 @@ public class AccountsHelper {
|
|||
|
||||
updatedAccount = mock(Account.class);
|
||||
|
||||
// it’s 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()) {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue