Skip to content

Commit 687a9c3

Browse files
committed
Make some methods static
1 parent b2f4c18 commit 687a9c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/scripts/gradle/gradle-init-scripts/configure-gradle-enterprise.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static boolean isNotAtLeast(String versionUnderTest, String referenceVersion) {
217217
GradleVersion.version(versionUnderTest) < GradleVersion.version(referenceVersion)
218218
}
219219

220-
void addCustomValueAndSearchLink(buildScan, String label, String value) {
220+
static void addCustomValueAndSearchLink(buildScan, String label, String value) {
221221
buildScan.value(label, value)
222222
if (buildScan.metaClass.respondsTo(buildScan, 'getServer')) { // required for Gradle 4.x / build-scan-plugin 1.16
223223
String server = buildScan.server
@@ -227,11 +227,11 @@ void addCustomValueAndSearchLink(buildScan, String label, String value) {
227227
}
228228
}
229229

230-
String appendIfMissing(String str, String suffix) {
230+
static String appendIfMissing(String str, String suffix) {
231231
return str.endsWith(suffix) ? str : str + suffix
232232
}
233233

234-
String urlEncode(String str) {
234+
static String urlEncode(String str) {
235235
return URLEncoder.encode(str, StandardCharsets.UTF_8.name())
236236
}
237237

0 commit comments

Comments
 (0)