don't override existing fields with a null value

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-30 08:15:36 +00:00
parent 0ee892dfdc
commit 92600f4e55
1 changed files with 22 additions and 19 deletions

View File

@ -544,6 +544,8 @@ public class DefaultPluginManager
String key = (String) i.next();
Object value = map.get( key );
if ( value != null )
{
Class clazz = plugin.getClass();
try
{
@ -571,6 +573,7 @@ public class DefaultPluginManager
}
}
}
}
private Field findPluginField( Class clazz, String key )
throws NoSuchFieldException