coreRuntime/src/sc/sync/SyncManager.java
private static void removeDuplicateContexts(ArrayList<SyncContext> result) {
      for (int i = 0; i < result.size(); i++) {
         SyncContext cur = result.get(i);
         for (int j = i+1; j < result.size(); j++) {
            if (cur == result.get(j)) {
               result.remove(j);
               j--;
            }
         }
      }
   }
// Since we sorted the list, duplicates will be next to each other
Since we sorted the list, duplicates will be next to each other
Since we sorted the list duplicates will be next to each other
private static void removeDuplicateContexts(ArrayList<SyncContext> result) {
      for (int i = 0; i < result.size(); i++) {
         SyncContext cur = result.get(i);
         for (int j = i+1; j < result.size(); j++) {
            if (cur == result.get(j)) {
               result.remove(j);
               j--;
            }
         }
      }
   }
private static void removeDuplicateContexts ( ArrayList < SyncContext > result ) { for ( int i = 0 ; i < result . size ( ) ; i ++ ) { SyncContext cur = result . get ( i ) ; for ( int j = i + 1 ; j < result . size ( ) ; j ++ ) { if ( cur == result . get ( j ) ) { result . remove ( j ) ; j -- ; } } } }
Since we sorted the list, duplicates will be next to each other
Since we sorted the list duplicates will be next to each other