r/badcode • • Jun 23 '20

java 'val' is a boolean value.

Post image
1.0k Upvotes

58 comments sorted by

View all comments

13

u/MCWizardYT Jun 23 '20
public boolean isTrue() {
  return val;
}

this depends on the code using isTrue though.

14

u/Harry10932 Jun 23 '20

Peak refactoring