You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by bu...@apache.org on 2015/06/07 21:11:48 UTC
svn commit: r954095 - in /websites/staging/isis/trunk: cgi-bin/ content/
content/how-tos/how-to-02-100-How-to-validate-user-input-for-a-property.html
Author: buildbot
Date: Sun Jun 7 19:11:47 2015
New Revision: 954095
Log:
Staging update by buildbot for isis
Modified:
websites/staging/isis/trunk/cgi-bin/ (props changed)
websites/staging/isis/trunk/content/ (props changed)
websites/staging/isis/trunk/content/how-tos/how-to-02-100-How-to-validate-user-input-for-a-property.html
Propchange: websites/staging/isis/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jun 7 19:11:47 2015
@@ -1 +1 @@
-1679942
+1684063
Propchange: websites/staging/isis/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jun 7 19:11:47 2015
@@ -1 +1 @@
-1679942
+1684063
Modified: websites/staging/isis/trunk/content/how-tos/how-to-02-100-How-to-validate-user-input-for-a-property.html
==============================================================================
--- websites/staging/isis/trunk/content/how-tos/how-to-02-100-How-to-validate-user-input-for-a-property.html (original)
+++ websites/staging/isis/trunk/content/how-tos/how-to-02-100-How-to-validate-user-input-for-a-property.html Sun Jun 7 19:11:47 2015
@@ -644,8 +644,8 @@ responsible for providing this feedback
<pre><code>public class Exam {
public int getMark() { ... }
public void setMark(int mark) { ... }
- public validateMark(int mark) {
- return !withinRange(mark)? "Mark must be in range 0 to 30":null;
+ public String validateMark(int mark) {
+ return !withinRange(mark)? "Mark must be in range 0 to 30": null;
}
private boolean withinRange(int mark) { return mark >= 0 && mark <= 30; }
}