Mercurial > hg > truffle
diff graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/utilities/BranchProfileTest.java @ 17421:87ea195b66ff
Truffle: Make BranchProfile constructor private and introduce a factory Method BranchProfile.create().
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 13 Oct 2014 17:44:40 +0200 |
parents | a0200c215fb2 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/utilities/BranchProfileTest.java Mon Oct 13 17:44:15 2014 +0200 +++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/utilities/BranchProfileTest.java Mon Oct 13 17:44:40 2014 +0200 @@ -32,14 +32,14 @@ @Test public void testEnter() { - BranchProfile profile = new BranchProfile(); + BranchProfile profile = BranchProfile.create(); profile.enter(); profile.enter(); } @Test public void testToString() { - BranchProfile profile = new BranchProfile(); + BranchProfile profile = BranchProfile.create(); assertTrue(profile.toString().contains(profile.getClass().getSimpleName())); assertTrue(profile.toString().contains("not-visited")); assertTrue(profile.toString().contains(Integer.toHexString(profile.hashCode())));