File tree Expand file tree Collapse file tree 8 files changed +3
-28
lines changed Expand file tree Collapse file tree 8 files changed +3
-28
lines changed Original file line number Diff line number Diff line change 2727import cc .arduino .CompilerProgressListener ;
2828import cc .arduino .UploaderUtils ;
2929import cc .arduino .packages .Uploader ;
30- import org .apache .commons .codec .digest .DigestUtils ;
3130import processing .app .debug .RunnerException ;
3231import processing .app .forms .PasswordAuthorizationDialog ;
3332import processing .app .helpers .FileUtils ;
Original file line number Diff line number Diff line change 3838import java .io .File ;
3939import java .util .List ;
4040
41- import static processing .app .I18n .tr ;
42-
4341public class GenericNetworkUploader extends Uploader {
4442
4543 private final BoardPort port ;
Original file line number Diff line number Diff line change @@ -207,8 +207,10 @@ private void downloadFile() throws InterruptedException {
207207 file .write (buffer , 0 , read );
208208 setDownloaded (getDownloaded () + read );
209209
210- if (Thread .interrupted ())
210+ if (Thread .interrupted ()) {
211+ file .close ();
211212 throw new InterruptedException ();
213+ }
212214 }
213215
214216 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 {
7070 PROMPT_BROWSE = tr ("Browse" );
7171 }
7272
73- @ Deprecated
74- public static String _(String s ) {
75- return tr (s );
76- }
77-
7873 public static String tr (String s ) {
7974 String res ;
8075 try {
Original file line number Diff line number Diff line change 2828import java .io .IOException ;
2929import java .nio .file .Files ;
3030import java .nio .file .Path ;
31- import java .nio .file .Paths ;
3231import java .util .Arrays ;
3332import java .util .List ;
3433import java .util .stream .Collectors ;
Original file line number Diff line number Diff line change 2222
2323package processing .app .linux ;
2424
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 ;
2925import processing .app .PreferencesData ;
30- import processing .app .debug .TargetPackage ;
3126import processing .app .legacy .PConstants ;
3227
33- import java .io .ByteArrayOutputStream ;
3428import java .io .File ;
35- import java .io .IOException ;
36- import java .util .Map ;
3729
3830
3931/**
Original file line number Diff line number Diff line change 2929import org .apache .commons .exec .Executor ;
3030import org .apache .commons .exec .PumpStreamHandler ;
3131import org .apache .commons .lang3 .StringUtils ;
32- import processing .app .debug .TargetPackage ;
3332import processing .app .legacy .PApplet ;
3433import processing .app .legacy .PConstants ;
3534
4140import java .net .URI ;
4241import java .util .LinkedList ;
4342import java .util .List ;
44- import java .util .Map ;
4543
4644
4745/**
Original file line number Diff line number Diff line change 2424
2525import cc .arduino .os .windows .FolderFinderInWindowsEnvVar ;
2626import 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 ;
3327import processing .app .legacy .PApplet ;
3428import processing .app .legacy .PConstants ;
3529
36- import java .io .ByteArrayOutputStream ;
3730import java .io .File ;
3831import java .io .IOException ;
3932import java .nio .file .Files ;
4033import java .nio .file .Path ;
4134import java .nio .file .Paths ;
4235import java .util .LinkedList ;
4336import java .util .List ;
44- import java .util .Map ;
4537
4638
4739public class Platform extends processing .app .Platform {
You can’t perform that action at this time.
0 commit comments