From c464f18caae00c8f9393e6c919b0669ec7f0d17b Mon Sep 17 00:00:00 2001 From: Garrett May Date: Wed, 27 Jan 2016 11:20:54 -0500 Subject: [PATCH] fix typo in IDHelper (accoundId --> accountId) --- .../concept_insights/v2/util/IDHelper.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/ibm/watson/developer_cloud/concept_insights/v2/util/IDHelper.java b/src/main/java/com/ibm/watson/developer_cloud/concept_insights/v2/util/IDHelper.java index 784aa4bcbf2..989839a9963 100644 --- a/src/main/java/com/ibm/watson/developer_cloud/concept_insights/v2/util/IDHelper.java +++ b/src/main/java/com/ibm/watson/developer_cloud/concept_insights/v2/util/IDHelper.java @@ -72,10 +72,10 @@ public static String getConceptId(final Concept concept) { * generated it. * * @param corpus Corpus the corpus object, - * @param accoundId String the account id. + * @param accountId String the account id. * @return the corpus id */ - public static String getCorpusId(final Corpus corpus, final String accoundId) { + public static String getCorpusId(final Corpus corpus, final String accountId) { Validate.notNull(corpus, "corpus cannot be null"); if (corpus.getId() != null) { validate(CORPUS_ID_REGEX, corpus.getId(), "Provide a valid corpus.id (format is " + '"' @@ -83,7 +83,7 @@ public static String getCorpusId(final Corpus corpus, final String accoundId) { return corpus.getId(); } else { Validate.notNull(corpus.getName(), "corpus.name cannot be null"); - return "/corpora/" + accoundId + "/" + corpus.getName(); + return "/corpora/" + accountId + "/" + corpus.getName(); } } @@ -107,10 +107,10 @@ public static String getDocumentId(final Document document) { * generated it. * * @param graph Graph the graph object, - * @param accoundId String the account id. + * @param accountId String the account id. * @return the graph id */ - public static String getGraphId(final Graph graph, final String accoundId) { + public static String getGraphId(final Graph graph, final String accountId) { Validate.notNull(graph, "graph object cannot be null"); if (graph.getId() != null) { validate(GRAPH_ID_REGEX, graph.getId(), "Provide a valid graph.id (format is " + '"' @@ -118,7 +118,7 @@ public static String getGraphId(final Graph graph, final String accoundId) { return graph.getId(); } else { Validate.notNull(graph.getName(), "graph.name cannot be null"); - return "/graphs/" + accoundId + "/" + graph.getName(); + return "/graphs/" + accountId + "/" + graph.getName(); } }