Skip to content

Commit 2ccbdbc

Browse files
author
Yaniv Inbar
committed
[Issue 242] Remove deprecated classes/methods/fields from version 1.5 [BACKWARDS INCOMPATIBLE]
http://codereview.appspot.com/4629083/
1 parent c2972a0 commit 2ccbdbc

File tree

9 files changed

+4
-356
lines changed

9 files changed

+4
-356
lines changed

google-api-client/src/main/java/com/google/api/client/googleapis/auth/storage/GoogleStorageAuthentication.java

Lines changed: 0 additions & 180 deletions
This file was deleted.

google-api-client/src/main/java/com/google/api/client/googleapis/auth/storage/package-info.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

google-api-client/src/main/java/com/google/api/client/googleapis/json/JsonCContent.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ static void setContent(HttpRequest request, Object data) {
5252
*/
5353
public final class JsonCContent extends JsonHttpContent {
5454

55-
/**
56-
* @deprecated (scheduled to be removed in 1.6) Use {@link #JsonCContent(JsonFactory, Object)}
57-
*/
58-
@Deprecated
59-
public JsonCContent() {
60-
}
61-
6255
/**
6356
* @param jsonFactory JSON factory to use
6457
* @param data JSON key name/value data

google-api-client/src/main/java/com/google/api/client/googleapis/json/JsonCParser.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ static void setParser(HttpTransport transport) {
5252
*/
5353
public final class JsonCParser extends JsonHttpParser {
5454

55-
/**
56-
* @deprecated (scheduled to be removed in 1.6) Use {@link #JsonCParser(JsonFactory)}
57-
*/
58-
@Deprecated
59-
public JsonCParser() {
60-
}
61-
6255
/**
6356
* @param jsonFactory JSON factory
6457
* @since 1.5

google-api-client/src/main/java/com/google/api/client/googleapis/xml/atom/AtomPatchContent.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ static void setContent(
4848
*/
4949
public final class AtomPatchContent extends AtomContent {
5050

51-
/**
52-
* @deprecated (scheduled to be removed in 1.6) Use
53-
* {@link #AtomPatchContent(XmlNamespaceDictionary, Object)}
54-
*/
55-
@Deprecated
56-
public AtomPatchContent() {
57-
contentType = XmlHttpParser.CONTENT_TYPE;
58-
}
59-
6051
/**
6152
* @param namespaceDictionary XML namespace dictionary
6253
* @param patchEntry key/value pair data for the Atom PATCH entry

google-api-client/src/main/java/com/google/api/client/googleapis/xml/atom/AtomPatchRelativeToOriginalContent.java

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,11 @@ static void setContent(HttpRequest request, XmlNamespaceDictionary namespaceDict
4747
*/
4848
public final class AtomPatchRelativeToOriginalContent extends AbstractXmlHttpContent {
4949

50-
/**
51-
* Key/value pair data for the updated/patched Atom entry.
52-
*
53-
* @deprecated (scheduled to be made private final in 1.6) Use {@link #getPatchedEntry}
54-
*/
55-
@Deprecated
56-
public Object patchedEntry;
57-
58-
/**
59-
* Key/value pair data for the original unmodified Atom entry.
60-
*
61-
* @deprecated (scheduled to be made private final in 1.6) Use {@link #getOriginalEntry}
62-
*/
63-
@Deprecated
64-
public Object originalEntry;
50+
/** Key/value pair data for the updated/patched Atom entry. */
51+
private final Object patchedEntry;
6552

66-
/**
67-
* @deprecated (scheduled to be removed in 1.6) Use {@link
68-
* #AtomPatchRelativeToOriginalContent(XmlNamespaceDictionary, Object, Object)}
69-
*/
70-
@Deprecated
71-
public AtomPatchRelativeToOriginalContent() {
72-
}
53+
/** Key/value pair data for the original unmodified Atom entry. */
54+
private final Object originalEntry;
7355

7456
/**
7557
* @param namespaceDictionary XML namespace dictionary

google-api-client/src/main/java/com/google/api/client/googleapis/xml/atom/GoogleAtom.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,6 @@ private static void updateFieldsBasedOnNumFields(
151151
* Compute the patch object of key/value pairs from the given original and patched objects, adding
152152
* a {@code @gd:fields} key for the fields mask.
153153
*
154-
* <p>
155-
* Upgrade warning: in prior version 1.4 the return type was {@link ArrayMap}, but now it is
156-
* {@link Map} to allow flexibility in the implementation.
157-
* </p>
158-
*
159154
* @param patched patched object
160155
* @param original original object
161156
* @return patch object of key/value pairs

google-api-client/src/main/java/com/google/api/client/googleapis/xml/atom/MultiKindFeedParser.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ public final class MultiKindFeedParser<T> extends AbstractAtomFeedParser<T> {
4343

4444
private final HashMap<String, Class<?>> kindToEntryClassMap = new HashMap<String, Class<?>>();
4545

46-
/**
47-
* @deprecated (scheduled to be removed in 1.6) Use
48-
* {@link #create(HttpResponse, XmlNamespaceDictionary, Class, Class...)}
49-
*/
50-
@Deprecated
51-
public MultiKindFeedParser() {
52-
}
53-
5446
/**
5547
* @param namespaceDictionary XML namespace dictionary
5648
* @param parser XML pull parser to use

0 commit comments

Comments
 (0)