Commit 0093a2b6 authored by Georg Vinogradov's avatar Georg Vinogradov
Browse files

Minor adjustments

parent 9a4fbf49
Pipeline #155387 passed with stages
in 1 minute and 9 seconds
...@@ -28,7 +28,7 @@ public class GeneratorMqtt ...@@ -28,7 +28,7 @@ public class GeneratorMqtt
model.addPorts(ports); model.addPorts(ports);
//Generate files and write to project //Generate files and write to project
String content = MqttTemplates.generateRosAdapter(model); String content = MqttTemplates.generateMqttAdapter(model);
File file = new File("./target/generated-sources/ports.txt"); File file = new File("./target/generated-sources/ports.txt");
files.add(file); files.add(file);
...@@ -40,7 +40,7 @@ public class GeneratorMqtt ...@@ -40,7 +40,7 @@ public class GeneratorMqtt
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
}finally{ }finally{
//close resources //Close resources
try { try {
fr.close(); fr.close();
} catch (IOException e) { } catch (IOException e) {
......
...@@ -32,7 +32,7 @@ public class MqttTemplates { ...@@ -32,7 +32,7 @@ public class MqttTemplates {
} }
} }
public static String generateRosAdapter(MqttAdapterModel model) { public static String generateMqttAdapter(MqttAdapterModel model) {
HashMap<String, Object> data = new HashMap<>(); HashMap<String, Object> data = new HashMap<>();
data.put("model", model); data.put("model", model);
return generate(PrettyPrint, data); return generate(PrettyPrint, data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment