Skip to content

Commit

Permalink
Checkstyle corrections
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
  • Loading branch information
flo-dup committed Nov 4, 2020
1 parent 0f4b4e5 commit 1f33ac7
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
package com.powsybl.sld;

import com.google.common.io.ByteStreams;
import com.powsybl.iidm.network.Network;
import com.powsybl.sld.layout.LayoutParameters;
import com.powsybl.sld.library.ResourcesComponentLibrary;
import com.powsybl.sld.model.Graph;
import com.powsybl.sld.model.SubstationGraph;
import com.powsybl.sld.model.ZoneGraph;
import com.powsybl.sld.svg.*;
import com.powsybl.sld.util.NominalVoltageDiagramStyleProvider;
import com.powsybl.sld.svg.DefaultSVGWriter;
import com.powsybl.sld.svg.DiagramLabelProvider;
import com.powsybl.sld.svg.DiagramStyleProvider;

import java.io.*;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -50,7 +50,7 @@ private void writeToFileInHomeDir(String filename, StringWriter content) {
if (writeFile) {
File homeFolder = new File(System.getProperty("user.home"));
File file = new File(homeFolder, filename);
try (OutputStreamWriter fw = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)){
try (OutputStreamWriter fw = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) {
fw.write(content.toString());
} catch (IOException e) {
throw new UncheckedIOException(e);
Expand All @@ -59,7 +59,9 @@ private void writeToFileInHomeDir(String filename, StringWriter content) {
}

public abstract void toSVG(Graph g, String filename);

public abstract void toSVG(SubstationGraph g, String filename);

public abstract void toSVG(ZoneGraph g, String filename);

public String toSVG(Graph graph,
Expand Down

0 comments on commit 1f33ac7

Please sign in to comment.