mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-12 16:15:29 +00:00
[PR #3807] Suggestions applied: Remove hopeful note that didn't pan out, removed JDK7 examples (too old to bother listing at this point).
This commit is contained in:
2 files changed
+3
-8
No files matched your search
@@ -11,8 +11,6 @@
|
||||
<ul>
|
||||
<li>
|
||||
Ugly syntax. The syntax of this feature is not optimal, but it is the least convoluted syntax that could possibly work (for now!)
|
||||
</li><li>
|
||||
Possibly java 9 will offer (much) better ways of supporting this feature.
|
||||
</li><li>
|
||||
Uncertainty: Future versions of javac may break this feature, and we may not be able to restore it.
|
||||
</li>
|
||||
|
||||
@@ -7,12 +7,9 @@ import javax.persistence.Id;
|
||||
import javax.persistence.Column;
|
||||
import javax.validation.constraints.Max;
|
||||
|
||||
// @AllArgsConstructor(onConstructor=@__(@Inject)) //JDK7
|
||||
@AllArgsConstructor(onConstructor_=@Inject) //JDK8
|
||||
@AllArgsConstructor(onConstructor_=@Inject)
|
||||
public class OnXExample {
|
||||
// @Getter(onMethod=@__({@Id, @Column(name="unique-id")})) //JDK7
|
||||
// @Setter(onParam=@__(@Max(10000))) //JDK7
|
||||
@Getter(onMethod_={@Id, @Column(name="unique-id")}) //JDK8
|
||||
@Setter(onParam_=@Max(10000)) //JDK8
|
||||
@Getter(onMethod_={@Id, @Column(name="unique-id")})
|
||||
@Setter(onParam_=@Max(10000))
|
||||
private long unid;
|
||||
}
|
||||
Reference in new issue
Block a user