Corrected the changes based on review comment
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
package com.baeldung.exceptions.nosuchfielderror;
|
package com.baeldung.exceptions.nosuchfielderror;
|
||||||
|
|
||||||
public class Dependent {
|
public class Dependency {
|
||||||
|
|
||||||
// This needed to be commented post compilation of NoSuchFielDError and Compile
|
// This needed to be commented post compilation of NoSuchFielDError and Compile
|
||||||
public static String message = "Hello Baeldung!!";
|
public static String message = "Hello Baeldung!!";
|
||||||
@@ -9,7 +9,7 @@ public class FieldErrorExample {
|
|||||||
|
|
||||||
public static String getDependentMessage() {
|
public static String getDependentMessage() {
|
||||||
|
|
||||||
return Dependent.message;
|
return Dependency.message;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void fetchAndPrint() {
|
public static void fetchAndPrint() {
|
||||||
|
|||||||
Reference in New Issue
Block a user