Skip to content

Commit

Permalink
ignite-5736: minor style code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daradurvs committed Aug 29, 2017
1 parent 3473b2d commit 8190dc8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import org.apache.ignite.testframework.junits.multijvm.IgniteNodeRunner;

/**
* Run Ignite node.
* Runs Ignite node.
*/
public class CompatibilityTestIgniteNodeRunner extends IgniteNodeRunner {
/** */
Expand Down Expand Up @@ -112,19 +112,19 @@ public static void storeToFile(IgniteInClosure clos, String fileName) throws IOE
/**
* Reads closure from given file name and delete the file after.
*
* @param closFileName Closure file name.
* @param fileName Closure file name.
* @return IgniteInClosure for post-configuration.
* @throws IOException In case of an error.
* @see #storeToFile(IgniteInClosure, String)
*/
@SuppressWarnings("unchecked")
public static IgniteInClosure<IgniteConfiguration> readClosureFromFileAndDelete(
String closFileName) throws IOException {
try (BufferedReader closReader = Files.newBufferedReader(Paths.get(closFileName), StandardCharsets.UTF_8)) {
return (IgniteInClosure)new XStream().fromXML(closReader);
String fileName) throws IOException {
try (BufferedReader reader = Files.newBufferedReader(Paths.get(fileName), StandardCharsets.UTF_8)) {
return (IgniteInClosure)new XStream().fromXML(reader);
}
finally {
new File(closFileName).delete();
new File(fileName).delete();
}
}
}

0 comments on commit 8190dc8

Please sign in to comment.