Skip to content

Commit

Permalink
Functionality-neutral refactor (mostly lint fixes) (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Mar 17, 2022
1 parent c48f222 commit 6061e23
Show file tree
Hide file tree
Showing 34 changed files with 685 additions and 566 deletions.
2 changes: 1 addition & 1 deletion pubber/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sourceSets {

checkstyle {
ignoreFailures = false
maxWarnings = 70
maxWarnings = 0
}
checkstyleMain.source = 'src/main/java'

Expand Down
6 changes: 4 additions & 2 deletions pubber/pubber.iml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<output url="file://$MODULE_DIR$/build/classes/java/main" />
<output-test url="file://$MODULE_DIR$/build/classes/java/test" />
<exclude-output />
<content url="file://$MODULE_DIR$/../gencode">
<sourceFolder url="file://$MODULE_DIR$/../gencode/java" isTestSource="false" />
</content>
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
Expand Down Expand Up @@ -107,6 +110,5 @@
<orderEntry type="library" scope="TEST" name="Gradle: com.google.android:annotations:4.1.1.4" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: org.codehaus.mojo:animal-sniffer-annotations:1.20" level="project" />
<orderEntry type="library" scope="TEST" name="Gradle: io.perfmark:perfmark-api:0.23.0" level="project" />
<orderEntry type="module" module-name="gencode" />
</component>
</module>
</module>
2 changes: 1 addition & 1 deletion pubber/src/main/java/daq/pubber/BasicPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public abstract class BasicPoint implements AbstractPoint {
/**
* Construct a maybe writable point.
*
* @param name Point name
* @param name Point name
* @param writable True if writable
*/
public BasicPoint(String name, boolean writable) {
Expand Down
15 changes: 12 additions & 3 deletions pubber/src/main/java/daq/pubber/GatewayError.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
package daq.pubber;

/**
* Handler class for a received error when binding a gateway.
*/
@SuppressWarnings("MemberName")
public class GatewayError {

public String error_type;
public String description;
public String device_id;
public MqttMessageInfo mqtt_message_info;

/**
* Encapsulating information about the message itself.
*/
public static class MqttMessageInfo {
public String message_type;
public String topic;
public String packet_id;

public String message_type;
public String topic;
public String packet_id;
}
}
11 changes: 0 additions & 11 deletions pubber/src/main/java/daq/pubber/JwtAuthorization.java

This file was deleted.

Loading

0 comments on commit 6061e23

Please sign in to comment.