Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Commit 62869ef

Browse files
committed
inner class/enum should be static
1 parent 303a4f0 commit 62869ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/difflib/Delta.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public abstract class Delta<T> {
3535
* Specifies the type of the delta.
3636
*
3737
*/
38-
public enum TYPE {
38+
public static enum TYPE {
3939
/** A change in the original. */
4040
CHANGE,
4141
/** A delete from the original. */

src/main/java/difflib/DiffRow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public DiffRow(@Nonnull Tag tag, @Nullable String oldLine, @Nullable String newL
4040
this.newLine = newLine;
4141
}
4242

43-
public enum Tag {
43+
public static enum Tag {
4444
INSERT, DELETE, CHANGE, EQUAL
4545
}
4646

0 commit comments

Comments
 (0)