@@ -116,7 +116,7 @@ public class Base {
116
116
private List <JMenuItem > programmerMenus ;
117
117
118
118
private PdeKeywords pdeKeywords ;
119
- private final List <JMenuItem > recentSketchesMenuItems ;
119
+ private final List <JMenuItem > recentSketchesMenuItems = new LinkedList <>() ;
120
120
121
121
static public void main (String args []) throws Exception {
122
122
System .setProperty ("awt.useSystemAAFontSettings" , "on" );
@@ -228,17 +228,14 @@ static public File absoluteFile(String path) {
228
228
229
229
public Base (String [] args ) throws Exception {
230
230
BaseNoGui .notifier = new GUIUserNotifier (this );
231
- this .recentSketchesMenuItems = new LinkedList <>();
232
231
233
232
CommandlineParser parser = new CommandlineParser (args );
234
233
parser .parseArgumentsPhase1 ();
235
234
236
235
BaseNoGui .checkInstallationFolder ();
237
236
238
- String sketchbookPath = BaseNoGui .getSketchbookPath ();
239
-
240
237
// If no path is set, get the default sketchbook folder for this platform
241
- if (sketchbookPath == null ) {
238
+ if (BaseNoGui . getSketchbookPath () == null ) {
242
239
File defaultFolder = getDefaultSketchbookFolderOrPromptForIt ();
243
240
if (BaseNoGui .getPortableFolder () != null )
244
241
PreferencesData .set ("sketchbook.path" , BaseNoGui .getPortableSketchbookFolder ());
@@ -258,8 +255,8 @@ public Base(String[] args) throws Exception {
258
255
// Setup board-dependent variables.
259
256
onBoardOrPortChange ();
260
257
261
- this . pdeKeywords = new PdeKeywords ();
262
- this . pdeKeywords .reload ();
258
+ pdeKeywords = new PdeKeywords ();
259
+ pdeKeywords .reload ();
263
260
264
261
contributionInstaller = new ContributionInstaller (BaseNoGui .getPlatform (), new GPGDetachedSignatureVerifier ());
265
262
libraryInstaller = new LibraryInstaller (BaseNoGui .getPlatform ());
0 commit comments