-
Notifications
You must be signed in to change notification settings - Fork 359
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
feat: bundle global app shell #20171
base: master
Are you sure you want to change the base?
Conversation
Instance deployed to https://dev.im.dhis2.org/pr-20171 |
aa8fe8c
to
a65bd44
Compare
|
PrintWriter output = new PrintWriter(outputStream, true, StandardCharsets.UTF_8); | ||
try { | ||
while (iterator.hasNext()) { | ||
String line = iterator.nextLine(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
LineIterator.nextLine
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 1 hour ago
To fix the problem, we need to replace the deprecated LineIterator.nextLine()
method with its recommended alternative. The LineIterator
class provides the next()
method, which can be used instead of nextLine()
. This method returns the next line in the iteration, similar to nextLine()
.
- Replace the call to
iterator.nextLine()
withiterator.next()
. - Ensure that the functionality remains the same by verifying that
iterator.next()
returns the same type of data (a line of text) asiterator.nextLine()
.
-
Copy modified line R51
@@ -50,3 +50,3 @@ | ||
while (iterator.hasNext()) { | ||
String line = iterator.nextLine(); | ||
String line = iterator.next(); | ||
output.println(replaceLine(line)); |
Follow-on to #20074