Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Cleanup Funktion leftovers #25

Merged
merged 6 commits into from
Nov 2, 2017
Merged

Cleanup Funktion leftovers #25

merged 6 commits into from
Nov 2, 2017

Conversation

lburgazzoli
Copy link
Contributor

This my first PR on syndesis-integration-runtime aimed to remove some funktion leftovers and custom bits.

@syndesisio/backend do you mind carefully review it ?

@rhuss
Copy link
Contributor

rhuss commented Oct 23, 2017

@lburgazzoli thanks ! I'm going to make a review soon but wanted to wait until TP2 is finally out before merging.

@lburgazzoli
Copy link
Contributor Author

No worries :)

Copy link
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! Looks good and much cleaner than before.

Some comments inline.

@@ -43,6 +43,7 @@ public String toString() {
return "Filter: " + expression + " => " + getSteps();
}

@Override
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constructor with expression should call super(KIND), too ?

Why is getKind() overwritten here ? (because of the @JsonIgnore in the super class ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftover leftover :)

ObjectMapper mapper = new ObjectMapper(yamlFactory)
.setSerializationInclusion(JsonInclude.Include.NON_EMPTY)
.enable(SerializationFeature.INDENT_OUTPUT)
.disable(SerializationFeature.WRITE_EMPTY_JSON_ARRAYS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WRITE_EMPTY_JSON_ARRAYS is deprecated (but already the default). So maybe just ommit it here ?

return Optional.of(loadFromFile(folder));
}
return Optional.empty();
public final class SyndesisHelpers {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename to YamlHelper (or something else) ?

@@ -28,7 +28,7 @@
*/
public static <T> List<T> notNullList(List<T> list) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we inline the whole class ? Its seems to be used only in the ChoiceHandler ....

public class SyndesisAutoConfiguration {
@Autowired
private ApplicationContext context;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

context is unused.

@lburgazzoli
Copy link
Contributor Author

@rhuss done

Copy link
Contributor

@rhuss rhuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

🎉

@pure-bot
Copy link

pure-bot bot commented Nov 2, 2017

Pull request approved by @rhuss - applying approved label

@pure-bot pure-bot bot added the approved label Nov 2, 2017
@pure-bot pure-bot bot merged commit bc72eb8 into syndesisio:master Nov 2, 2017
@lburgazzoli lburgazzoli deleted the cleanup branch November 2, 2017 16:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants