Project

General

Profile

Actions

Task #10304

open

deprecation warnings via compilation

Added by Sergey Smolov over 4 years ago. Updated over 1 year 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

Actions #1

Updated by Sergey Smolov over 4 years ago

  • Target version set to 2.5
Actions #2

Updated by Alexander Protsenko over 1 year ago

  • Target version changed from 2.5 to 2.6
Actions

Also available in: Atom PDF