Corrected the changes based on review comment

This commit is contained in:
Amitabh Tiwari 2020-11-21 15:35:14 +05:30
parent 1a0d8f4be0
commit 761e38f0a1
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
package com.baeldung.exceptions.nosuchfielderror;
public class Dependent {
public class Dependency {
// This needed to be commented post compilation of NoSuchFielDError and Compile
public static String message = "Hello Baeldung!!";

View File

@ -9,7 +9,7 @@ public class FieldErrorExample {
public static String getDependentMessage() {
return Dependent.message;
return Dependency.message;
}
public static void fetchAndPrint() {