redhat-developer-demos / faas-tutorial

Java FaaS demos with OpenWhisk and OpenShift
Apache License 2.0
43 stars 28 forks source link

lost the import code in the Splitter, UpperCase, Sorter instructions #13

Open JimTyrrell opened 6 years ago

JimTyrrell commented 6 years ago

The build fails without adding in the import for JsonArray, ArrayList and List.

You need to add: To the FunctionApp you need to add a line for import com.google.gson.JsonArray;

For the FunctionAppTest import com.google.gson.JsonArray; import java.util.ArrayList; import java.util.List;

rafabene commented 6 years ago

They were present before, but it was hard to have understand what needs to change in the class, and also made the document very large. Maybe we should just drop a note to import the proper packages.

JimTyrrell commented 6 years ago

Or better, just have the source file you download have all the imports available in them.

The one to add to this list: sorter needs java.util.Comparator;