mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
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:
parent
86cb3f21f6
commit
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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user