Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Fix typos in messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
wiarlawd committed Mar 30, 2016
1 parent bcd2bb8 commit c07e7b7
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/com/google/enterprise/adaptor/AuthzStatus.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public enum AuthzStatus {
/** The authorization is explicitly forbidden. */
DENY("Access DENIED"),
/**
* Permission is neither granted nor forbidden. If a consumer recieves this
* Permission is neither granted nor forbidden. If a consumer receives this
* code it may decide to try other means to get an explicit decision (i.e.,
* {@code PERMIT} or {@code DENY}.
* {@code PERMIT} or {@code DENY}).
*/
INDETERMINATE("No access decision");

Expand Down
8 changes: 4 additions & 4 deletions src/com/google/enterprise/adaptor/DocIdSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void pushFullDocIdsFromAdaptor(ExceptionHandler handler)
keepGoing = handler.handleException(ex, ntries);
}
if (keepGoing) {
log.log(Level.INFO, "Trying again... Number of attemps: {0}", ntries);
log.log(Level.INFO, "Trying again... Number of attempts: {0}", ntries);
} else {
journal.recordFullPushFailed();
log.warning("Gave up. Failed getDocIds");
Expand Down Expand Up @@ -115,7 +115,7 @@ public void pushIncrementalDocIdsFromAdaptor(PollingIncrementalLister lister,
keepGoing = handler.handleException(ex, ntries);
}
if (keepGoing) {
log.log(Level.INFO, "Trying again... Number of attemps: {0}", ntries);
log.log(Level.INFO, "Trying again... Number of attempts: {0}", ntries);
} else {
journal.recordIncrementalPushFailed();
log.warning("Gave up. Failed getModifiedDocIds");
Expand Down Expand Up @@ -332,7 +332,7 @@ public GroupPrincipal pushGroupDefinitions(
keepGoing = handler.handleException(ex, ntries);
}
if (keepGoing) {
log.log(Level.INFO, "trying again... number of attemps: {0}", ntries);
log.log(Level.INFO, "trying again... number of attempts: {0}", ntries);
}
}
GroupPrincipal last = null;
Expand Down Expand Up @@ -369,7 +369,7 @@ private <T extends Item> T pushSizedBatchOfItems(List<T> items,
keepGoing = handler.handleException(ex, ntries);
}
if (keepGoing) {
log.log(Level.INFO, "Trying again... Number of attemps: {0}", ntries);
log.log(Level.INFO, "Trying again... Number of attempts: {0}", ntries);
}
}
if (success) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ static AclTransform createAclTransform(Map<String, String> aclConfigRaw) {
aclConfig.put(Integer.parseInt(me.getKey()), me.getValue());
} catch (NumberFormatException ex) {
// Don't insert into map.
log.log(Level.FINE, "Ignorning transform.acl.{0} because {0} is not an "
log.log(Level.FINE, "Ignoring transform.acl.{0} because {0} is not an "
+ "integer", me.getKey());
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/google/enterprise/adaptor/GsaFeedFileSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private void handleGsaReply(String reply, int responseCode) {
if ("Success".equals(reply) || "success".equals(reply)) {
log.info("success message received. code:" + responseCode);
} else if ("Error - Unauthorized Request".equals(reply)) {
throw new IllegalStateException("Unathorized request. "
throw new IllegalStateException("Unauthorized request. "
+ "Perhaps add this machine's IP to GSA's Feeds' list "
+ "of trusted IP addresses. code:" + responseCode);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
import java.util.logging.Logger;

/**
* Provides ability to recieve and respond to SAML authn requests.
* Provides ability to receive and respond to SAML authn requests.
*
* <p>This functions as the Identity Provider (IdP) role in SAML. An IdP
* authenticates users when requested by a Service Provider (SP) and sends the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void getDocIds(DocIdPusher pusher) throws InterruptedException {

/**
* Gives the bytes of a document referenced with id.
* Includes "Retriever Metadata" and "Interal Metadata" elements.
* Includes "Retriever Metadata" and "Internal Metadata" elements.
*/
@Override
public void getDocContent(Request req, Response resp) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void sink(InputStream in) throws IOException {
log.finest("Command: " + Arrays.asList(commandLine));
commandResult = executeRetriever(commandLine, null, stdin, stderr);
} catch (InterruptedException e) {
throw new IOException("Thread intrupted while waiting for external command.", e);
throw new IOException("Thread interrupted while waiting for external command.", e);
} catch (IOException e) {
throw new IOException("External command could not be executed.", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected void doDecode(MessageContext messageContext) throws MessageDecodingExc

if (!(incomingMessage instanceof SAMLObject)) {
throw new MessageDecodingException(
"Unexpected SOAP body content. Expected a SAML request but recieved "
"Unexpected SOAP body content. Expected a SAML request but received "
+ incomingMessage.getElementQName());
}
SAMLObject samlMessage = (SAMLObject) incomingMessage;
Expand Down

0 comments on commit c07e7b7

Please sign in to comment.