Return-Path: X-Original-To: apmail-groovy-commits-archive@minotaur.apache.org Delivered-To: apmail-groovy-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60CE7180F5 for ; Fri, 1 Jan 2016 08:28:50 +0000 (UTC) Received: (qmail 1593 invoked by uid 500); 1 Jan 2016 08:28:50 -0000 Delivered-To: apmail-groovy-commits-archive@groovy.apache.org Received: (qmail 1561 invoked by uid 500); 1 Jan 2016 08:28:50 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 1551 invoked by uid 99); 1 Jan 2016 08:28:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jan 2016 08:28:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 18C5BDFF08; Fri, 1 Jan 2016 08:28:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: pascalschumacher@apache.org To: commits@groovy.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: groovy git commit: remove comments which do not contain any useful information Date: Fri, 1 Jan 2016 08:28:50 +0000 (UTC) Repository: groovy Updated Branches: refs/heads/master 08ceaef4b -> c6c709795 remove comments which do not contain any useful information Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/c6c70979 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/c6c70979 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/c6c70979 Branch: refs/heads/master Commit: c6c709795cc47b87ac6f2705c23731e2521c2dca Parents: 08ceaef Author: pascalschumacher Authored: Fri Jan 1 09:27:56 2016 +0100 Committer: pascalschumacher Committed: Fri Jan 1 09:28:36 2016 +0100 ---------------------------------------------------------------------- .../groovy/json/internal/FastStringUtils.java | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/c6c70979/subprojects/groovy-json/src/main/java/groovy/json/internal/FastStringUtils.java ---------------------------------------------------------------------- diff --git a/subprojects/groovy-json/src/main/java/groovy/json/internal/FastStringUtils.java b/subprojects/groovy-json/src/main/java/groovy/json/internal/FastStringUtils.java index f43c0ff..d0243a5 100644 --- a/subprojects/groovy-json/src/main/java/groovy/json/internal/FastStringUtils.java +++ b/subprojects/groovy-json/src/main/java/groovy/json/internal/FastStringUtils.java @@ -24,7 +24,7 @@ import java.lang.reflect.Field; /** * @author Rick Hightower - * @author Stephane Landelle (creator of Gatling and JSONPath and first Boon JSON parser adopter.) + * @author Stephane Landelle */ public class FastStringUtils { @@ -37,9 +37,6 @@ public class FastStringUtils { private static final boolean WRITE_TO_FINAL_FIELDS = Boolean.parseBoolean(System.getProperty("groovy.json.faststringutils.write.to.final.fields", "false")); private static final boolean DISABLE = Boolean.parseBoolean(System.getProperty("groovy.json.faststringutils.disable", "false")); - /** - * @return Unsafe - */ private static Unsafe loadUnsafe() { try { Field unsafeField = Unsafe.class.getDeclaredField("theUnsafe"); @@ -56,10 +53,6 @@ public class FastStringUtils { ENABLED = UNSAFE != null; } - /** - * @param fieldName name of field - * @return offset - */ private static long getFieldOffset(String fieldName) { if (ENABLED) { try { @@ -77,9 +70,6 @@ public class FastStringUtils { STRING_COUNT_FIELD_OFFSET = getFieldOffset("count"); } - /** - * @author Stéphane Landelle - */ protected enum StringImplementation { /** * JDK 7 drops offset and count so there is special handling for later version of JDK 7. @@ -149,9 +139,6 @@ public class FastStringUtils { public static StringImplementation STRING_IMPLEMENTATION = computeStringImplementation(); - /** - * @return correct string implementation - */ private static StringImplementation computeStringImplementation() { if (STRING_VALUE_FIELD_OFFSET != -1L) { if (STRING_OFFSET_FIELD_OFFSET != -1L && STRING_COUNT_FIELD_OFFSET != -1L) { @@ -200,11 +187,6 @@ public class FastStringUtils { * @return new string with chars copied into it */ public static String noCopyStringFromChars(final char[] chars) { - /* - J'ai écrit JSON parser du Boon. Sans Stéphane, l'analyseur n'existerait pas. Stéphane est la muse de Boon JSON, - et mon entraîneur pour l'open source, github, et plus encore. Stéphane n'est pas le créateur directe, mais il - est le maître architecte et je l'appelle mon ami. It is Step-eff-on not Stef-fa-nee.. Ok? - */ return STRING_IMPLEMENTATION.noCopyStringFromChars(chars); } }