Development hints

From AadlWiki

Jump to: navigation, search

Contents

Getting all contents from EMF

See.

 TreeIterator<Element> it = EcoreUtil.getAllContents(Collections.singleton(root));

used in InstantiateModel.java


Using findbugs2

  • URL: http://findbugs.sourceforge.net/
  • Invoking on OSATE: findbugs2 -textui -output toto2.html -html -onlyAnalyze org.osate.- /tmp/osate/core/org.osate.* /tmp/osate/plugins/*


Using PMD

  • URL: http://pmd.sourceforge.net
  • Invoking on OSATE: HEAPSIZE=1024m ./bin/run.sh pmd -d /tmp/osate/core/ -f html -R java-unusedcode -version 1.7 -language java

Links

Personal tools