system/src/sc/lang/java/ModelUtil.java
public static List<Object> mergeAnnotationLists(List<Object> mainAnnot, List<Object> overAnnot, boolean replace) {
      if (mainAnnot == null)
         return overAnnot;
      if (overAnnot == null)
         return mainAnnot;
      ArrayList<Object> res = new ArrayList<Object>();
      res.addAll(mainAnnot);
      res.addAll(overAnnot);
      return res;
   }
/**
    * For repeating annotations, it seems like we merge the definitions unless we add smarts for a specific annotation.
    * For now, we just append the lists and return all of them.
    */
For repeating annotations, it seems like we merge the definitions unless we add smarts for a specific annotation.
For now, we just append the lists and return all of them.
For repeating annotations it seems like we merge the definitions unless we add smarts for a specific annotation . For now we just append the lists and return all of them .
public static List<Object> mergeAnnotationLists(List<Object> mainAnnot, List<Object> overAnnot, boolean replace) {
      if (mainAnnot == null)
         return overAnnot;
      if (overAnnot == null)
         return mainAnnot;
      ArrayList<Object> res = new ArrayList<Object>();
      res.addAll(mainAnnot);
      res.addAll(overAnnot);
      return res;
   }
public static List < Object > mergeAnnotationLists ( List < Object > mainAnnot , List < Object > overAnnot , boolean replace ) { if ( mainAnnot == null ) return overAnnot ; if ( overAnnot == null ) return mainAnnot ; ArrayList < Object > res = new ArrayList < Object > ( ) ; res . addAll ( mainAnnot ) ; res . addAll ( overAnnot ) ; return res ; }
For repeating annotations, it seems like we merge the definitions unless we add smarts for a specific annotation.
For repeating annotations it seems like we merge the definitions unless we add smarts for a specific annotation .