0

Hi,

I was using booleans earlier in my class.
--> isProductRestricted
--> internal
--> isProductGlobal

I am using lombok too. So putting @Data at the top of class too. But, now I changed these boolean to Boolean variable.
I got errors where ever Object.isInternal() was used. I am not getting how isInternal() was working initially. There is no function in my class too.

Also, I am able to access boolean isProductGlobal using Object.getProductGlobal() bit there is "is" also attached to the productGlobal name. Can you please explain this? How is it happening here?

Thanks in advance.

2
Contributors
4
Replies
17
Views
1 Year
Discussion Span
Last Post by nitin1
0

No. NOt object class. Consider it as like this:

MyClass myClass = new MyClass();

myClass.isInternal()
myClass.getProductGlobal()
0

OK, it's just that you used Object in your first post

When you say "got errors", exactly what error messages do yu see?

Edited by JamesCherrill

0

Thanks for your quick response.
Yes. By errors, I meant that they are not defined any more. This happened when I changed boolean to Boolean. I suspect this happens because of lombok.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.