From 57b66fd5767354ec611a2e2d96d8cf3968513118 Mon Sep 17 00:00:00 2001
From: Daniel
Date: Wed, 21 Mar 2018 21:54:07 +0200
Subject: fixed ExtensionMethod example to return T (generic type) , seem to
remove or forgot for some reason...
---
website/templates/features/experimental/ExtensionMethod.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'website/templates/features/experimental')
diff --git a/website/templates/features/experimental/ExtensionMethod.html b/website/templates/features/experimental/ExtensionMethod.html
index ca63bb2e..f1d8b084 100644
--- a/website/templates/features/experimental/ExtensionMethod.html
+++ b/website/templates/features/experimental/ExtensionMethod.html
@@ -36,7 +36,7 @@
Lombok does not (currently) have any runtime dependencies which means lombok does not (currently) ship with any useful extension methods so you'll have to make your own. However, here's one that might spark your imagination:
public class ObjectExtensions {
- public static <T> or(T object, T ifNull) {
+ public static <T> T or(T object, T ifNull) {
return object != null ? object : ifNull;
}
}
--
cgit
From 113d1eb86190d73ab6d99225555c2ba2b07b9dd0 Mon Sep 17 00:00:00 2001
From: Roel Spilker
Date: Tue, 27 Mar 2018 22:08:52 +0200
Subject: Fixes #1608: give pages a title
---
website/resources/js/supporters.js | 2 ++
website/templates/_download-edge.html | 2 +-
website/templates/_scaffold.html | 4 ++--
website/templates/all-versions.html | 2 +-
website/templates/changelog.html | 2 +-
website/templates/contributing.html | 2 +-
website/templates/credits.html | 2 +-
website/templates/disable-checked-exceptions.html | 2 +-
website/templates/download-edge.html | 2 +-
website/templates/download.html | 2 +-
website/templates/features/_features.html | 2 +-
website/templates/features/experimental/index.html | 2 +-
website/templates/features/index.html | 2 +-
website/templates/order-license-info.html | 2 +-
website/templates/order-license.html | 2 +-
website/templates/setup/_setup.html | 2 +-
website/templates/supporters.html | 2 +-
17 files changed, 19 insertions(+), 17 deletions(-)
(limited to 'website/templates/features/experimental')
diff --git a/website/resources/js/supporters.js b/website/resources/js/supporters.js
index 11f77640..07319226 100644
--- a/website/resources/js/supporters.js
+++ b/website/resources/js/supporters.js
@@ -153,6 +153,8 @@
shuffle(list);
var len = list.length;
+ if (!len) return;
+
var pos = 0;
var c = [], cd = [];
for (var i = 0; i < supPerBar; i++) {
diff --git a/website/templates/_download-edge.html b/website/templates/_download-edge.html
index b5e8af0b..e7eb856c 100644
--- a/website/templates/_download-edge.html
+++ b/website/templates/_download-edge.html
@@ -1,5 +1,5 @@
<#import "/_scaffold.html" as main>
-<@main.scaffold>
+<@main.scaffold title="snapshot">