Skip to content

Commit ec10e53

Browse files
committed
Merge pull request #724 from izeye
* gh-724: Polish "Remove redundant public modifiers for Groovy" Remove redundant public modifiers for Groovy Closes gh-724
2 parents 8338a2f + ae8e82f commit ec10e53

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

buildSrc/src/main/groovy/org/springframework/restdocs/build/matrix/MatrixTestExtension.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import org.gradle.api.Task
2121
import org.gradle.api.plugins.JavaBasePlugin
2222
import org.gradle.api.tasks.testing.Test
2323

24-
public class MatrixTestExtension {
24+
class MatrixTestExtension {
2525

2626
private List<Entry> entries = []
2727

buildSrc/src/main/groovy/org/springframework/restdocs/build/matrix/MatrixTestPlugin.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2018 the original author or authors.
2+
* Copyright 2014-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,9 +19,9 @@ package org.springframework.restdocs.build.matrix
1919
import org.gradle.api.Plugin
2020
import org.gradle.api.Project
2121

22-
public class MatrixTestPlugin implements Plugin<Project> {
22+
class MatrixTestPlugin implements Plugin<Project> {
2323

24-
public void apply(Project project) {
24+
void apply(Project project) {
2525
project.extensions.create('matrixTest', MatrixTestExtension, project)
2626
}
2727

buildSrc/src/main/groovy/org/springframework/restdocs/build/samples/SampleBuildConfigurer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import org.gradle.api.tasks.Exec
2323
import org.gradle.api.tasks.Copy
2424
import org.gradle.api.tasks.GradleBuild
2525

26-
public class SampleBuildConfigurer {
26+
class SampleBuildConfigurer {
2727

2828
private final String name
2929

buildSrc/src/main/groovy/org/springframework/restdocs/build/samples/SamplesExtension.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2018 the original author or authors.
2+
* Copyright 2014-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ package org.springframework.restdocs.build.samples
1919
import org.gradle.api.Project
2020
import org.gradle.api.Task
2121

22-
public class SamplesExtension {
22+
class SamplesExtension {
2323

2424
Project Project
2525

buildSrc/src/main/groovy/org/springframework/restdocs/build/samples/SamplesPlugin.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2018 the original author or authors.
2+
* Copyright 2014-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,9 +19,9 @@ package org.springframework.restdocs.build.samples
1919
import org.gradle.api.Plugin
2020
import org.gradle.api.Project
2121

22-
public class SamplesPlugin implements Plugin<Project> {
22+
class SamplesPlugin implements Plugin<Project> {
2323

24-
public void apply(Project project) {
24+
void apply(Project project) {
2525
def buildSamplesTask = project.tasks.create('buildSamples')
2626
buildSamplesTask.description = 'Builds the configured samples'
2727
buildSamplesTask.group = 'Build'

0 commit comments

Comments
 (0)