Browse Source
Userdiff regexp update for Java language. * ar/userdiff-java-update: userdiff: support Java sealed classes userdiff: support Java record types userdiff: support Java type parametersmaint
Junio C Hamano
2 years ago
16 changed files with 95 additions and 2 deletions
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
class RIGHT |
||||
{ |
||||
static int ONE; |
||||
static int TWO; |
||||
static int ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
class RIGHT <TYPE, PARAMS, AFTER, SPACE> { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
private A ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
class RIGHT<A, B> { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
private A ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
class RIGHT<A, B> implements List<A> { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
private A ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
interface RIGHT<A, B> { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
public B foo(A ChangeMe); |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
interface RIGHT<A, B> extends Function<A, B> { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
public B foo(A ChangeMe); |
||||
} |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
public abstract sealed class SealedClass { |
||||
public static non-sealed class RIGHT extends SealedClass { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
private int ChangeMe; |
||||
} |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
public record RIGHT(int comp1, double comp2, String comp3) { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
static int ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
public record RIGHT (String components, String after, String space) { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
static int ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
public record RIGHT<A, N extends Number>(A comp1, N comp2, int comp3) { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
static int ChangeMe; |
||||
} |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
public abstract sealed class Sealed { // RIGHT |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
public final class ChangeMe extends Sealed { |
||||
} |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
public abstract sealed class RIGHT permits PermittedA, PermittedB { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
private int ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
public abstract sealed class RIGHT<A, B> { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
private int ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
public abstract sealed class RIGHT<A, B> implements List<A> permits PermittedA, PermittedB { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
private int ChangeMe; |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
public abstract sealed class RIGHT<A, B> permits PermittedA, PermittedB { |
||||
static int ONE; |
||||
static int TWO; |
||||
static int THREE; |
||||
private int ChangeMe; |
||||
} |
Loading…
Reference in new issue