Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno Borges
2026-04-06 14:09:17 -04:00
parent 46f6f3e6db
commit 57b2799408
7 changed files with 50 additions and 37 deletions

View File

@@ -22,7 +22,12 @@ public class AccessibilityReport {
var reader = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter URL to analyze: ");
String url = reader.readLine().trim();
String urlLine = reader.readLine();
if (urlLine == null) {
System.out.println("No URL provided. Exiting.");
return;
}
String url = urlLine.trim();
if (url.isEmpty()) {
System.out.println("No URL provided. Exiting.");
return;