Update android.html

added info about @java.beans.ConstructorProperties
This commit is contained in:
dodgex committed 2014-05-02 10:53:21 +02:00
1 parent 1996b7e58f
commit 9417215f27
1 file changed
+8
+8
View File
@@ -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>&gt;= 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>