Skip to content

Commit 143adcd

Browse files
Update type to be the new base area type
1 parent 9d5704f commit 143adcd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

richtextfx/src/main/java/org/fxmisc/richtext/LineNumberFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public class LineNumberFactory implements IntFunction<Node> {
2828
private static final Background DEFAULT_BACKGROUND =
2929
new Background(new BackgroundFill(Color.web("#ddd"), null, null));
3030

31-
public static IntFunction<Node> get(StyledTextArea<?, ?> area) {
31+
public static IntFunction<Node> get(GenericStyledArea<?, ?, ?> area) {
3232
return get(area, digits -> "%0" + digits + "d");
3333
}
3434

3535
public static IntFunction<Node> get(
36-
StyledTextArea<?, ?> area,
36+
GenericStyledArea<?, ?, ?> area,
3737
IntFunction<String> format) {
3838
return new LineNumberFactory(area, format);
3939
}
@@ -42,7 +42,7 @@ public static IntFunction<Node> get(
4242
private final IntFunction<String> format;
4343

4444
private LineNumberFactory(
45-
StyledTextArea<?, ?> area,
45+
GenericStyledArea<?, ?, ?> area,
4646
IntFunction<String> format) {
4747
nParagraphs = LiveList.sizeOf(area.getParagraphs());
4848
this.format = format;

0 commit comments

Comments
 (0)