Corrected the changes based on review comment
This commit is contained in:
parent
1a0d8f4be0
commit
761e38f0a1
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user