diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-02-19 00:09:03 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-02-19 00:09:03 +0100 |
commit | 46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6 (patch) | |
tree | a653cb0c6a93eba6e0c0fc029fe97f675ead64cd /src/core/lombok/experimental | |
parent | 4401562b8f7e0170b6a510f50c5ed3dc1b0cdad1 (diff) | |
download | lombok-46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6.tar.gz lombok-46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6.tar.bz2 lombok-46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6.zip |
[issue #2039] update docs to warn about a javac peculiarity for named static imports.
Diffstat (limited to 'src/core/lombok/experimental')
-rw-r--r-- | src/core/lombok/experimental/UtilityClass.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lombok/experimental/UtilityClass.java b/src/core/lombok/experimental/UtilityClass.java index 80f3eee9..f8281660 100644 --- a/src/core/lombok/experimental/UtilityClass.java +++ b/src/core/lombok/experimental/UtilityClass.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 The Project Lombok Authors. + * Copyright (C) 2015-2019 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -33,6 +33,8 @@ import java.lang.annotation.Target; * <li>It is marked final.</li> * <li>If any constructors are declared in it, an error is generated. Otherwise, a private no-args constructor is generated; it throws a {@code UnsupportedOperationException}.</li> * <li>All methods, inner classes, and fields in the class are marked static.</li> + * <li><em>WARNING:</em> Do not use non-star static imports to import these members; javac won't be able to figure it out. Use either: + * <code>import static ThisType.*;</code> or don't static-import.</li> * </ul> */ @Target({ElementType.TYPE}) |