Skip to content

Commit fddb108

Browse files
authored
Fix RawTypes warning in QosExceptionTest (#1047)
Fix RawTypes warning in QosExceptionTest
1 parent 514771a commit fddb108

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

errors/src/test/java/com/palantir/conjure/java/api/errors/QosExceptionTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ public final class QosExceptionTest {
3030

3131
@Test
3232
public void testVisitorSanity() throws Exception {
33-
QosException.Visitor<Class> visitor = new QosException.Visitor<Class>() {
33+
QosException.Visitor<Class<?>> visitor = new QosException.Visitor<>() {
3434
@Override
35-
public Class visit(QosException.Throttle exception) {
35+
public Class<?> visit(QosException.Throttle exception) {
3636
return exception.getClass();
3737
}
3838

3939
@Override
40-
public Class visit(QosException.RetryOther exception) {
40+
public Class<?> visit(QosException.RetryOther exception) {
4141
return exception.getClass();
4242
}
4343

4444
@Override
45-
public Class visit(QosException.Unavailable exception) {
45+
public Class<?> visit(QosException.Unavailable exception) {
4646
return exception.getClass();
4747
}
4848
};

0 commit comments

Comments
 (0)