You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am use diff command in Ubuntu to compare two java file line by line. Suppose the following is the output of two java file. Obviously, the "c" indicate the change action, but i donot know which line does the " return super.equals(obj);" correspond to ? In other words, does " return super.equals(obj);" map to "ShapeList that = (ShapeList) obj;" or to "return true;" ?
111c111,118
< return super.equals(obj);
---
> ShapeList that = (ShapeList) obj;
> int listSize = size();
> for (int i = 0; i < listSize; i++) {
> if (!ShapeUtilities.equal((Shape) get(i), (Shape) that.get(i))) {
> return false;
> }
> }
> return true;
The text was updated successfully, but these errors were encountered:
I am use diff command in Ubuntu to compare two java file line by line. Suppose the following is the output of two java file. Obviously, the "c" indicate the change action, but i donot know which line does the " return super.equals(obj);" correspond to ? In other words, does " return super.equals(obj);" map to "ShapeList that = (ShapeList) obj;" or to "return true;" ?
The text was updated successfully, but these errors were encountered: