Skip to content

Commit c4f29bc

Browse files
chingor13sduskis
authored andcommitted
Fix a bunch of typos (#640)
1 parent 1954575 commit c4f29bc

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

google-http-client-xml/src/main/java/com/google/api/client/xml/Xml.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public boolean stopAfterEndTag(String namespace, String localName) {
195195
/**
196196
* Parses an XML element using the given XML pull parser into the given destination object.
197197
*
198-
* <p>Requires the the current event be {@link XmlPullParser#START_TAG} (skipping any initial
198+
* <p>Requires the current event be {@link XmlPullParser#START_TAG} (skipping any initial
199199
* {@link XmlPullParser#START_DOCUMENT}) of the element being parsed. At normal parsing
200200
* completion, the current event will either be {@link XmlPullParser#END_TAG} of the element being
201201
* parsed, or the {@link XmlPullParser#START_TAG} of the requested {@code atom:entry}.

google-http-client-xml/src/main/java/com/google/api/client/xml/XmlNamespaceDictionary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ private void computeAliases(Object element, SortedSet<String> aliases) {
283283
* @return namespace URI, using a predictable made-up namespace URI if the namespace alias is not
284284
* recognized
285285
* @throws IllegalArgumentException if the namespace alias is not recognized and {@code
286-
* errorOnUnkown} is {@code true}
286+
* errorOnUnknown} is {@code true}
287287
*/
288288
String getNamespaceUriForAliasHandlingUnknown(boolean errorOnUnknown, String alias) {
289289
String result = getUriForAlias(alias);

google-http-client/src/main/java/com/google/api/client/http/HttpEncoding.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public interface HttpEncoding {
3535
* Encodes the streaming content into the output stream.
3636
*
3737
* <p>Implementations must not close the output stream, and instead should flush the output
38-
* stream. Some callers may assume that the the output stream has not been closed, and will fail
39-
* to work if it has been closed.
38+
* stream. Some callers may assume that the output stream has not been closed, and will fail to
39+
* work if it has been closed.
4040
*
4141
* @param content streaming content
4242
* @param out output stream

google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ LowLevelHttpResponse execute(final OutputWriter outputWriter) throws IOException
115115
} catch (IOException e) {
116116
// If we've gotten a response back, continue on and try to parse the response. Otherwise,
117117
// re-throw the IOException
118-
if (!hasReponse(connection)) {
118+
if (!hasResponse(connection)) {
119119
throw e;
120120
}
121121
} finally {
@@ -151,7 +151,7 @@ LowLevelHttpResponse execute(final OutputWriter outputWriter) throws IOException
151151
}
152152
}
153153

154-
private boolean hasReponse(HttpURLConnection connection) {
154+
private boolean hasResponse(HttpURLConnection connection) {
155155
try {
156156
return connection.getResponseCode() > 0;
157157
} catch (IOException e) {

google-http-client/src/main/java/com/google/api/client/util/Key.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
* // uses data key name of "some_other_name"
3636
* &#64;Key("some_other_name")
37-
* private String dataKeyNameIsOverriden;
37+
* private String dataKeyNameIsOverridden;
3838
*
3939
* // not a data key
4040
* private String notADataKey;

google-http-client/src/main/java/com/google/api/client/util/StreamingContent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public interface StreamingContent {
3131
* Writes the byte content to the given output stream.
3232
*
3333
* <p>Implementations must not close the output stream, and instead should flush the output
34-
* stream. Some callers may assume that the the output stream has not been closed, and will fail
35-
* to work if it has been closed.
34+
* stream. Some callers may assume that the output stream has not been closed, and will fail to
35+
* work if it has been closed.
3636
*
3737
* @param out output stream
3838
*/

google-http-client/src/main/java/com/google/api/client/util/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class StringUtils {
3939
* @param string the String to encode, may be <code>null</code>
4040
* @return encoded bytes, or <code>null</code> if the input string was <code>null</code>
4141
* @throws IllegalStateException Thrown when the charset is missing, which should be never
42-
* according the the Java specification.
42+
* according the Java specification.
4343
* @see <a href="http://download.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html"
4444
* >Standard charsets</a>
4545
* @since 1.8

0 commit comments

Comments
 (0)