|
|
@@ -1,11 +1,13 @@
|
|
|
package jplag.java19;
|
|
|
|
|
|
+import jplag.Token;
|
|
|
+
|
|
|
public class JavaToken extends jplag.Token implements JavaTokenConstants {
|
|
|
private static final long serialVersionUID = -383581430479870696L;
|
|
|
private int line, column, length;
|
|
|
|
|
|
public JavaToken(int type, String file, int col, int line, int length) {
|
|
|
- super(type, file, col, line, length);
|
|
|
+ super(type, file, col, line, length); // TS: Why are the parameters line and column swapped here?
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -183,4 +185,9 @@ public class JavaToken extends jplag.Token implements JavaTokenConstants {
|
|
|
public static int numberOfTokens() {
|
|
|
return NUM_DIFF_TOKENS;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Token copy() {
|
|
|
+ return new JavaToken(type, file, line, column, length);
|
|
|
+ }
|
|
|
}
|