From: Juergen H. <jho...@us...> - 2008-11-27 18:04:42
|
Update of /cvsroot/springframework/spring/mock/org/springframework/test/jdbc In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4919/mock/org/springframework/test/jdbc Modified Files: JdbcTestUtils.java Log Message: polishing Index: JdbcTestUtils.java =================================================================== RCS file: /cvsroot/springframework/spring/mock/org/springframework/test/jdbc/JdbcTestUtils.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JdbcTestUtils.java 22 Apr 2008 16:46:49 -0000 1.3 --- JdbcTestUtils.java 27 Nov 2008 18:04:36 -0000 1.4 *************** *** 1,4 **** /* ! * Copyright 2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); --- 1,4 ---- /* ! * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); *************** *** 34,38 **** /** * Read a script from the LineNumberReaded and build a String containing the lines. - * * @param lineNumberReader the <code>LineNumberReader</> containing the script to be processed * @return <code>String</code> containing the script lines --- 34,37 ---- *************** *** 63,70 **** boolean inLiteral = false; char[] content = script.toCharArray(); - for (int i = 0; i < script.length(); i++) { if (content[i] == '\'') { ! inLiteral = inLiteral ? false : true; } if (content[i] == delim && !inLiteral) { --- 62,68 ---- boolean inLiteral = false; char[] content = script.toCharArray(); for (int i = 0; i < script.length(); i++) { if (content[i] == '\'') { ! inLiteral = !inLiteral; } if (content[i] == delim && !inLiteral) { *************** *** 86,93 **** boolean inLiteral = false; char[] content = script.toCharArray(); - for (int i = 0; i < script.length(); i++) { if (content[i] == '\'') { ! inLiteral = inLiteral ? false : true; } if (content[i] == delim && !inLiteral) { --- 84,90 ---- boolean inLiteral = false; char[] content = script.toCharArray(); for (int i = 0; i < script.length(); i++) { if (content[i] == '\'') { ! inLiteral = !inLiteral; } if (content[i] == delim && !inLiteral) { |