Skip to content

Commit

Permalink
removed removeLast() function that conflicts with new ArrayList API i…
Browse files Browse the repository at this point in the history
…n Java 21
  • Loading branch information
mimno committed Mar 14, 2024
1 parent ff204eb commit 5fbf800
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cc/mallet/types/TokenSequence.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public void add(String string) {
}

// added by Fuchun Peng, Oct. 24, 2003
// Conflicts with Java 21 API, removing -DM 3/14/2024
/*
public Object removeLast () {
if (this.size() > 0) {
return this.remove (this.size() - 1);
Expand All @@ -97,6 +99,7 @@ public Object removeLast () {
return null;
}
}
*/


public void addAll (Object[] objects) {
Expand Down

0 comments on commit 5fbf800

Please sign in to comment.