This commit is contained in:
Stephane Nicoll
2020-01-01 08:41:11 +01:00
parent cdafc45e14
commit 945b118b0c
9 changed files with 21 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -64,7 +64,7 @@ public class BuildSettings {
*
* @param <B> builder type
*/
public abstract static class Builder<B extends Builder> {
public abstract static class Builder<B extends Builder<B>> {
private String group;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -69,7 +69,7 @@ public class BulletedSection<T> implements Section {
* @param item the item to add
* @return this for method chaining
*/
public BulletedSection addItem(T item) {
public BulletedSection<T> addItem(T item) {
this.items.add(item);
return this;
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -133,12 +133,12 @@ public final class KotlinPropertyDeclaration implements Annotatable {
protected abstract T self();
@SuppressWarnings("unchecked")
public AccessorBuilder getter() {
public AccessorBuilder<T> getter() {
return new AccessorBuilder<>((T) this, (created) -> this.getter = created);
}
@SuppressWarnings("unchecked")
public AccessorBuilder setter() {
public AccessorBuilder<T> setter() {
return new AccessorBuilder<>((T) this, (created) -> this.setter = created);
}