mapstruct / mapstruct-idea

An IntelliJ IDEA plugin for working with MapStruct
Other
141 stars 38 forks source link

allow whitespaces before and after java expression #164

Closed hduelme closed 10 months ago

hduelme commented 11 months ago

mapstruct allows whitespaces before and after the java( ) block. Currently the plugin does not support this. I changed the JavaExpressionInjector to allow whitespaces before and after the java( ) block. In addition I added an inspection to check if there are unnecessary whitespaces. If one or more is found before or after the java( ) block, I added two quick fixes to remove allwhitespaces before or after the java( ) block.

hduelme commented 10 months ago

@thunderhook thanks for the feedback. I change the names like you suggested. In addition the properties file is now used to provide the warning message instead of defining it directly inside the java code.