Eclipseから警告が表示されます
Type safety: The expression of type TreeItem[] needs unchecked conversion to conform to TreeItem<AppleItem>[]
これを使用している間:
TreeItem<AppleItem>[] friends = item.getChildren().toArray(new TreeItem[0]);
使いたくない、@uncheck
またはループを使って1つずつ挿入したくない。これを行う方法はありますか?
どうやらいいねをgetChildren
返すArrayList
ArrayList<TreeItem<AppleItem>>
前もって感謝します。