BAEL-4399: Changes for removing tab spaces
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.baeldung.exceptions.nosuchfielderror;
|
||||
|
||||
public class Dependent {
|
||||
|
||||
// This needed to be commented post compilation of NoSuchFielDError and Compile
|
||||
public static String message = "Hello Baeldung!!";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,16 +1,20 @@
|
||||
package com.baeldung.exceptions.nosuchfielderror;
|
||||
|
||||
public class FieldErrorExample {
|
||||
|
||||
|
||||
public static void main(String... args) {
|
||||
|
||||
fetchAndPrint();
|
||||
}
|
||||
|
||||
|
||||
public static String getDependentMessage() {
|
||||
|
||||
return Dependent.message;
|
||||
}
|
||||
|
||||
|
||||
public static void fetchAndPrint() {
|
||||
|
||||
System.out.println(getDependentMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user