File tree 8 files changed +3
-28
lines changed
8 files changed +3
-28
lines changed Original file line number Diff line number Diff line change 27
27
import cc .arduino .CompilerProgressListener ;
28
28
import cc .arduino .UploaderUtils ;
29
29
import cc .arduino .packages .Uploader ;
30
- import org .apache .commons .codec .digest .DigestUtils ;
31
30
import processing .app .debug .RunnerException ;
32
31
import processing .app .forms .PasswordAuthorizationDialog ;
33
32
import processing .app .helpers .FileUtils ;
Original file line number Diff line number Diff line change 38
38
import java .io .File ;
39
39
import java .util .List ;
40
40
41
- import static processing .app .I18n .tr ;
42
-
43
41
public class GenericNetworkUploader extends Uploader {
44
42
45
43
private final BoardPort port ;
Original file line number Diff line number Diff line change @@ -207,8 +207,10 @@ private void downloadFile() throws InterruptedException {
207
207
file .write (buffer , 0 , read );
208
208
setDownloaded (getDownloaded () + read );
209
209
210
- if (Thread .interrupted ())
210
+ if (Thread .interrupted ()) {
211
+ file .close ();
211
212
throw new InterruptedException ();
213
+ }
212
214
}
213
215
214
216
if (getDownloadSize () != null ) {
Original file line number Diff line number Diff line change @@ -70,11 +70,6 @@ static protected void init(String language) throws MissingResourceException {
70
70
PROMPT_BROWSE = tr ("Browse" );
71
71
}
72
72
73
- @ Deprecated
74
- public static String _(String s ) {
75
- return tr (s );
76
- }
77
-
78
73
public static String tr (String s ) {
79
74
String res ;
80
75
try {
Original file line number Diff line number Diff line change 28
28
import java .io .IOException ;
29
29
import java .nio .file .Files ;
30
30
import java .nio .file .Path ;
31
- import java .nio .file .Paths ;
32
31
import java .util .Arrays ;
33
32
import java .util .List ;
34
33
import java .util .stream .Collectors ;
Original file line number Diff line number Diff line change 22
22
23
23
package processing .app .linux ;
24
24
25
- import org .apache .commons .exec .CommandLine ;
26
- import org .apache .commons .exec .DefaultExecutor ;
27
- import org .apache .commons .exec .Executor ;
28
- import org .apache .commons .exec .PumpStreamHandler ;
29
25
import processing .app .PreferencesData ;
30
- import processing .app .debug .TargetPackage ;
31
26
import processing .app .legacy .PConstants ;
32
27
33
- import java .io .ByteArrayOutputStream ;
34
28
import java .io .File ;
35
- import java .io .IOException ;
36
- import java .util .Map ;
37
29
38
30
39
31
/**
Original file line number Diff line number Diff line change 29
29
import org .apache .commons .exec .Executor ;
30
30
import org .apache .commons .exec .PumpStreamHandler ;
31
31
import org .apache .commons .lang3 .StringUtils ;
32
- import processing .app .debug .TargetPackage ;
33
32
import processing .app .legacy .PApplet ;
34
33
import processing .app .legacy .PConstants ;
35
34
41
40
import java .net .URI ;
42
41
import java .util .LinkedList ;
43
42
import java .util .List ;
44
- import java .util .Map ;
45
43
46
44
47
45
/**
Original file line number Diff line number Diff line change 24
24
25
25
import cc .arduino .os .windows .FolderFinderInWindowsEnvVar ;
26
26
import cc .arduino .os .windows .FolderFinderInWindowsRegistry ;
27
- import org .apache .commons .exec .CommandLine ;
28
- import org .apache .commons .exec .DefaultExecutor ;
29
- import org .apache .commons .exec .Executor ;
30
- import org .apache .commons .exec .PumpStreamHandler ;
31
- import processing .app .BaseNoGui ;
32
- import processing .app .debug .TargetPackage ;
33
27
import processing .app .legacy .PApplet ;
34
28
import processing .app .legacy .PConstants ;
35
29
36
- import java .io .ByteArrayOutputStream ;
37
30
import java .io .File ;
38
31
import java .io .IOException ;
39
32
import java .nio .file .Files ;
40
33
import java .nio .file .Path ;
41
34
import java .nio .file .Paths ;
42
35
import java .util .LinkedList ;
43
36
import java .util .List ;
44
- import java .util .Map ;
45
37
46
38
47
39
public class Platform extends processing .app .Platform {
You can’t perform that action at this time.
0 commit comments