Skip to content

Commit

Permalink
DeviceTracker: get rid of raw Vector
Browse files Browse the repository at this point in the history
Vector is a raw type. References to generic type Vector<E> should be
parameterized
  • Loading branch information
EcljpseB0T authored and jukzi committed Feb 13, 2024
1 parent d202f59 commit 2472679
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void refine() {

manager.locators.loadDrivers(properties, drivers);

Vector exclude = new Vector(drivers.size());
Vector<ServiceReference> exclude = new Vector<>(drivers.size());

Check warning on line 159 in bundles/org.eclipse.equinox.device/src/org/eclipse/equinox/device/DeviceTracker.java

View check run for this annotation

Jenkins - Eclipse Equinox / Compiler and API Tools

Unchecked Raw

NORMAL: should be parameterized ServiceReference is a raw type. References to generic type ServiceReference

while (running) {
ServiceReference driver = drivers.match(device, exclude);

Check warning on line 162 in bundles/org.eclipse.equinox.device/src/org/eclipse/equinox/device/DeviceTracker.java

View check run for this annotation

Jenkins - Eclipse Equinox / Compiler and API Tools

Unchecked Raw

NORMAL: should be parameterized ServiceReference is a raw type. References to generic type ServiceReference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public ServiceReference getDriver(String driver_id) {
*
* @return ServiceReference to best matched Driver or null of their is no match.
*/
public ServiceReference match(ServiceReference device, Vector exclude) {
public ServiceReference match(ServiceReference device, Vector<ServiceReference> exclude) {

Check warning on line 232 in bundles/org.eclipse.equinox.device/src/org/eclipse/equinox/device/DriverTracker.java

View check run for this annotation

Jenkins - Eclipse Equinox / Compiler and API Tools

Unchecked Raw

NORMAL: should be parameterized ServiceReference is a raw type. References to generic type ServiceReference

Check warning on line 232 in bundles/org.eclipse.equinox.device/src/org/eclipse/equinox/device/DriverTracker.java

View check run for this annotation

Jenkins - Eclipse Equinox / Compiler and API Tools

Unchecked Raw

NORMAL: should be parameterized ServiceReference is a raw type. References to generic type ServiceReference

Check warning on line 232 in bundles/org.eclipse.equinox.device/src/org/eclipse/equinox/device/DriverTracker.java

View check run for this annotation

Jenkins - Eclipse Equinox / Compiler and API Tools

Unchecked Raw

NORMAL: should be parameterized ServiceReference is a raw type. References to generic type ServiceReference
if (Activator.DEBUG) {
log.debug(device, this + ": Driver match called"); //$NON-NLS-1$
}
Expand Down Expand Up @@ -334,7 +334,7 @@ public void storeMatch(ServiceReference driver, ServiceReference device, Match m
* @param device Device to be attached
* @return true is the Driver successfully attached.
*/
public boolean attach(ServiceReference driver, ServiceReference device, Vector exclude) {
public boolean attach(ServiceReference driver, ServiceReference device, Vector<ServiceReference> exclude) {

Check warning on line 337 in bundles/org.eclipse.equinox.device/src/org/eclipse/equinox/device/DriverTracker.java

View check run for this annotation

Jenkins - Eclipse Equinox / Compiler and API Tools

Unchecked Raw

NORMAL: should be parameterized ServiceReference is a raw type. References to generic type ServiceReference

Check warning on line 337 in bundles/org.eclipse.equinox.device/src/org/eclipse/equinox/device/DriverTracker.java

View check run for this annotation

Jenkins - Eclipse Equinox / Compiler and API Tools

Unchecked Raw

NORMAL: should be parameterized ServiceReference is a raw type. References to generic type ServiceReference

Check warning on line 337 in bundles/org.eclipse.equinox.device/src/org/eclipse/equinox/device/DriverTracker.java

View check run for this annotation

Jenkins - Eclipse Equinox / Compiler and API Tools

Unchecked Raw

NORMAL: should be parameterized ServiceReference is a raw type. References to generic type ServiceReference
if (Activator.DEBUG) {
log.debug(driver, this + ": Driver attach called: " + drivers.get(driver)); //$NON-NLS-1$
}
Expand Down

0 comments on commit 2472679

Please sign in to comment.