# HG changeset patch # User Jaroslav Tulach # Date 1344457590 -7200 # Node ID d293aacf31f8de26d3443831800113d414cc1bb6 # Parent a72eecb999525a3af76a2f9a22faf0ea0b4fab9a Andrei: Don't put the code into main method diff -r a72eecb99952 -r d293aacf31f8 samples/erasure/src-impl/test/ErasureTest.java --- a/samples/erasure/src-impl/test/ErasureTest.java Wed Aug 08 22:25:24 2012 +0200 +++ b/samples/erasure/src-impl/test/ErasureTest.java Wed Aug 08 22:26:30 2012 +0200 @@ -5,12 +5,12 @@ import java.util.List; public class ErasureTest { - // BEGIN: variance.erasure.test public static void main(String[] args) { + // BEGIN: variance.erasure.test List oneToTen = Arrays.asList(2, 4, 6, 8, 10); boolean positive = arePositive(oneToTen); System.err.println("positive = " + positive); assert positive : "All the numbers are positive: " + oneToTen; + // END: variance.erasure.test } - // END: variance.erasure.test }