From 9433db4ecdf1a525541581a73161ababee0c352c Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 7 Nov 2011 22:03:31 +0100 Subject: Don't wrap code in documentation --- website/features/Constructor.html | 2 +- website/features/features.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/website/features/Constructor.html b/website/features/Constructor.html index ff32c86b..48c913b4 100644 --- a/website/features/Constructor.html +++ b/website/features/Constructor.html @@ -31,7 +31,7 @@ those parameters.

Each of these annotations allows an alternate form, where the generated constructor is always private, and an additional static factory method that wraps around the - private constructor is generated. This mode is enabled by supplying the staticName value for the annotation, like so: @RequiredArgsConstructor(staticName = "of"). + private constructor is generated. This mode is enabled by supplying the staticName value for the annotation, like so: @RequiredArgsConstructor(staticName="of"). Such a static factory method will infer generics, unlike a normal constructor. This means your API users get write MapEntry.of("foo", 5) instead of the much longer new MapEntry<String, Integer>("foo", 5).

diff --git a/website/features/features.css b/website/features/features.css index a7e8e318..0d5c8102 100644 --- a/website/features/features.css +++ b/website/features/features.css @@ -75,6 +75,7 @@ dd { .overview code { font-size: 1.1em; + white-space: nowrap; } .smallprint { @@ -84,6 +85,7 @@ dd { .smallprint code { font-size: 1em; + white-space: nowrap; } .snippets { -- cgit