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 2014/03/06 09:33:32 UTC

[15/19] git commit: Return null instead of throwing null.

Return null instead of throwing null.

org.springframework.context.ApplicationContext#getId javadoc says:
/**
 * Return the unique id of this application context.
 * @return the unique id of the context, or {@code null} if none
 */


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

Branch: refs/heads/master
Commit: d6e1da82486e8e0ef15ffe1965589a8579fa4a73
Parents: 4f1fd55
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Mar 6 10:14:04 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Mar 6 10:14:04 2014 +0200

----------------------------------------------------------------------
 .../org/apache/wicket/spring/test/ApplicationContextMock.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/d6e1da82/wicket-spring/src/main/java/org/apache/wicket/spring/test/ApplicationContextMock.java
----------------------------------------------------------------------
diff --git a/wicket-spring/src/main/java/org/apache/wicket/spring/test/ApplicationContextMock.java b/wicket-spring/src/main/java/org/apache/wicket/spring/test/ApplicationContextMock.java
index 27a27a3..b6f2ebd 100644
--- a/wicket-spring/src/main/java/org/apache/wicket/spring/test/ApplicationContextMock.java
+++ b/wicket-spring/src/main/java/org/apache/wicket/spring/test/ApplicationContextMock.java
@@ -446,8 +446,7 @@ public class ApplicationContextMock implements ApplicationContext, Serializable
 	@Override
 	public String getId()
 	{
-		throw null;
-
+		return null;
 	}
 
 	@Override