Merge "Do not deep copy bundle in getExtras()" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9214de571f
@@ -200,13 +200,11 @@ public final class ConversationAction implements Parcelable {
|
||||
/**
|
||||
* Returns the extended data related to this conversation action.
|
||||
*
|
||||
* <p><b>NOTE: </b>Each call to this method returns a new bundle copy so clients should
|
||||
* prefer to hold a reference to the returned bundle rather than frequently calling this
|
||||
* method.
|
||||
* <p><b>NOTE: </b>Do not modify this bundle.
|
||||
*/
|
||||
@NonNull
|
||||
public Bundle getExtras() {
|
||||
return mExtras.deepCopy();
|
||||
return mExtras;
|
||||
}
|
||||
|
||||
/** Builder class to construct {@link ConversationAction}. */
|
||||
|
||||
@@ -214,13 +214,11 @@ public final class ConversationActions implements Parcelable {
|
||||
/**
|
||||
* Returns the extended data related to this conversation action.
|
||||
*
|
||||
* <p><b>NOTE: </b>Each call to this method returns a new bundle copy so clients should
|
||||
* prefer to hold a reference to the returned bundle rather than frequently calling this
|
||||
* method.
|
||||
* <p><b>NOTE: </b>Do not modify this bundle.
|
||||
*/
|
||||
@NonNull
|
||||
public Bundle getExtras() {
|
||||
return mExtras.deepCopy();
|
||||
return mExtras;
|
||||
}
|
||||
|
||||
/** Builder class to construct a {@link Message} */
|
||||
|
||||
@@ -265,13 +265,11 @@ public final class TextClassification implements Parcelable {
|
||||
/**
|
||||
* Returns the extended data.
|
||||
*
|
||||
* <p><b>NOTE: </b>Each call to this method returns a new bundle copy so clients should
|
||||
* prefer to hold a reference to the returned bundle rather than frequently calling this
|
||||
* method.
|
||||
* <p><b>NOTE: </b>Do not modify this bundle.
|
||||
*/
|
||||
@NonNull
|
||||
public Bundle getExtras() {
|
||||
return mExtras.deepCopy();
|
||||
return mExtras;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -635,13 +633,11 @@ public final class TextClassification implements Parcelable {
|
||||
/**
|
||||
* Returns the extended data.
|
||||
*
|
||||
* <p><b>NOTE: </b>Each call to this method returns a new bundle copy so clients should
|
||||
* prefer to hold a reference to the returned bundle rather than frequently calling this
|
||||
* method.
|
||||
* <p><b>NOTE: </b>Do not modify this bundle.
|
||||
*/
|
||||
@NonNull
|
||||
public Bundle getExtras() {
|
||||
return mExtras.deepCopy();
|
||||
return mExtras;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -125,13 +125,11 @@ public final class TextLinks implements Parcelable {
|
||||
/**
|
||||
* Returns the extended data.
|
||||
*
|
||||
* <p><b>NOTE: </b>Each call to this method returns a new bundle copy so clients should
|
||||
* prefer to hold a reference to the returned bundle rather than frequently calling this
|
||||
* method.
|
||||
* <p><b>NOTE: </b>Do not modify this bundle.
|
||||
*/
|
||||
@NonNull
|
||||
public Bundle getExtras() {
|
||||
return mExtras.deepCopy();
|
||||
return mExtras;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -413,13 +411,11 @@ public final class TextLinks implements Parcelable {
|
||||
/**
|
||||
* Returns the extended data.
|
||||
*
|
||||
* <p><b>NOTE: </b>Each call to this method returns a new bundle copy so clients should
|
||||
* prefer to hold a reference to the returned bundle rather than frequently calling this
|
||||
* method.
|
||||
* <p><b>NOTE: </b>Do not modify this bundle.
|
||||
*/
|
||||
@NonNull
|
||||
public Bundle getExtras() {
|
||||
return mExtras.deepCopy();
|
||||
return mExtras;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -112,13 +112,11 @@ public final class TextSelection implements Parcelable {
|
||||
/**
|
||||
* Returns the extended data.
|
||||
*
|
||||
* <p><b>NOTE: </b>Each call to this method returns a new bundle copy so clients should
|
||||
* prefer to hold a reference to the returned bundle rather than frequently calling this
|
||||
* method.
|
||||
* <p><b>NOTE: </b>Do not modify this bundle.
|
||||
*/
|
||||
@NonNull
|
||||
public Bundle getExtras() {
|
||||
return mExtras.deepCopy();
|
||||
return mExtras;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -296,13 +294,11 @@ public final class TextSelection implements Parcelable {
|
||||
/**
|
||||
* Returns the extended data.
|
||||
*
|
||||
* <p><b>NOTE: </b>Each call to this method returns a new bundle copy so clients should
|
||||
* prefer to hold a reference to the returned bundle rather than frequently calling this
|
||||
* method.
|
||||
* <p><b>NOTE: </b>Do not modify this bundle.
|
||||
*/
|
||||
@NonNull
|
||||
public Bundle getExtras() {
|
||||
return mExtras.deepCopy();
|
||||
return mExtras;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user