aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core/src
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2024-10-21 10:10:54 +0100
committerSimon Steiner <ssteiner@apache.org>2024-10-21 10:10:54 +0100
commit49e0e9ae69cf96eb4c13527b271c8a70a5f5f843 (patch)
tree6a0c26507e85090dc6e814c89b9d757f84cabe6a /fop-core/src
parent8c362e0ac407ef2286d17769884f1faccba2b5c3 (diff)
downloadxmlgraphics-fop-49e0e9ae69cf96eb4c13527b271c8a70a5f5f843.tar.gz
xmlgraphics-fop-49e0e9ae69cf96eb4c13527b271c8a70a5f5f843.zip
Fix compile on Java 23
Diffstat (limited to 'fop-core/src')
-rw-r--r--fop-core/src/main/java/org/apache/fop/layoutmgr/KnuthSequence.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/KnuthSequence.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/KnuthSequence.java
index ce85b686c..8f4a6d66c 100644
--- a/fop-core/src/main/java/org/apache/fop/layoutmgr/KnuthSequence.java
+++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/KnuthSequence.java
@@ -134,20 +134,20 @@ public abstract class KnuthSequence<T extends ListElement> extends ArrayList<T>
/**
* @return the last element of this sequence.
*/
- public ListElement getLast() {
+ public T getLast() {
return (isEmpty()
? null
- : (ListElement) ListUtil.getLast(this));
+ : ListUtil.getLast(this));
}
/**
* Remove the last element of this sequence.
* @return the removed element.
*/
- public ListElement removeLast() {
+ public T removeLast() {
return (isEmpty()
? null
- : (ListElement) ListUtil.removeLast(this));
+ : ListUtil.removeLast(this));
}
/**