Skip to content

Commit cdfd191

Browse files
author
jantje
committed
make fields static (that should have been static)
1 parent fde6ba1 commit cdfd191

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

io.sloeber.core/src/io/sloeber/core/api/BoardDescription.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ public class BoardDescription {
5252
private static final String ENV_KEY_PLATFORM_PATH = RUNTIME + DOT + PLATFORM + DOT + PATH;
5353

5454
// stuff to store last used board
55-
private final String KEY_SLOEBER_PROGRAMMER = "PROGRAMMER.NAME"; //$NON-NLS-1$
56-
private final String KEY_SLOEBER_BOARD_TXT = "BOARD.TXT"; //$NON-NLS-1$
57-
private final String KEY_SLOEBER_BOARD_ID = "BOARD.ID"; //$NON-NLS-1$
58-
private final String KEY_SLOEBER_UPLOAD_PORT = "UPLOAD.PORT"; //$NON-NLS-1$
59-
private final String KEY_SLOEBER_MENU_SELECTION = "BOARD.MENU"; //$NON-NLS-1$
55+
private static final String KEY_SLOEBER_PROGRAMMER = "PROGRAMMER.NAME"; //$NON-NLS-1$
56+
private static final String KEY_SLOEBER_BOARD_TXT = "BOARD.TXT"; //$NON-NLS-1$
57+
private static final String KEY_SLOEBER_BOARD_ID = "BOARD.ID"; //$NON-NLS-1$
58+
private static final String KEY_SLOEBER_UPLOAD_PORT = "UPLOAD.PORT"; //$NON-NLS-1$
59+
private static final String KEY_SLOEBER_MENU_SELECTION = "BOARD.MENU"; //$NON-NLS-1$
6060
private static final IEclipsePreferences myStorageNode = InstanceScope.INSTANCE.getNode(NODE_ARDUINO);
6161

6262
/*
@@ -626,8 +626,8 @@ public IPath getArduinoPlatformPath() {
626626
return null;
627627
}
628628
ArduinoPlatformVersion platformVersion = platform.getNewestInstalled();
629-
if(platformVersion==null) {
630-
return null;
629+
if (platformVersion == null) {
630+
return null;
631631
}
632632
return platformVersion.getInstallPath();
633633
}

io.sloeber.core/src/io/sloeber/core/api/OtherDescription.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import io.sloeber.core.txt.TxtFile;
1111

1212
public class OtherDescription {
13-
private final String KEY_SLOEBER_IS_VERSION_CONTROLLED = "IS_VERSION_CONTROLLED"; //$NON-NLS-1$
13+
private static final String KEY_SLOEBER_IS_VERSION_CONTROLLED = "IS_VERSION_CONTROLLED"; //$NON-NLS-1$
1414

1515
private boolean myIsVersionControlled = false;
1616

0 commit comments

Comments
 (0)