Specialize return types on copy.
This commit is contained in:
@@ -362,7 +362,7 @@ public class AffineTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public Transform copy () {
|
||||
public AffineTransform copy () {
|
||||
return new AffineTransform(m00, m01, m10, m11, tx, ty);
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ public class IdentityTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public Transform copy () {
|
||||
public IdentityTransform copy () {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -362,7 +362,7 @@ public class AffineTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public Transform copy () {
|
||||
public AffineTransform copy () {
|
||||
return new AffineTransform(m00, m01, m10, m11, tx, ty);
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ public class IdentityTransform extends AbstractTransform
|
||||
}
|
||||
|
||||
@Override // from Transform
|
||||
public Transform copy () {
|
||||
public IdentityTransform copy () {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user