Skip to content

Commit cf8bf8d

Browse files
committed
Corrected the changes based on review comment
1 parent d24a59c commit cf8bf8d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core-java-modules/core-java-exceptions-3/src/main/java/com/baeldung/exceptions/nosuchfielderror/Dependent.java renamed to core-java-modules/core-java-exceptions-3/src/main/java/com/baeldung/exceptions/nosuchfielderror/Dependency.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.baeldung.exceptions.nosuchfielderror;
22

3-
public class Dependent {
3+
public class Dependency {
44

55
// This needed to be commented post compilation of NoSuchFielDError and Compile
66
public static String message = "Hello Baeldung!!";

core-java-modules/core-java-exceptions-3/src/main/java/com/baeldung/exceptions/nosuchfielderror/FieldErrorExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static void main(String... args) {
99

1010
public static String getDependentMessage() {
1111

12-
return Dependent.message;
12+
return Dependency.message;
1313
}
1414

1515
public static void fetchAndPrint() {

0 commit comments

Comments
 (0)