Project

General

Profile

Task #10304

deprecation warnings via compilation

Added by Sergey Smolov 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
Start date:
04/23/2020
Due date:
% Done:

0%

Estimated time:
Detected in build:
git
Published in build:

Description

> Task :compileJava
/srv/****/workspace/MicroTESK/src/main/java/core/ru/ispras/microtesk/SysUtils.java:122: warning: [deprecation] newInstance() in Class has been deprecated
      return cl.loadClass(className).newInstance();
                                    ^
  where T is a type-variable:
    T extends Object declared in class Class
/srv/****/workspace/MicroTESK/src/main/java/core/ru/ispras/microtesk/SysUtils.java:148: warning: [deprecation] newInstance() in Class has been deprecated
      return (Plugin) pluginClass.newInstance();
                                 ^
  where T is a type-variable:
    T extends Object declared in class Class
/srv/****/workspace/MicroTESK/src/main/java/core/ru/ispras/microtesk/test/sequence/GeneratorNitems.java:78: warning: [unchecked] unchecked method invocation: method copyAll in class SharedObject is applied to given types
      return SharedObject.copyAll((List) value);
                                 ^
  required: List<T>
  found: List
  where T is a type-variable:
    T extends SharedObject<T> declared in method <T>copyAll(List<T>)
/srv/****/workspace/MicroTESK/src/main/java/core/ru/ispras/microtesk/test/sequence/GeneratorNitems.java:78: warning: [unchecked] unchecked conversion
      return SharedObject.copyAll((List) value);
                                  ^
  required: List<T>
  found:    List
  where T is a type-variable:
    T extends SharedObject<T> declared in method <T>copyAll(List<T>)
/srv/****/workspace/MicroTESK/src/main/java/core/ru/ispras/microtesk/test/sequence/GeneratorNitems.java:78: warning: [unchecked] unchecked conversion
      return SharedObject.copyAll((List) value);
                                 ^
  required: List<T>
  found:    List
  where T is a type-variable:
    T extends Object declared in class GeneratorNitems
/srv/****/workspace/MicroTESK/src/main/java/core/ru/ispras/microtesk/test/sequence/GeneratorConfig.java:179: warning: [deprecation] newInstance() in Class has been deprecated
      return type.newInstance();
                 ^
  where T is a type-variable:
    T extends Object declared in class Class

6 warnings

History

#1

Updated by Sergey Smolov 6 months ago

  • Target version set to 2.5

Also available in: Atom PDF