Skip to content

Commit afd0edb

Browse files
committed
Run spotlessApply
1 parent 7481a9b commit afd0edb

File tree

14 files changed

+76
-78
lines changed

14 files changed

+76
-78
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ lib('yaml.JacksonYamlStep') +'{{yes}} | {{yes}}
149149
| [`npm.TsFmtFormatterStep`](lib/src/main/java/com/diffplug/spotless/npm/TsFmtFormatterStep.java) | :+1: | :+1: | :white_large_square: | :white_large_square: |
150150
| [`pom.SortPomStep`](lib/src/main/java/com/diffplug/spotless/pom/SortPomStep.java) | :white_large_square: | :+1: | :white_large_square: | :white_large_square: |
151151
| [`python.BlackStep`](lib/src/main/java/com/diffplug/spotless/python/BlackStep.java) | :+1: | :white_large_square: | :white_large_square: | :white_large_square: |
152-
| [`rome.RomeStep`](lib/src/main/java/com/diffplug/spotless/rome/RomeStep.java) | :+1: | :+1: | :white_large_square: | :white_large_square: |
152+
| [`rome.RomeStep`](lib/src/main/java/com/diffplug/spotless/rome/RomeStep.java) | :+1: | :+1: | :white_large_square: | :white_large_square: |
153153
| [`scala.ScalaFmtStep`](lib/src/main/java/com/diffplug/spotless/scala/ScalaFmtStep.java) | :+1: | :+1: | :+1: | :white_large_square: |
154154
| [`sql.DBeaverSQLFormatterStep`](lib/src/main/java/com/diffplug/spotless/sql/DBeaverSQLFormatterStep.java) | :+1: | :+1: | :+1: | :white_large_square: |
155155
| [`wtp.EclipseWtpFormatterStep`](lib-extra/src/main/java/com/diffplug/spotless/extra/wtp/EclipseWtpFormatterStep.java) | :+1: | :+1: | :white_large_square: | :white_large_square: |

