Skip to content

Commit bef09e4

Browse files
author
Federico Fissore
committed
MacOSX: Platform cleanup
1 parent ccd7fdc commit bef09e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arduino-core/src/processing/app/macosx/Platform.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ public void openFolder(File file) throws Exception {
127127
// Some of these are supposedly constants in com.apple.eio.FileManager,
128128
// however they don't seem to link properly from Eclipse.
129129

130-
static final int kDocumentsFolderType =
130+
private static final int kDocumentsFolderType =
131131
('d' << 24) | ('o' << 16) | ('c' << 8) | 's';
132132
//static final int kPreferencesFolderType =
133133
// ('p' << 24) | ('r' << 16) | ('e' << 8) | 'f';
134-
static final int kDomainLibraryFolderType =
134+
private static final int kDomainLibraryFolderType =
135135
('d' << 24) | ('l' << 16) | ('i' << 8) | 'b';
136-
static final short kUserDomain = -32763;
136+
private static final short kUserDomain = -32763;
137137

138138

139139
// apple java extensions documentation
@@ -150,12 +150,12 @@ public void openFolder(File file) throws Exception {
150150
// /Versions/Current/Frameworks/CarbonCore.framework/Headers/
151151

152152

153-
protected String getLibraryFolder() throws FileNotFoundException {
153+
private String getLibraryFolder() throws FileNotFoundException {
154154
return FileManager.findFolder(kUserDomain, kDomainLibraryFolderType);
155155
}
156156

157157

158-
protected String getDocumentsFolder() throws FileNotFoundException {
158+
private String getDocumentsFolder() throws FileNotFoundException {
159159
return FileManager.findFolder(kUserDomain, kDocumentsFolderType);
160160
}
161161

@@ -168,7 +168,7 @@ public String getName() {
168168
public Map<String, Object> resolveDeviceAttachedTo(String serial, Map<String, TargetPackage> packages, String devicesListOutput) {
169169
assert packages != null;
170170
if (devicesListOutput == null) {
171-
return super.resolveDeviceAttachedTo(serial, packages, devicesListOutput);
171+
return super.resolveDeviceAttachedTo(serial, packages, null);
172172
}
173173

174174
try {

0 commit comments

Comments
 (0)