From 46b71c810ce3ee52b1e00f63e21aa5c5d3fb5ca6 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 19 Feb 2019 00:09:03 +0100 Subject: [issue #2039] update docs to warn about a javac peculiarity for named static imports. --- src/core/lombok/experimental/UtilityClass.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/lombok') 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; *
  • It is marked final.
  • *
  • If any constructors are declared in it, an error is generated. Otherwise, a private no-args constructor is generated; it throws a {@code UnsupportedOperationException}.
  • *
  • All methods, inner classes, and fields in the class are marked static.
  • + *
  • WARNING: Do not use non-star static imports to import these members; javac won't be able to figure it out. Use either: + * import static ThisType.*; or don't static-import.
  • * */ @Target({ElementType.TYPE}) -- cgit