You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2015/01/29 08:32:28 UTC

[2/3] wicket git commit: WICKET-5808 Remove unused parameter

WICKET-5808 Remove unused parameter

It is a private method so this is not API change


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/4b62ed0f
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/4b62ed0f
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/4b62ed0f

Branch: refs/heads/master
Commit: 4b62ed0fe460c2b8618e70799d6ea68d6de044bf
Parents: cc075e9
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Jan 29 09:29:36 2015 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Jan 29 09:29:36 2015 +0200

----------------------------------------------------------------------
 .../spring/injection/annot/AnnotProxyFieldValueFactory.java   | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/4b62ed0f/wicket-spring/src/main/java/org/apache/wicket/spring/injection/annot/AnnotProxyFieldValueFactory.java
----------------------------------------------------------------------
diff --git a/wicket-spring/src/main/java/org/apache/wicket/spring/injection/annot/AnnotProxyFieldValueFactory.java b/wicket-spring/src/main/java/org/apache/wicket/spring/injection/annot/AnnotProxyFieldValueFactory.java
index 27c4008..efa333d 100644
--- a/wicket-spring/src/main/java/org/apache/wicket/spring/injection/annot/AnnotProxyFieldValueFactory.java
+++ b/wicket-spring/src/main/java/org/apache/wicket/spring/injection/annot/AnnotProxyFieldValueFactory.java
@@ -192,8 +192,7 @@ public class AnnotProxyFieldValueFactory implements IFieldValueFactory
 			name = beanNameCache.get(fieldType);
 			if (name == null)
 			{
-				name = getBeanNameOfClass(contextLocator.getSpringContext(), fieldType, generic,
-					required);
+				name = getBeanNameOfClass(contextLocator.getSpringContext(), fieldType, generic);
 
 				if (name != null)
 				{
@@ -217,13 +216,11 @@ public class AnnotProxyFieldValueFactory implements IFieldValueFactory
 	 *            spring application context
 	 * @param clazz
 	 *            bean class
-	 * @param required
-	 *            true if the value is required
 	 * @throws IllegalStateException
 	 * @return spring name of the bean
 	 */
 	private String getBeanNameOfClass(final ApplicationContext ctx, final Class<?> clazz,
-		final Class<?> generic, final boolean required)
+		final Class<?> generic)
 	{
 		// get the list of all possible matching beans
 		List<String> names = new ArrayList<>(