cleanup: remove redundant cast

This commit is contained in:
P0nk
2021-04-08 17:23:45 +02:00
parent ebb3aa7ba3
commit 3434c7334b
48 changed files with 243 additions and 359 deletions

View File

@@ -31,7 +31,7 @@ public class Service <T extends BaseService> {
public Service(Class<T> s) {
try {
cls = s;
service = (BaseService) cls.getConstructor().newInstance();
service = cls.getConstructor().newInstance();
} catch (Exception e) {
e.printStackTrace();
}