Created
December 16, 2021 11:02
-
-
Save amitprasad119/56a160c42a083dfe225beb443f197098 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void updateData(Data data) { | |
if (data == null) { | |
return; | |
} else if (data.isPresent()) { | |
// do stuff here | |
} else { | |
trow new Exception(msg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment