ephemient
09/20/2023, 5:13 AMShreyas Patil
09/20/2023, 5:23 AMbeholder
09/21/2023, 11:40 AMpublic class Example
{
Boolean value1 = computeValue1();
String value2 = getData();
Boolean computeValue1() {
return value2.isEmpty();
}
static String getData() {
return "SomeData";
}
public static void main(String[] args) {
new Example();
}
}
Shreyas Patil
09/21/2023, 11:42 AMval something: Type
something
is val declared as Non nullable type, so it becomes tricky to identify such issues in code review or debugging.