File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,8 @@ component singleton {
294
294
*/
295
295
string function validateTime ( required string time ){
296
296
if ( ! reFind ( " ^([0-1][0-9]|[2][0-3])\:[0-5][0-9]$" , arguments .time ) ) {
297
- if ( arguments .time .toString ().findOneOf ( " :" ) > 0 ) {
297
+
298
+ if ( findOneOf ( arguments .time .toString (), " :" ) > 0 ) {
298
299
throw (
299
300
message = " Invalid time representation (#arguments .time #). Time is represented in 24 hour minute format => HH:mm" ,
300
301
type = " InvalidTimeException"
Original file line number Diff line number Diff line change
1
+ /**
2
+ * We use this class for testing serializations
3
+ */
4
+ component accessors = " true" {
5
+
6
+ property String name ;
7
+ property String surname ;
8
+ property numeric age ;
9
+ property Date createdDate ;
10
+ property Date modifiedDate ;
11
+ property boolean isActive ;
12
+ property test ;
13
+ property system ;
14
+
15
+ function init (){
16
+ variables .name = " John" ;
17
+ variables .surname = " Doe" ;
18
+ variables .age = 30 ;
19
+ variables .createdDate = now ();
20
+ variables .modifiedDate = now ();
21
+ variables .isActive = true ;
22
+ variables .test = new User ();
23
+
24
+ variables .system = createObject ( " java" , " java.lang.System" );
25
+
26
+ return this ;
27
+ }
28
+
29
+ }
Original file line number Diff line number Diff line change 1
1
<cfscript >
2
- test = new Test ();
3
-
4
- writeDump ( var = getMetadata ( test ), top = 5 );
2
+ writedump ( cgi )
5
3
</cfscript >
You can’t perform that action at this time.
0 commit comments