Skip to content

Commit 7025310

Browse files
authored
CloneableSmartAsset: clarify the setKey() javadoc (#2018)
1 parent ac4c763 commit 7025310

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

jme3-core/src/main/java/com/jme3/asset/CloneableSmartAsset.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009-2012 jMonkeyEngine
2+
* Copyright (c) 2009-2023 jMonkeyEngine
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -65,13 +65,14 @@ public interface CloneableSmartAsset extends Cloneable {
6565
public CloneableSmartAsset clone();
6666

6767
/**
68-
* Set by the {@link AssetManager} to track this asset.
68+
* Assigns the specified AssetKey to the asset.
6969
*
70-
* Only clones of the asset has this set, the original copy that
71-
* was loaded has this key set to null so that only the clones are tracked
72-
* for garbage collection.
70+
* This is invoked by the {@link AssetManager}.
71+
* Only clones of the asset have non-null keys. The original copy that
72+
* was loaded has no key assigned. Only the clones are tracked
73+
* for garbage collection.
7374
*
74-
* @param key The AssetKey to set
75+
* @param key The AssetKey to assign
7576
*/
7677
public void setKey(AssetKey key);
7778

0 commit comments

Comments
 (0)