-
Notifications
You must be signed in to change notification settings - Fork 13
SDAP-80 #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
SDAP-80 #28
Conversation
1. Use try-with-resources to create "BufferedReader" 2. Store the value returned from "readLine" instead of throwing it away.
|
Can one of the admins verify this patch? |
| try (BufferedReader br = new BufferedReader(new FileReader(file.getAbsolutePath()))) { | ||
| String line = null; | ||
| line = br.readLine(); // cvs header | ||
| while ((line = br.readLine()) != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this code? It look suspicious.
| import org.apache.sdap.mudrod.driver.ESDriver; | ||
| import org.apache.sdap.mudrod.driver.SparkDriver; | ||
| import org.apache.sdap.mudrod.main.MudrodConstants; | ||
| import org.apache.sdap.mudrod.main.MudrodEngine; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this import
lewismc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove import
Fixed bugs in TrainingImporter.java