Skip to content

Commit 34073d7

Browse files
author
Mattia Bertorello
committed
Fix linter problems
1 parent 4da41f7 commit 34073d7

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Diff for: arduino-core/src/cc/arduino/utils/network/FileDownloaderCache.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ public class FileDownloaderCache {
117117
}
118118
}
119119

120-
static Optional<FileCached> getFileCached(final URL remoteURL)
120+
public static Optional<FileCached> getFileCached(final URL remoteURL)
121121
throws URISyntaxException, NoSuchMethodException, ScriptException,
122122
IOException {
123123
return getFileCached(remoteURL, true);
124124
}
125125

126-
static Optional<FileCached> getFileCached(final URL remoteURL, boolean enableCache)
126+
public static Optional<FileCached> getFileCached(final URL remoteURL, boolean enableCache)
127127
throws URISyntaxException, NoSuchMethodException, ScriptException,
128128
IOException {
129129
// Return always and empty file if the cache is not enable
@@ -313,7 +313,7 @@ Optional<File> getFileFromCache() {
313313

314314
}
315315

316-
synchronized void updateCacheFile(File fileToCache) throws Exception {
316+
public synchronized void updateCacheFile(File fileToCache) throws Exception {
317317
Path cacheFilePath = Paths.get(localPath);
318318

319319
// If the cache directory does not exist create it
@@ -343,7 +343,7 @@ synchronized void updateCacheFile(File fileToCache) throws Exception {
343343

344344
}
345345

346-
synchronized void invalidateCache() throws IOException {
346+
public synchronized void invalidateCache() throws IOException {
347347
cachedFiles.remove(remoteURL);
348348
Files.deleteIfExists(Paths.get(localPath));
349349
}
@@ -356,7 +356,7 @@ private String calculateMD5() throws IOException, NoSuchAlgorithmException {
356356
}
357357

358358
@JsonIgnore
359-
boolean md5Check() {
359+
public boolean md5Check() {
360360
try {
361361
return !Objects.isNull(getMD5()) && Objects.equals(calculateMD5(), getMD5());
362362
} catch (Exception e) {
@@ -366,7 +366,7 @@ boolean md5Check() {
366366
}
367367

368368
@JsonIgnore
369-
LocalDateTime getExpiresTime() {
369+
public LocalDateTime getExpiresTime() {
370370
final int maxAge;
371371
if (cacheControl != null) {
372372
maxAge = cacheControl.getMaxAge();

Diff for: arduino-core/src/processing/app/Platform.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,9 @@ public synchronized Map<String, Object> resolveDeviceByVendorIdProductId(String
257257
}
258258

259259
public static class BoardCloudAPIid {
260-
public BoardCloudAPIid() {
261-
}
262260

263-
private String name;
264261
private String fqbn;
262+
private String name;
265263
private String architecture;
266264
private String id;
267265

0 commit comments

Comments
 (0)