Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Referring to the excellent answer at https://stackoverflow.com/questi…
Browse files Browse the repository at this point in the history
…ons/14231037/java-safevarargs-annotation-does-a-standard-or-best-practice-exist it's safe to put SafeVarargs annotation here (it's only used to iterate over the elements). I was curious about that

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704771 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Sep 23, 2015
1 parent a8b16d8 commit 8402c59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/entity/src/org/ofbiz/entity/util/EntityUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class EntityUtil {

public static final String module = EntityUtil.class.getName();

@SafeVarargs
public static <V> Map<String, V> makeFields(V... args) {
Map<String, V> fields = new HashMap<String, V>();
if (args != null) {
Expand Down

0 comments on commit 8402c59

Please sign in to comment.