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:
Swaroop Rao 2016-11-17 10:37:41 -05:00
Родитель 86cb3f21f6
Коммит 3eb5ac25e9
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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());
}