aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/geom/Vertex.java
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-02-02 10:24:51 +0100
committerSven Göthel <[email protected]>2024-02-02 10:24:51 +0100
commitaa39750aa27fc4c65f34fbd599186b30e5005f59 (patch)
tree3dc4050e2ed216514f432d05efeb9b34a8e89b3c /src/jogl/classes/com/jogamp/graph/geom/Vertex.java
parent1639bf159810895eb24791c8128a7b2c02d15a56 (diff)
Remove Clonable and clone() in favor of explicit determined copy() and copy-ctor in com.jogamp.graph.* and com.jogamp.math.*
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/geom/Vertex.java')
-rw-r--r--src/jogl/classes/com/jogamp/graph/geom/Vertex.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/geom/Vertex.java b/src/jogl/classes/com/jogamp/graph/geom/Vertex.java
index 8744474d9..67d468ab6 100644
--- a/src/jogl/classes/com/jogamp/graph/geom/Vertex.java
+++ b/src/jogl/classes/com/jogamp/graph/geom/Vertex.java
@@ -34,7 +34,7 @@ import com.jogamp.math.Vert3fImmutable;
/**
* A Vertex exposing Vec3f vertex- and texture-coordinates.
*/
-public final class Vertex implements Vert3fImmutable, Cloneable {
+public final class Vertex implements Vert3fImmutable {
private int id;
private boolean onCurve;
private final Vec3f coord = new Vec3f();
@@ -44,6 +44,7 @@ public final class Vertex implements Vert3fImmutable, Cloneable {
this.id = Integer.MAX_VALUE;
}
+ /** Copy ctor */
public Vertex(final Vertex src) {
this.id = Integer.MAX_VALUE;
coord.set(src.getCoord());
@@ -195,11 +196,10 @@ public final class Vertex implements Vert3fImmutable, Cloneable {
}
/**
- * @return deep clone of this Vertex elements
+ * @return deep copy of this Vertex element via {@link Vertex#Vertex(Vertex)}
*/
- @Override
- public Vertex clone(){
- return new Vertex(this); // OK to not call super.clone(), using own copy-ctor
+ public Vertex copy(){
+ return new Vertex(this);
}
@Override