Skip to content

Commit

Permalink
chore(QA): fix some warnings during build
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Dec 4, 2023
1 parent 1f84a6f commit 84d77e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@
*/
package org.apache.plc4x.protocol.ads;

import org.apache.plc4x.plugins.codegenerator.language.mspec.model.definitions.DefaultComplexTypeDefinition;
import org.apache.plc4x.plugins.codegenerator.language.mspec.parser.MessageFormatParser;
import org.apache.plc4x.plugins.codegenerator.language.mspec.protocol.ProtocolHelpers;
import org.apache.plc4x.plugins.codegenerator.language.mspec.protocol.ValidatableTypeContext;
import org.apache.plc4x.plugins.codegenerator.protocol.Protocol;
import org.apache.plc4x.plugins.codegenerator.protocol.TypeContext;
import org.apache.plc4x.plugins.codegenerator.types.exceptions.GenerationException;

import java.util.ArrayList;
import java.util.HashMap;

public class ADSProtocol implements Protocol, ProtocolHelpers {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class KnxSpecificationStoreUpdater {

/**
* Description of the KNX Foundation Webservice: http://onlinecatalog.knx.org/Download/help
*
* @param args
*/
public static void main(String[] args) {
Expand Down Expand Up @@ -136,7 +137,7 @@ public static void main(String[] args) {
int applicationId = applicationIdentifier.getInt(2) << 8 | applicationIdentifier.getInt(3);
int applicationVersion = applicationIdentifier.getInt(4) & 0xFF;

if(applicationId == 0 && applicationVersion == 0) {
if (applicationId == 0 && applicationVersion == 0) {
System.out.println("SKIPPED");
continue;
}
Expand All @@ -148,7 +149,7 @@ public static void main(String[] args) {
// Check If we've already got that file (There are no updates, just new versions)
File[] files = manufacturerDirectory.listFiles((dir, name) -> name.startsWith(productCode));
// If we've already got the file, skip loading it
if(files.length > 0) {
if (files.length > 0) {
System.out.println("SKIPPED");
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package org.apache.plc4x.protocol.plc4xapi.v0;

import org.apache.plc4x.plugins.codegenerator.protocol.TypeContext;
import org.apache.plc4x.protocol.plc4xapi.v0.Plc4xApi;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertNotNull;
Expand Down

0 comments on commit 84d77e7

Please sign in to comment.