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 2013/03/25 09:17:19 UTC

[1/2] git commit: Explain in Javadoc that the methods throw exception when a field/setter/getter cannot be found

Updated Branches:
  refs/heads/master 72dde905c -> 3e886ffe0


Explain in Javadoc that the methods throw exception when a field/setter/getter cannot be found


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

Branch: refs/heads/master
Commit: 3e886ffe0abc8144098a60ba647ed21969a59cb1
Parents: d1b44ba
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Mar 25 10:15:49 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Mar 25 10:17:06 2013 +0200

----------------------------------------------------------------------
 .../wicket/core/util/lang/PropertyResolver.java    |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/3e886ffe/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java b/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java
index 5c80f13..5a95240 100644
--- a/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java
+++ b/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java
@@ -118,6 +118,7 @@ public final class PropertyResolver
 	 *            The value to set.
 	 * @param converter
 	 *            The converter to convert the value if needed to the right type.
+	 * @throws WicketRuntimeException
 	 */
 	public final static void setValue(final String expression, final Object object,
 		final Object value, final PropertyResolverConverter converter)
@@ -148,6 +149,7 @@ public final class PropertyResolver
 	 * @param expression
 	 * @param object
 	 * @return class of the target property object
+	 * @throws WicketRuntimeException if the cannot be resolved
 	 */
 	public final static Class<?> getPropertyClass(final String expression, final Object object)
 	{
@@ -165,6 +167,7 @@ public final class PropertyResolver
 	 * @param expression
 	 * @param clz
 	 * @return class of the target Class property expression
+	 * @throws WicketRuntimeException if class cannot be resolved
 	 */
 	@SuppressWarnings("unchecked")
 	public static <T> Class<T> getPropertyClass(final String expression, final Class<?> clz)
@@ -181,8 +184,8 @@ public final class PropertyResolver
 	/**
 	 * @param expression
 	 * @param object
-	 * @return Field for the property expression or null if such field doesn't exist (only getters
-	 *         and setters)
+	 * @return Field for the property expression
+	 * @throws WicketRuntimeException if there is no such field
 	 */
 	public final static Field getPropertyField(final String expression, final Object object)
 	{
@@ -198,8 +201,8 @@ public final class PropertyResolver
 	/**
 	 * @param expression
 	 * @param object
-	 * @return Getter method for the property expression or null if such getter doesn't exist (only
-	 *         field)
+	 * @return Getter method for the property expression
+	 * @throws WicketRuntimeException if there is no getter method
 	 */
 	public final static Method getPropertyGetter(final String expression, final Object object)
 	{
@@ -215,8 +218,8 @@ public final class PropertyResolver
 	/**
 	 * @param expression
 	 * @param object
-	 * @return Setter method for the property expression or null if such setter doesn't exist (only
-	 *         field)
+	 * @return Setter method for the property expression
+	 * @throws WicketRuntimeException if there is no setter method
 	 */
 	public final static Method getPropertySetter(final String expression, final Object object)
 	{


[2/2] git commit: Non functional change - fix a typo in exception message

Posted by mg...@apache.org.
Non functional change - fix a typo in exception message


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

Branch: refs/heads/master
Commit: d1b44badf26eaa5994193469e158467a93c034a9
Parents: 72dde90
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Fri Mar 22 14:35:32 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Mar 25 10:17:06 2013 +0200

----------------------------------------------------------------------
 .../wicket/core/util/lang/PropertyResolver.java    |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d1b44bad/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java b/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java
index 6212a74..5c80f13 100644
--- a/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java
+++ b/wicket-core/src/main/java/org/apache/wicket/core/util/lang/PropertyResolver.java
@@ -155,7 +155,7 @@ public final class PropertyResolver
 		if (setter == null)
 		{
 			throw new WicketRuntimeException("Null object returned for expression: " + expression +
-				" for getting the target classs of: " + object);
+				" for getting the target class of: " + object);
 		}
 		return setter.getTargetClass();
 	}
@@ -173,7 +173,7 @@ public final class PropertyResolver
 		if (setter == null)
 		{
 			throw new WicketRuntimeException("No Class returned for expression: " + expression +
-				" for getting the target classs of: " + clz);
+				" for getting the target class of: " + clz);
 		}
 		return (Class<T>)setter.getTargetClass();
 	}
@@ -190,7 +190,7 @@ public final class PropertyResolver
 		if (setter == null)
 		{
 			throw new WicketRuntimeException("Null object returned for expression: " + expression +
-				" for getting the target classs of: " + object);
+				" for getting the target class of: " + object);
 		}
 		return setter.getField();
 	}
@@ -207,7 +207,7 @@ public final class PropertyResolver
 		if (setter == null)
 		{
 			throw new WicketRuntimeException("Null object returned for expression: " + expression +
-				" for getting the target classs of: " + object);
+				" for getting the target class of: " + object);
 		}
 		return setter.getGetter();
 	}
@@ -224,7 +224,7 @@ public final class PropertyResolver
 		if (setter == null)
 		{
 			throw new WicketRuntimeException("Null object returned for expression: " + expression +
-				" for getting the target classs of: " + object);
+				" for getting the target class of: " + object);
 		}
 		return setter.getSetter();
 	}