Skip to content

Commit ec2e9a6

Browse files
committed
Added all missing @OverRide annotations
1 parent 46dfd76 commit ec2e9a6

24 files changed

+65
-0
lines changed

arduino-core/src/cc/arduino/Compiler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ private String boardOptions(TargetBoard board) {
516516
* out from the compiler. The errors are parsed for their contents
517517
* and line number, which is then reported back to Editor.
518518
*/
519+
@Override
519520
public void message(String s) {
520521
int i;
521522

arduino-core/src/cc/arduino/MyStreamPumper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public MyStreamPumper(final InputStream is, final MessageConsumer messageConsume
6464
* Copies data from the input stream to the output stream. Terminates as
6565
* soon as the input stream is closed or an error occurs.
6666
*/
67+
@Override
6768
public void run() {
6869
synchronized (this) {
6970
// Just in case this object is reused in the future

arduino-core/src/cc/arduino/contributions/GPGDetachedSignatureVerifier.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public GPGDetachedSignatureVerifier(String keyId) {
4949
this.keyId = keyId;
5050
}
5151

52+
@Override
5253
protected boolean verify(File signedFile, File signature, File publicKey) throws IOException {
5354
FileInputStream signatureInputStream = null;
5455
FileInputStream signedFileInputStream = null;

arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public abstract class ContributedPlatform extends DownloadableContribution {
4444

4545
public abstract String getArchitecture();
4646

47+
@Override
4748
public abstract String getChecksum();
4849

4950
public abstract List<ContributedToolReference> getToolsDependencies();

arduino-core/src/cc/arduino/net/CustomProxySelector.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ private void setAuthenticator(String username, String password) {
162162
}
163163
Authenticator.setDefault(
164164
new Authenticator() {
165+
@Override
165166
public PasswordAuthentication getPasswordAuthentication() {
166167
return new PasswordAuthentication(username, actualPassword.toCharArray());
167168
}

arduino-core/src/cc/arduino/packages/Uploader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public String getFailureMessage() {
152152
return error;
153153
}
154154

155+
@Override
155156
public void message(String s) {
156157
// selectively suppress a bunch of avrdude output for AVR109/Caterina that should already be quelled but isn't
157158
if (!verbose && StringUtils.stringContainsOneOf(s, STRINGS_TO_SUPPRESS)) {

arduino-core/src/cc/arduino/packages/discoverers/SerialDiscovery.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public List<BoardPort> listDiscoveredBoards() {
5252
return getSerialBoardPorts(false);
5353
}
5454

55+
@Override
5556
public List<BoardPort> listDiscoveredBoards(boolean complete) {
5657
return getSerialBoardPorts(complete);
5758
}

arduino-core/src/cc/arduino/packages/ssh/NoInteractionUserInfo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,32 @@ public NoInteractionUserInfo(String password) {
3939
this.password = password;
4040
}
4141

42+
@Override
4243
public String getPassword() {
4344
return password;
4445
}
4546

47+
@Override
4648
public boolean promptYesNo(String str) {
4749
return true;
4850
}
4951

52+
@Override
5053
public String getPassphrase() {
5154
return password;
5255
}
5356

57+
@Override
5458
public boolean promptPassphrase(String message) {
5559
return true;
5660
}
5761

62+
@Override
5863
public boolean promptPassword(String message) {
5964
return true;
6065
}
6166

67+
@Override
6268
public void showMessage(String message) {
6369
}
6470

arduino-core/src/cc/arduino/packages/ssh/SSHConfigFileSetup.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public SSHConfigFileSetup(SSHClientSetupChainRing nextChainRing) {
4343
this.nextChainRing = nextChainRing;
4444
}
4545

46+
@Override
4647
public Session setup(BoardPort port, JSch jSch) throws JSchException, IOException {
4748
String ipAddress = port.getAddress();
4849
String hostname = port.getBoardName().contains(".local") ? port.getBoardName() : port.getBoardName() + ".local";

arduino-core/src/cc/arduino/packages/uploaders/GenericNetworkUploader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public GenericNetworkUploader(BoardPort port) {
4646
this.port = port;
4747
}
4848

49+
@Override
4950
public boolean requiresAuthorization() {
5051
return this.port.getPrefs().get("auth_upload").contentEquals("yes");
5152
}
@@ -55,6 +56,7 @@ public String getAuthorizationKey() {
5556
return "runtime.pwd." + this.port.getAddress();
5657
}
5758

59+
@Override
5860
public boolean uploadUsingPreferences(File sourcePath, String buildPath, String className, boolean usingProgrammer, List<String> warningsAccumulator) throws Exception {
5961
TargetPlatform targetPlatform = BaseNoGui.getTargetPlatform();
6062
PreferencesMap prefs = PreferencesData.getMap();

0 commit comments

Comments
 (0)