Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. public void nextChanges( Change currentChange, ArrayList<Change> proposedChanges, ArrayList<Change> curPath, ArrayList<ArrayList<Change>> ardalist ){
  2. curPath.add( currentChange );
  3. for( Change e : proposedChanges ){
  4. if( e.getChangeSource().equals( currentChange.getChangeTarget() ) ){
  5. if( !e.getChangeSource().equals( e.getChangeTarget() ) ){
  6. ArrayList<Change> curPathLocal = (ArrayList<Change>)curPath.clone();
  7. nextChanges( e, proposedChanges, curPathLocal, ardalist );
  8. }
  9. }
  10. }
  11. boolean add = true;
  12. for( ArrayList<Change> d : ardalist ){
  13. if( d.containsAll( curPath ) ){
  14. add = false;
  15. }
  16. }
  17. if( add ){
  18. ardalist.add( curPath );
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement