Tsuser1 / Modern-LWC

Welcome to the future of LWC, get ready to get back into this classic plugin!
MIT License
29 stars 14 forks source link

Is this problem? compare int and Integer variable #65

Closed ghost closed 6 years ago

ghost commented 6 years ago

https://github.com/Tsuser1/Modern-LWC/blob/4973f9806e85f27da13aa2c45201f45476867f18/src/main/java/com/griefcraft/cache/BlockCache.java#L121

nextId is int and materialId is Integer. Is this compare correct?

pop4959 commented 6 years ago

It should be fine due to Java's autoboxing feature. See https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html

ghost commented 6 years ago

Thanks for the response. I understand it! close issue....