Skip to content

Commit d33fc4e

Browse files
committed
Fixed some trivial warnings
1 parent f20d512 commit d33fc4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/processing/app/Editor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public boolean test(SketchController controller) {
235235
private UploadHandler uploadUsingProgrammerHandler;
236236
private Runnable timeoutUploadHandler;
237237

238-
private Map<String, Tool> internalToolCache = new HashMap<String, Tool>();
238+
private Map<String, Tool> internalToolCache = new HashMap<>();
239239

240240
final ClangFormat formatter;
241241

@@ -1835,7 +1835,7 @@ public void updateTitle() {
18351835
SketchFile current = getCurrentTab().getSketchFile();
18361836
String customFormat = PreferencesData.get("editor.custom_title_format");
18371837
if (customFormat != null && !customFormat.trim().isEmpty()) {
1838-
Map<String, String> titleMap = new HashMap<String, String>();
1838+
Map<String, String> titleMap = new HashMap<>();
18391839
titleMap.put("file", current.getFileName());
18401840
String path = sketch.getFolder().getAbsolutePath();
18411841
titleMap.put("folder", path);

0 commit comments

Comments
 (0)