jMonkeyEngine / jmonkeyengine

A complete 3-D game development suite written in Java.
http://jmonkeyengine.org
BSD 3-Clause "New" or "Revised" License
3.8k stars 1.12k forks source link

VarType: format code #2199

Closed capdevon closed 7 months ago

capdevon commented 7 months ago

VarType.Boolean: reorder the list of javaTypes in accordance with Float and Int

// before
Float("float", float.class, Float.class), 
Int("int", int.class, Integer.class), 
Boolean("bool", Boolean.class, boolean.class), //<----
// after
Float("float", float.class, Float.class), 
Int("int", int.class, Integer.class), 
Boolean("bool", boolean.class, Boolean.class), //<----
capdevon commented 7 months ago

Thanks for your review @stephengold , I agree with you. I noticed this discrepancy in the order of javaTypes while designing my editor. The correct order would have made my code more elegant, instead I will have to handle the problem in my code as usual. Now it is too late to fix past mistakes. I have restored the original code. This PR only formats the class code.