You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2009/09/10 15:39:34 UTC
svn commit: r813432 -
/incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/examples/cpm/sofa/TransAnnotator.java
Author: cwiklik
Date: Thu Sep 10 13:39:33 2009
New Revision: 813432
URL: http://svn.apache.org/viewvc?rev=813432&view=rev
Log:
UIMA-1560 Removed dubious use String.valueOf(value) where the value is a string constant
Modified:
incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/examples/cpm/sofa/TransAnnotator.java
Modified: incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/examples/cpm/sofa/TransAnnotator.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/examples/cpm/sofa/TransAnnotator.java?rev=813432&r1=813431&r2=813432&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/examples/cpm/sofa/TransAnnotator.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/examples/cpm/sofa/TransAnnotator.java Thu Sep 10 13:39:33 2009
@@ -115,12 +115,12 @@
private String Translate(String word) {
String lword = word.toLowerCase();
if (Arrays.equals(wThis, lword.toCharArray()))
- return String.valueOf("das");
+ return "das";
if (Arrays.equals(wBeer, lword.toCharArray()))
- return String.valueOf("bier");
+ return "bier";
if (Arrays.equals(wIs, lword.toCharArray()))
- return String.valueOf("ist");
- return String.valueOf("gut");
+ return "ist";
+ return "gut";
}
}