mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-20 02:17:52 +00:00
Update android.html
added info about @java.beans.ConstructorProperties
This commit is contained in:
1 parent
1996b7e58f
commit
9417215f27
1 file changed
+8
@@ -92,6 +92,14 @@ java -jar lombok.jar publicApi</pre>
|
||||
</li>
|
||||
<li>Now you should be able to compile your App using Lombok Annotations</li>
|
||||
</ul>
|
||||
<div>
|
||||
<b>NOTE</b>: Android does not have the <code>@java.beans.ConstructorProperties</code> therefor you have to use the
|
||||
<code>suppressConstructorProperties</code> property when using <a href="http://projectlombok.org/features/Constructor.html">@XArgsConstructor Annotations</a>.
|
||||
With Lombok <code>>= 1.12.7</code> you can use the <code>lombok.config</code> file to enable this property projectwide by adding:
|
||||
<br/><br/>
|
||||
<pre>lombok.anyConstructor.suppressConstructorProperties = true</pre>
|
||||
<br/>
|
||||
</div>
|
||||
<h4>Android Studio</h4>
|
||||
While the Gradle build already works, Android Studio is not able to see the generated methods. To fix this, you have to install the <a href="http://plugins.jetbrains.com/plugin/6317">Lombok Plugin</a> for IntelliJ IDEA/Android Studio.
|
||||
<ul>
|
||||
|
||||
Reference in new issue
Block a user