Closed vimahk closed 3 years ago
[https://github.com/gothinkster/spring-boot-realworld-example-app/blob/master/src/main/java/io/spring/core/article/Article.java] Article
core.article package in Articleclass constructor, you have collected Tags in the Set then immediately collected them into a List. Is there a good reason for that? If it's for shuffling, it's better to use Collections.shuffle().
core.article
Article
Tag
Set
List
Collections.shuffle()
I think that did for removing duplicates
[https://github.com/gothinkster/spring-boot-realworld-example-app/blob/master/src/main/java/io/spring/core/article/Article.java] Article
core.article
package inArticle
class constructor, you have collectedTag
s in theSet
then immediately collected them into aList
. Is there a good reason for that? If it's for shuffling, it's better to useCollections.shuffle()
.