Skip to content

Commit

Permalink
Fix some type issues in tests
Browse files Browse the repository at this point in the history
Change-Id: I9633d7ecb48396c0d0943c09e7b57d04aeb25b9f
  • Loading branch information
gkdn committed Jun 8, 2017
1 parent 9ee3048 commit 9f94950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions user/test/com/google/gwt/emultest/java/util/TreeMapTest.java
Expand Up @@ -2306,7 +2306,7 @@ public void testPut_replace() {
public void testPut_ComparableKey() {
final boolean java6CompatibleSources =
!TestUtils.isJvm() || TestUtils.getJdkVersion() < 7;
TreeMap<String, Object> map = new TreeMap<String, Object>();
TreeMap map = new TreeMap();
ConflictingKey conflictingKey = new ConflictingKey("conflictingKey");
try {
TreeMap untypedMap = map;
Expand Down Expand Up @@ -3501,7 +3501,7 @@ protected void setComparator(Comparator<K> comparator) {
protected void verifyMap() {
if (!TestUtils.isJvm()) {
// Verify red-black correctness in our implementation
TreeMapViolator.callAssertCorrectness(map);
TreeMapViolator.callAssertCorrectness((TreeMap) map);
}
super.verifyMap();
}
Expand Down
Expand Up @@ -15,7 +15,7 @@
*/
package com.google.gwt.emultest.java.util;

import java.util.Map;
import java.util.TreeMap;

/**
* Used to delay referencing methods only present in the emulated JRE until they
Expand All @@ -24,7 +24,7 @@
public class TreeMapViolator {
// Use JSNI to call a special method on our implementation of TreeMap.
@SuppressWarnings("unchecked") // raw Map
public static native void callAssertCorrectness(Map map) /*-{
public static native void callAssertCorrectness(TreeMap map) /*-{
map.@java.util.TreeMap::assertCorrectness()();
}-*/;
}

0 comments on commit 9f94950

Please sign in to comment.