mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
Polish
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user