Skip to content

Commit 89040f8

Browse files
author
Miloslav Metelka
committed
Style checks.
1 parent 89bc54b commit 89040f8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/utils/TestFastrErrorsLog.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ public void testThrowInternalError() throws Exception {
4848
boolean origValue = FastROptions.PrintErrorStacktracesToFile.getBooleanValue();
4949
FastROptions.setValue(FastROptions.PrintErrorStacktracesToFile.name(), true);
5050
try {
51-
final String FASTR_ERRORS_LOG = "fastr_errors"; // Copy of
52-
// RInternalError.FASTR_ERRORS_LOG
51+
String fastrErrorsLog = "fastr_errors"; // Copy of RInternalError.FASTR_ERRORS_LOG
5352
int pid = RContext.getInitialPid();
54-
String baseName = FASTR_ERRORS_LOG + "_pid" + Integer.toString(pid) + ".log";
53+
String baseName = fastrErrorsLog + "_pid" + Integer.toString(pid) + ".log";
5554
if (RContext.isEmbedded()) {
5655
String dir1 = System.getProperty("java.io.tmpdir");
5756
Path path1 = FileSystems.getDefault().getPath(dir1, baseName);
@@ -123,7 +122,7 @@ public void testThrowInternalError() throws Exception {
123122
}
124123
}
125124

126-
private static final void setReadonly(Path path, boolean readonly) throws IOException {
125+
private static void setReadonly(Path path, boolean readonly) throws IOException {
127126
Set<PosixFilePermission> perms = Files.getPosixFilePermissions(path);
128127
if (readonly) {
129128
perms.remove(PosixFilePermission.OWNER_WRITE);
@@ -133,7 +132,7 @@ private static final void setReadonly(Path path, boolean readonly) throws IOExce
133132
Files.setPosixFilePermissions(path, perms);
134133
}
135134

136-
private static final void reportError() {
135+
private static void reportError() {
137136
PrintStream temp = new PrintStream(new ByteArrayOutputStream());
138137
PrintStream origErr = System.err;
139138
System.setErr(temp);

0 commit comments

Comments
 (0)