comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SimpleLanguage.java @ 8959:7fee8bd5d2bd

Remove some System.(out|err).print... Add a checkstyle rule for it
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 09 Apr 2013 19:25:20 +0200
parents b2161263e9f2
children 71991b7a0f14
comparison
equal deleted inserted replaced
8958:64d3d352f943 8959:7fee8bd5d2bd
35 run(new FileInputStream(args[0]), System.out, 10, true); 35 run(new FileInputStream(args[0]), System.out, 10, true);
36 } 36 }
37 37
38 public static void run(InputStream input, PrintStream printOutput, int repeats, boolean log) { 38 public static void run(InputStream input, PrintStream printOutput, int repeats, boolean log) {
39 if (log) { 39 if (log) {
40 // CheckStyle: stop system..print check
40 System.out.printf("== running on %s\n", Truffle.getRuntime().getName()); 41 System.out.printf("== running on %s\n", Truffle.getRuntime().getName());
42 // CheckStyle: resume system..print check
41 } 43 }
42 44
43 NodeFactory factory = new NodeFactory(printOutput); 45 NodeFactory factory = new NodeFactory(printOutput);
44 46
45 Parser parser = new Parser(new Scanner(input), factory); 47 Parser parser = new Parser(new Scanner(input), factory);
61 63
62 if (result != null) { 64 if (result != null) {
63 printOutput.println(result); 65 printOutput.println(result);
64 } 66 }
65 if (log) { 67 if (log) {
68 // CheckStyle: stop system..print check
66 System.out.printf("== iteration %d: %.3f ms\n", (i + 1), (end - start) / 1000000.0); 69 System.out.printf("== iteration %d: %.3f ms\n", (i + 1), (end - start) / 1000000.0);
70 // CheckStyle: resume system..print check
67 } 71 }
68 } 72 }
69 73
70 } finally { 74 } finally {
71 if (log) { 75 if (log) {