From cc66a80d3e0eb4885a1c160efecdd46227d74ddf Mon Sep 17 00:00:00 2001 From: srowen Date: Wed, 7 Nov 2007 06:39:29 +0000 Subject: [PATCH] More javadoc git-svn-id: https://zxing.googlecode.com/svn/trunk@12 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- core/src/com/google/zxing/common/BlackPointEstimator.java | 6 ++---- core/src/com/google/zxing/common/Collections.java | 5 ++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/src/com/google/zxing/common/BlackPointEstimator.java b/core/src/com/google/zxing/common/BlackPointEstimator.java index 62a38f11d..ee3b96cab 100644 --- a/core/src/com/google/zxing/common/BlackPointEstimator.java +++ b/core/src/com/google/zxing/common/BlackPointEstimator.java @@ -58,8 +58,7 @@ public final class BlackPointEstimator { int secondPeakScore = 0; for (int i = 0; i < numBuckets; i++) { int distanceToBiggest = i - firstPeak; - // Encourage more distant second peaks by multiplying by square - // of distance + // Encourage more distant second peaks by multiplying by square of distance int score = luminanceBuckets[i] * distanceToBiggest * distanceToBiggest; if (score > secondPeakScore) { secondPeak = i; @@ -79,8 +78,7 @@ public final class BlackPointEstimator { int bestValleyScore = 0; for (int i = firstPeak + 1; i < secondPeak; i++) { // Encourage low valleys near the mid point between peaks - int score = (firstPeakSize - luminanceBuckets[i]) * - (i - firstPeak) * (secondPeak - i); + int score = (firstPeakSize - luminanceBuckets[i]) * (i - firstPeak) * (secondPeak - i); if (score > bestValleyScore) { bestValley = i; bestValleyScore = score; diff --git a/core/src/com/google/zxing/common/Collections.java b/core/src/com/google/zxing/common/Collections.java index fc927f576..f24e39b6a 100644 --- a/core/src/com/google/zxing/common/Collections.java +++ b/core/src/com/google/zxing/common/Collections.java @@ -19,7 +19,10 @@ package com.google.zxing.common; import java.util.Vector; /** - * This is basically a substitute for java.util.Collections. + *

This is basically a substitute for java.util.Collections, which is not + * present in MIDP 2.0 / CLDC 1.1.

+ * + * @author srowen@google.com (Sean Owen) */ public final class Collections {