lib/src/main/java/com/diffplug/spotless/rome/Architecture.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2022 DiffPlug
2+
* Copyright 2016-2023 DiffPlug
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.
@@ -26,7 +26,7 @@ enum Architecture {
2626

2727
/**
2828
* Attempts to guess the architecture of the environment running the JVM.
29-
*
29+
*
3030
* @return The best guess for the architecture.
3131
*/
3232
public static Architecture guess() {

lib/src/main/java/com/diffplug/spotless/rome/OS.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2022 DiffPlug
2+
* Copyright 2016-2023 DiffPlug
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.
@@ -30,7 +30,7 @@ enum OS {
3030

3131
/**
3232
* Attempts to guess the OS of the environment running the JVM.
33-
*
33+
*
3434
* @return The best guess for the architecture.
3535
* @throws IllegalStateException When the OS is either unsupported or no
3636
* information about the OS could be retrieved.
@@ -53,4 +53,4 @@ public static OS guess() {
5353
return OS.LINUX;
5454
}
5555
}
56-
}
56+
}

lib/src/main/java/com/diffplug/spotless/rome/Platform.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2022 DiffPlug
2+
* Copyright 2016-2023 DiffPlug
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.
@@ -23,7 +23,7 @@ class Platform {
2323
/**
2424
* Attempts to guess the platform of the hosting environment running the JVM
2525
* machine.
26-
*
26+
*
2727
* @return The best guess for the current OS and architecture.
2828
* @throws IllegalStateException When no OS information is available, or when
2929
* the OS or architecture is unsupported.
@@ -40,7 +40,7 @@ public static Platform guess() {
4040

4141
/**
4242
* Creates a new Platform descriptor for the given OS and architecture.
43-
*
43+
*
4444
* @param os Operating system of the platform.
4545
* @param architecture Architecture of the platform.
4646
*/

lib/src/main/java/com/diffplug/spotless/rome/RomeExecutableDownloader.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2022 DiffPlug
2+
* Copyright 2016-2023 DiffPlug
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.
@@ -68,7 +68,7 @@ final class RomeExecutableDownloader {
6868
* {@link OpenOption Open options} for reading an existing file without write
6969
* access.
7070
*/
71-
private static final OpenOption[] READ_OPTIONS = { StandardOpenOption.READ };
71+
private static final OpenOption[] READ_OPTIONS = {StandardOpenOption.READ};
7272

7373
/**
7474
* The pattern for {@link String#format(String, Object...) String.format()} for
@@ -81,15 +81,15 @@ final class RomeExecutableDownloader {
8181
* {@link OpenOption Open options} for creating a new file, overwriting the
8282
* existing file if present.
8383
*/
84-
private static final OpenOption[] WRITE_OPTIONS = { StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING,
85-
StandardOpenOption.WRITE };
84+
private static final OpenOption[] WRITE_OPTIONS = {StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING,
85+
StandardOpenOption.WRITE};
8686

8787
private Path downloadDir;
8888

8989
/**
9090
* Creates a new downloader for the Rome executable. The executable files are
9191
* stored in the given download directory.
92-
*
92+
*
9393
* @param downloadDir Directory where
9494
*/
9595
public RomeExecutableDownloader(Path downloadDir) {
@@ -100,7 +100,7 @@ public RomeExecutableDownloader(Path downloadDir) {
100100
* Downloads the Rome executable for the current platform from the network to
101101
* the download directory. When the executable exists already, it is
102102
* overwritten.
103-
*
103+
*
104104
* @param version Desired Rome version.
105105
* @return The path to the Rome executable.
106106
* @throws IOException When the executable cannot be downloaded from
@@ -140,7 +140,7 @@ public Path download(String version) throws IOException, InterruptedException {
140140
* directory, an attempt is made to download the Rome executable from the
141141
* network. When the executable exists already, no attempt to download it again
142142
* is made.
143-
*
143+
*
144144
* @param version Desired Rome version.
145145
* @return The path to the Rome executable.
146146
* @throws IOException When the executable cannot be downloaded from
@@ -168,7 +168,7 @@ public Path ensureDownloaded(String version) throws IOException, InterruptedExce
168168
/**
169169
* Attempts to find the Rome executable for the current platform in the download
170170
* directory. No attempt is made to download the executable from the network.
171-
*
171+
*
172172
* @param version Desired Rome version.
173173
* @return The path to the Rome executable.
174174
* @throws IOException When the executable does not exists in the
@@ -188,7 +188,7 @@ public Optional<Path> findDownloaded(String version) throws IOException {
188188
/**
189189
* Checks whether the given file exists and matches the checksum. The checksum
190190
* must be contained in a file next to the file to check.
191-
*
191+
*
192192
* @param filePath File to check.
193193
* @return <code>true</code> if the file exists and matches the checksum,
194194
* <code>false</code> otherwise.
@@ -223,7 +223,7 @@ private boolean checkFileWithChecksum(Path filePath) {
223223

224224
/**
225225
* Computes the checksum of the given file.
226-
*
226+
*
227227
* @param file File to process.
228228
* @param algorithm The checksum algorithm to use.
229229
* @return The MD5 checksum of the given file.
@@ -247,7 +247,7 @@ private String computeChecksum(Path file, String algorithm) throws IOException {
247247
/**
248248
* Finds the code name for the given operating system used by the Rome
249249
* executable download URL.
250-
*
250+
*
251251
* @param os Desired operating system.
252252
* @return Code name for the Rome download URL.
253253
* @throws IOException When the given OS is not supported by Rome.
@@ -265,7 +265,7 @@ private String getArchitectureCodeName(Architecture architecture) throws IOExcep
265265

266266
/**
267267
* Derives a path for the file which contains the checksum of the given file.
268-
*
268+
*
269269
* @param file A file for which to derive the checksum file path.
270270
* @return The path with the checksum for the given file.
271271
*/
@@ -275,7 +275,7 @@ private Path getChecksumPath(Path file) {
275275

276276
/**
277277
* Finds the URL from which the Rome executable can be downloaded.
278-
*
278+
*
279279
* @param version Desired Rome version.
280280
* @param platform Desired platform.
281281
* @return The URL for the Rome executable.
@@ -292,7 +292,7 @@ private String getDownloadUrl(String version, Platform platform) throws IOExcept
292292
/**
293293
* Finds the file extension of the Rome download URL for the given operating
294294
* system.
295-
*
295+
*
296296
* @param os Desired operating system.
297297
* @return Extension for the Rome download URL.
298298
* @throws IOException When the given OS is not supported by Rome.
@@ -313,7 +313,7 @@ private String getDownloadUrlExtension(OS os) throws IOException {
313313
/**
314314
* Finds the path on the file system for the Rome executable with a given
315315
* version and platform.
316-
*
316+
*
317317
* @param version Desired Rome version.
318318
* @param platform Desired platform.
319319
* @return The path for the Rome executable.
@@ -328,7 +328,7 @@ private Path getExecutablePath(String version, Platform platform) {
328328
/**
329329
* Finds the code name for the given operating system used by the Rome
330330
* executable download URL.
331-
*
331+
*
332332
* @param os Desired operating system.
333333
* @return Code name for the Rome download URL.
334334
* @throws IOException When the given OS is not supported by Rome.
@@ -348,7 +348,7 @@ private String getOsCodeName(OS os) throws IOException {
348348

349349
/**
350350
* Reads a plain text file with the given encoding into a string.
351-
*
351+
*
352352
* @param file File to read.
353353
* @param charset Encoding to use.
354354
* @return The contents of the file as a string.
@@ -363,7 +363,7 @@ private String readTextFile(Path file, Charset charset) throws IOException {
363363
/**
364364
* Computes the checksum of the given file and writes it to the target checksum
365365
* file, using the {@code ISO_8859_1} encoding.
366-
*
366+
*
367367
* @param file
368368
* @param checksumPath
369369
* @throws IOException

0 commit comments

Comments
 (0)