blob: cec35d5435723f8d743542bff3c260e0ec0e3ef9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
From 0ef54eedd0cbfe90809e547b88f2e0447a2754a6 Mon Sep 17 00:00:00 2001
From: Luke Shumaker <LukeShu@sbcglobal.net>
Date: Fri, 6 Jun 2014 19:46:29 -0400
Subject: [PATCH 1/2] valid java
---
.../org/codehaus/plexus/component/repository/ComponentDescriptor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/codehaus/plexus/component/repository/ComponentDescriptor.java b/src/main/java/org/codehaus/plexus/component/repository/ComponentDescriptor.java
index 1139d17..087e33e 100644
--- a/src/main/java/org/codehaus/plexus/component/repository/ComponentDescriptor.java
+++ b/src/main/java/org/codehaus/plexus/component/repository/ComponentDescriptor.java
@@ -189,7 +189,7 @@ public class ComponentDescriptor<T>
{
try
{
- roleClass = realm.loadClass( role );
+ roleClass = (Class<? extends T>)realm.loadClass( role );
Thread.currentThread();
}
catch ( Throwable ignored )
@@ -299,7 +299,7 @@ public class ComponentDescriptor<T>
{
try
{
- implementationClass = realm.loadClass( implementation );
+ implementationClass = (Class<? extends T>)realm.loadClass( implementation );
Thread.currentThread();
}
catch ( Throwable ignored )
--
2.0.0
|