You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2015/10/04 16:49:36 UTC

[11/14] incubator-freemarker git commit: Fixed accidental use of Java 6 API.

Fixed accidental use of Java 6 API.


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/14fab44f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/14fab44f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/14fab44f

Branch: refs/heads/master
Commit: 14fab44fe1a20bee814c086f110ec01e97bcbefc
Parents: dd54594
Author: ddekany <dd...@apache.org>
Authored: Sun Oct 4 16:32:06 2015 +0200
Committer: ddekany <dd...@apache.org>
Committed: Sun Oct 4 16:32:06 2015 +0200

----------------------------------------------------------------------
 src/main/javacc/FTL.jj | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/14fab44f/src/main/javacc/FTL.jj
----------------------------------------------------------------------
diff --git a/src/main/javacc/FTL.jj b/src/main/javacc/FTL.jj
index 34f737b..a10552f 100644
--- a/src/main/javacc/FTL.jj
+++ b/src/main/javacc/FTL.jj
@@ -4227,7 +4227,7 @@ List<Object> StaticTextAndInterpolations() :
 	    )
 	    {
 	       String s = t.image;
-	       if (!s.isEmpty()) {
+	       if (s.length() != 0) {
 	           if (staticTextCollector == null) {
 	               staticTextCollector = new StringBuilder(t.image);
 	           } else {