Skip to content

Commit 680b666

Browse files
author
jantje
committed
Fixing lot of warnings and info's
mostly turning warnings off
1 parent 32bdfcd commit 680b666

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+122
-114
lines changed

io.sloeber.core/src/cc/arduino/packages/ssh/NoInteractionUserInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
import com.jcraft.jsch.UserInfo;
3333

34-
@SuppressWarnings({ "unqualified-field-access" })
34+
//@SuppressWarnings({ "unqualified-field-access" })
3535
public class NoInteractionUserInfo implements UserInfo {
3636

3737
private final String password;

io.sloeber.core/src/cc/arduino/packages/ssh/SCP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import com.jcraft.jsch.ChannelExec;
4040
import com.jcraft.jsch.Session;
4141

42-
@SuppressWarnings({ "unused", "nls", "unqualified-field-access" })
42+
@SuppressWarnings({ "unused", "nls" })
4343
public class SCP extends SSH {
4444

4545
private Channel channel;

io.sloeber.core/src/cc/arduino/packages/ssh/SSH.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import com.jcraft.jsch.JSchException;
4040
import com.jcraft.jsch.Session;
4141

42-
@SuppressWarnings({ "nls", "unqualified-field-access" })
42+
@SuppressWarnings({ "nls","unused" })
4343
public class SSH {
4444

4545
final Session session;

io.sloeber.core/src/cc/arduino/packages/ssh/SSHConfigFileSetup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
import cc.arduino.packages.BoardPort;
4242

43-
@SuppressWarnings({ "nls", "unqualified-field-access" })
43+
@SuppressWarnings({ "nls" })
4444
public class SSHConfigFileSetup implements SSHClientSetupChainRing {
4545

4646
private final SSHClientSetupChainRing nextChainRing;

io.sloeber.core/src/io/sloeber/core/Activator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public boolean belongsTo(Object family) {
5858
* @author Jan Baeyens
5959
*
6060
*/
61-
@SuppressWarnings("nls")
61+
@SuppressWarnings({"nls","unused"})
6262
public class Activator extends AbstractUIPlugin {
6363
// preference nodes
6464
public static final String NODE_ARDUINO = "io.sloeber.arduino";
@@ -404,7 +404,7 @@ static boolean isPatron() {
404404
String content= IOUtils.toString( url);
405405
isPatron = new Boolean(content.length() < 200);
406406

407-
} catch (@SuppressWarnings("unused") Exception e) {
407+
} catch ( Exception e) {
408408
//Ignore the download error. This will make the code try again later
409409
}
410410
if (isPatron != null) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
import io.sloeber.core.tools.ShouldHaveBeenInCDT;
5555
import io.sloeber.core.tools.TxtFile;
5656

57-
@SuppressWarnings("nls")
57+
@SuppressWarnings({"nls" ,"unused"})
5858
public class BoardDescriptor {
5959

6060
/*
@@ -924,7 +924,7 @@ public File getReferencingPlatformFile() {
924924
public Path getreferencingPlatformPath() {
925925
try {
926926
return new Path(this.myreferencingBoardsFile.getParent());
927-
} catch (@SuppressWarnings("unused") Exception e) {
927+
} catch ( Exception e) {
928928
return new Path(new String());
929929
}
930930
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.eclipse.debug.core.ILaunch;
1010
import org.eclipse.debug.core.ILaunchConfiguration;
1111
import org.eclipse.debug.core.model.ILaunchConfigurationDelegate;
12-
12+
@SuppressWarnings("unused")
1313
public class LaunchConfiguration implements ILaunchConfigurationDelegate {
1414

1515
/**

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
* @author jantje
5555
*
5656
*/
57+
@SuppressWarnings("unused")
5758
public class PackageManager {
5859

5960
protected static List<PackageIndex> packageIndices;
@@ -774,7 +775,7 @@ public static void setJsonURLs(String[] newJsonUrls) {
774775
if (localFile.exists()) {
775776
localFile.delete();
776777
}
777-
} catch (@SuppressWarnings("unused") Exception e) {
778+
} catch ( Exception e) {
778779
// ignore
779780
}
780781
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import jssc.SerialPortEventListener;
4646
import jssc.SerialPortException;
4747
import jssc.SerialPortList;
48-
48+
@SuppressWarnings("unused")
4949
public class Serial implements SerialPortEventListener {
5050

5151
// PApplet parent;
@@ -209,7 +209,7 @@ public void disconnect() {
209209
if (this.port.isOpened()) {
210210
try {
211211
this.port.closePort();
212-
} catch (@SuppressWarnings("unused") SerialPortException e) {
212+
} catch (SerialPortException e) {
213213
// e.printStackTrace();
214214
}
215215
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import io.sloeber.core.tools.Helpers;
3434
import io.sloeber.core.tools.Libraries;
3535
import io.sloeber.core.tools.uploaders.UploadSketchWrapper;
36-
36+
@SuppressWarnings("unused")
3737
public class Sketch {
3838
// preference nodes
3939
public static final String NODE_ARDUINO = Activator.NODE_ARDUINO;

0 commit comments

Comments
 (0)