Skip to content

Commit

Permalink
Added credit to Sonal Mahajan in ReDeCheck code.
Browse files Browse the repository at this point in the history
  • Loading branch information
twalsh92 committed Mar 12, 2018
1 parent 15687b7 commit 59d2484
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/shef/layout/Layout.java
Expand Up @@ -150,16 +150,16 @@ private boolean flippedParent(ParentChild pc) {
return false;
}


/*
Thanks to Sonal Mahajan (sonalmahajan), who wrote this method for her tool WebSee.
I have modified it slightly for use in ReDeCheck.
*/
public List<Integer> getChildren(final int elementId) {
final ArrayList<Integer> children = new ArrayList<>();
rtree.contains(rectangles.get(elementId), new TIntProcedure() {
@Override
public boolean execute(int i) {
if (i != elementId) {
// if (elementId == 24 && i == 25) {
// System.out.println(xpaths.get(elementId) + " contains!!! " + xpaths.get(i));
// }
// Check for children same size as parents
if (!xpaths.get(elementId).contains(xpaths.get(i))) {
children.add(i);
Expand Down

0 comments on commit 59d2484

Please sign in to comment.