Skip to content

Commit b0b1453

Browse files
committed
Remove redundant cast.
1 parent 4550d56 commit b0b1453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dubbo-config/dubbo-config-api/src/main/java/com/alibaba/dubbo/config/ServiceConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ public void setInterface(Class<?> interfaceClass) {
757757
throw new IllegalStateException("The interface class " + interfaceClass + " is not a interface!");
758758
}
759759
this.interfaceClass = interfaceClass;
760-
setInterface(interfaceClass == null ? (String) null : interfaceClass.getName());
760+
setInterface(interfaceClass == null ? null : interfaceClass.getName());
761761
}
762762

763763
public T getRef() {

0 commit comments

Comments
 (0)