Mercurial > hg > truffle
comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/jdk/System_setOut.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 | c38d2870439e |
children | a6fda38d8484 |
comparison
equal
deleted
inserted
replaced
8958:64d3d352f943 | 8959:7fee8bd5d2bd |
---|---|
44 | 44 |
45 System.setOut(oldOut); | 45 System.setOut(oldOut); |
46 return sum; | 46 return sum; |
47 } | 47 } |
48 | 48 |
49 // CheckStyle: stop system..print check | |
49 private static void doPrint(int n) { | 50 private static void doPrint(int n) { |
50 for (int i = 0; i < n; i++) { | 51 for (int i = 0; i < n; i++) { |
51 System.out.print('x'); | 52 System.out.print('x'); |
52 } | 53 } |
53 } | 54 } |
54 | 55 |
55 public static void main(String[] args) throws Exception { | 56 public static void main(String[] args) throws Exception { |
56 System.out.println(test(10000)); | 57 System.out.println(test(10000)); |
57 } | 58 } |
58 | 59 |
60 // CheckStyle: resume system..print check | |
61 | |
59 @LongTest | 62 @LongTest |
60 public void run0() throws Throwable { | 63 public void run0() throws Throwable { |
61 runTest("test", 10000); | 64 runTest("test", 10000); |
62 } | 65 } |
63 | 66 |