You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2016/01/01 09:28:13 UTC
groovy git commit: remove comments which do not contain any useful
information
Repository: groovy
Updated Branches:
refs/heads/GROOVY_2_4_X 8488d4aec -> 32d35a159
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/32d35a15
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/32d35a15
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/32d35a15
Branch: refs/heads/GROOVY_2_4_X
Commit: 32d35a1592ac6751d0dbfc8494f9164a5a8db2e3
Parents: 8488d4a
Author: pascalschumacher <pa...@gmx.net>
Authored: Fri Jan 1 09:27:56 2016 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Fri Jan 1 09:27:56 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/32d35a15/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);
}
}