-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
listObjects()
returns immutable list
#6
Labels
Comments
ErrorxCode
added
bug
Something isn't working
good first issue
Good for newcomers
labels
Apr 17, 2023
Hi, I'm new to Os, can I try to solve it |
sure, I would be very happy. Do you know how to fix that ? |
Sure, I can give it a try. |
Hi, I could run the code but I made this change: |
Brilliant ! |
Okay |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
the
listObjects()
method returns an immutable list which can't be modified.Solution
Just wrap it in the constructure of a new list.
For example,
new ArrayList<>(db.listObject())
The text was updated successfully, but these errors were encountered: