From cf7912720dea952ed60ab68797956467b6ed8237 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Sat, 17 Feb 2018 07:56:32 -0800 Subject: [PATCH] deprecate Control.cloneForSpatial() --- .../src/main/java/com/jme3/scene/control/Control.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/control/Control.java b/jme3-core/src/main/java/com/jme3/scene/control/Control.java index 63d7b43c8..d3d0e221f 100644 --- a/jme3-core/src/main/java/com/jme3/scene/control/Control.java +++ b/jme3-core/src/main/java/com/jme3/scene/control/Control.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012 jMonkeyEngine + * Copyright (c) 2009-2018 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -47,11 +47,15 @@ import com.jme3.scene.Spatial; public interface Control extends Savable { /** - * Creates a clone of the Control, the given Spatial is the cloned - * version of the spatial to which this control is attached to. + * Creates a clone of the Control, the given Spatial is the cloned version + * of the spatial to which this control is attached to. + * * @param spatial * @return A clone of this control for the spatial + * @deprecated Use + * {@link com.jme3.util.clone.JmeCloneable#cloneFields(com.jme3.util.clone.Cloner, java.lang.Object)} */ + @Deprecated public Control cloneForSpatial(Spatial spatial); /**