A space between @ and annotation breaks syntax
Closed this issue · 1 comments
felixhao28 commented
Description
Putting a space between "@" and annotation class name breaks the Java field declaration.
package cn . snif5 . medical . orders . transfer ;
import com . fasterxml . jackson . annotation . JsonProperty ;
public class DetrainOnlayuiSimpleInfoVo extends DetrainSimpleInfoVo {
public DetrainOnlayuiSimpleInfoVo ( ) {
}
public DetrainOnlayuiSimpleInfoVo ( DetrainSimpleInfoVo simpleInfoVo ) {
super . setId ( simpleInfoVo . getId ( ) ) ;
super . setOrderName ( simpleInfoVo . getOrderName ( ) ) ;
super . setBoxTotalNum ( simpleInfoVo . getBoxTotalNum ( ) ) ;
super . setBatchNo ( simpleInfoVo . getBatchNo ( ) ) ;
}
@ JsonProperty ("layChecked")
private boolean layChecked ;
public boolean isLayChecked ( ) {
return layChecked ;
}
public void setLayChecked ( boolean layChecked ) {
this .
Expected:
The fix is simple: just put pattern (\s)* after @ on this line:
language-java/grammars/java.cson
Line 132 in f6d349a
sadikovi commented
Yes, I will have a look. Thanks.