Skip to content

Conversation

@Manas-Dikshit
Copy link

This PR refactors the Update class to improve CI/CD stability and maintain the same update logic:

  • Reuses a single Update instance instead of creating a new one per directory.
  • Adds per-directory IOException handling to prevent the process from failing mid-way.
  • Uses System.out.print for clearing console lines, avoiding extra newlines.

The update and lookup logic remain unchanged. These changes ensure smoother execution and better logging for multiple directory updates.

*/
public class Update {
public static void main(String[] args) {
Update updater = new Update(); // reuse instance
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this works. The value of the retired field might be different in a reused object. I'm not fully sure.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If one instance can be reused, then this should all just be static methods, no instances at all. @hboutemy

@elharo elharo requested a review from hboutemy October 12, 2025 11:10
*/
public class Update {
public static void main(String[] args) {
Update updater = new Update(); // reuse instance
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If one instance can be reused, then this should all just be static methods, no instances at all. @hboutemy

@slachiewicz slachiewicz closed this Nov 9, 2025
@slachiewicz slachiewicz added the wontfix This will not be worked on label Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants