Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloneableSmartAsset: clarify the setKey() javadoc #2018

Merged
merged 1 commit into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions jme3-core/src/main/java/com/jme3/asset/CloneableSmartAsset.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2023 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -65,13 +65,14 @@ public interface CloneableSmartAsset extends Cloneable {
public CloneableSmartAsset clone();

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

Expand Down