"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/test/org/codehaus/groovy/runtime/m12n/TestStringExtension.java" between
apache-groovy-src-3.0.8.zip and apache-groovy-src-3.0.9.zip

About: Groovy is an agile dynamic (scripting) language for the Java Platform. It has features similar to those of Python, Ruby, Perl, and Smalltalk. Source release.

TestStringExtension.java  (apache-groovy-src-3.0.8):TestStringExtension.java  (apache-groovy-src-3.0.9)
skipping to change at line 22 skipping to change at line 22
* Unless required by applicable law or agreed to in writing, * Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an * software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the * KIND, either express or implied. See the License for the
* specific language governing permissions and limitations * specific language governing permissions and limitations
* under the License. * under the License.
*/ */
package org.codehaus.groovy.runtime.m12n; package org.codehaus.groovy.runtime.m12n;
public class TestStringExtension { public class TestStringExtension {
public static String reverseToUpperCase(String self) { public static String reverseToUpperCase(String self) {
StringBuilder sb = new StringBuilder(self.toUpperCase()); return new StringBuilder(self.toUpperCase()).reverse().toString();
return sb.reverse().toString(); }
public static String getString(java.util.List<String> self) {
return self.get(0);
}
public static <CS extends CharSequence> CharSequence getSequence(java.util.L
ist<CS> self) {
return self.get(0);
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)