Author: jcompagner Date: Wed Feb 13 01:35:04 2008 New Revision: 627326 URL: http://svn.apache.org/viewvc?rev=627326&view=rev Log: some doc improvements
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/stateless/ImageStatelessTest.java Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java?rev=627326&r1=627325&r2=627326&view=diff ============================================================================== --- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java (original) +++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/image/resource/LocalizedImageResource.java Wed Feb 13 01:35:04 2008 @@ -221,7 +221,7 @@ } /** - * @return If it is stateless (if resource is null) + * @return true if it has a resourceReference. (it points to a shared resource) */ public final boolean isStateless() { @@ -258,8 +258,7 @@ // resource, then we need to reload the resource in the new locale Locale l = component.getLocale(); String s = component.getStyle(); - if (resourceKind == null && - (!Objects.equal(locale, l) || !Objects.equal(style, s))) + if (resourceKind == null && (!Objects.equal(locale, l) || !Objects.equal(style, s))) { // Get new component locale and style locale = l; Modified: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/stateless/ImageStatelessTest.java URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/stateless/ImageStatelessTest.java?rev=627326&r1=627325&r2=627326&view=diff ============================================================================== --- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/stateless/ImageStatelessTest.java (original) +++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/stateless/ImageStatelessTest.java Wed Feb 13 01:35:04 2008 @@ -39,20 +39,10 @@ /** * */ - public void testEmpty() - { - final Image i = new Image("test"); - tester.startComponent(i); - assertTrue("image with resource reference should be statefull", !i.isStateless()); - } - - /** - * - */ public void testResource() { final Image i = new Image("test", new ByteArrayResource("text/text", new byte[0])); tester.startComponent(i); - assertTrue("image with resource reference should be statefull", !i.isStateless()); + assertTrue("image with resource should be statefull", !i.isStateless()); } }