rspec/rules/S2737/java/compliant.adoc

22 lines
330 B
Plaintext
Raw Normal View History

[source,java]
----
public String readFile(File f) throws IOException {
return readFromDisk(f);
}
----
or
[source,java]
----
public String readFile(File f) throws IOException {
String content;
try {
content = readFromDisk(f);
} catch (IOException e) {
logger.LogError(e);
throw e;
}
return content;
}
----