diffj icon indicating copy to clipboard operation
diffj copied to clipboard

DiffJ compares without taking code location into consideration

Open VladyslavBondarenko opened this issue 3 years ago • 0 comments

DiffJ v1.6.4. When I compare the file to itself - DiffJ finds differences.

class MyClass {
    static {
        int a = 1;
    }
    static {
    	int b = 2;
    }
}

Output:

test.java <=> test.java
3c6 code changed in static block
<         int a = 1;
---
>     	int b = 2;

6c3 code changed in static block
<     	int b = 2;
---
>         int a = 1;

Related to https://github.com/jpace/diffj/issues/6

VladyslavBondarenko avatar May 11 '21 00:05 VladyslavBondarenko