MrCrayfish / ModelCreator

A program to create JSON models for blocks
Other
121 stars 64 forks source link

Simplified try-catch with Java 8 features. #94

Closed ghost closed 8 years ago

ghost commented 8 years ago

Note: If it's not alright for any reason, I won't pull-request more. Although I would be glad to help when possible :)

AndersBillLinden commented 8 years ago

Maybe you need to close the BufferedReader, but I can´t see how that should make you stop pull requesting!

ghost commented 8 years ago

@AndersBillLinden, there's no need to manually close it. BufferedReader class implements the AutoCloseble interface, which allows the try-catch (Which is actually Java 8's try-with-resources) to automatically close the BufferedReader internally.

But although it's not needed, I like to share information :)