зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1315980 - Changed ExtendedJSONObject to implement Cloneable and the clone() method to throw CloneNotSupportedException. Changed inner class in ResizablePathDrawable to implement Cloneable. r=sebastian
MozReview-Commit-ID: AIxAp1zlN2J --HG-- extra : rebase_source : 3b2a95082d204315345bdccf165af576f31ac7ce
This commit is contained in:
Родитель
86cb3f21f6
Коммит
3eb5ac25e9
|
@ -85,7 +85,7 @@ public class ResizablePathDrawable extends ShapeDrawable {
|
|||
* when it gets resized as opposed to PathShape's scaling
|
||||
* behaviour.
|
||||
*/
|
||||
public static class NonScaledPathShape extends Shape {
|
||||
public static class NonScaledPathShape extends Shape implements Cloneable {
|
||||
private Path path;
|
||||
|
||||
public NonScaledPathShape() {
|
||||
|
|
|
@ -25,7 +25,7 @@ import java.util.Set;
|
|||
* @author rnewman
|
||||
*
|
||||
*/
|
||||
public class ExtendedJSONObject {
|
||||
public class ExtendedJSONObject implements Cloneable {
|
||||
|
||||
public JSONObject object;
|
||||
|
||||
|
@ -174,7 +174,7 @@ public class ExtendedJSONObject {
|
|||
}
|
||||
|
||||
@Override
|
||||
public ExtendedJSONObject clone() {
|
||||
public ExtendedJSONObject clone() throws CloneNotSupportedException {
|
||||
return new ExtendedJSONObject((JSONObject) this.object.clone());
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче