Logo
Explore Help
Sign In
tiennm99/lombok
Watch 1
Star 0 Fork 0
mirror of https://github.com/tiennm99/lombok.git synced 2026-10-13 00:14:50 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
lombok/test/transform/resource/before/ToStringWithConstantRefInOf.java
T
Reinier Zwitserloot f540335ef9 [Fixes #1656] Lombok would silently do the wrong thing when using references to public static final String fields, instead of actual string literals, there where you can specify strings in lombok annotation parameters, such as @ToString(of = MyClass.CONSTANT_FIELD). We can’t really fix it, but at least now lombok will error when you do that and describe in detail what’s going wrong.
2018-04-17 04:19:37 +02:00

11 lines
233 B
Java
Raw Permalink Blame History

//skip compare contents
import lombok.ToString;
@ToString(of = ToStringWithConstantRefInOf.FIELD_NAME)
public class ToStringWithConstantRefInOf {
static final String FIELD_NAME = "id";
private String id;
private int whatever;
}
Reference in new issue View Git Blame Copy Permalink
Powered by Gitea Version: 28.1.0 Page: 219ms Template: 6ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API