资产注释存储在资产的状态历史记录中。 可以使用 RAMAsset.getCurrentStateHistory() 来获取资产的当前评论。
//Get the current state history RAMStateHistory stateHistory = newAsset.getCurrentStateHistory(); //Get the comments from the state history RAMComment[] comments = stateHistory.getComments();