From commits-return-4444-apmail-jmeter-commits-archive=jmeter.apache.org@jmeter.apache.org Sat Dec 12 12:11:19 2015 Return-Path: X-Original-To: apmail-jmeter-commits-archive@minotaur.apache.org Delivered-To: apmail-jmeter-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 31A3C18EAA for ; Sat, 12 Dec 2015 12:11:19 +0000 (UTC) Received: (qmail 71260 invoked by uid 500); 12 Dec 2015 12:11:19 -0000 Delivered-To: apmail-jmeter-commits-archive@jmeter.apache.org Received: (qmail 71229 invoked by uid 500); 12 Dec 2015 12:11:19 -0000 Mailing-List: contact commits-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list commits@jmeter.apache.org Received: (qmail 71218 invoked by uid 99); 12 Dec 2015 12:11:19 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Dec 2015 12:11:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 90B56CC6E4 for ; Sat, 12 Dec 2015 12:11:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.79 X-Spam-Level: * X-Spam-Status: No, score=1.79 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9l-YkZoACGbR for ; Sat, 12 Dec 2015 12:11:17 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id DFF2742A65 for ; Sat, 12 Dec 2015 12:11:16 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 15E90E0177 for ; Sat, 12 Dec 2015 12:11:15 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id E68F93A043E for ; Sat, 12 Dec 2015 12:11:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1719666 - in /jmeter/trunk/src/core/org/apache/jmeter/report: core/JsonUtil.java processor/ApdexSummaryConsumer.java processor/ApdexSummaryData.java Date: Sat, 12 Dec 2015 12:11:14 -0000 To: commits@jmeter.apache.org From: fschumacher@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151212121114.E68F93A043E@svn01-us-west.apache.org> Author: fschumacher Date: Sat Dec 12 12:11:14 2015 New Revision: 1719666 URL: http://svn.apache.org/viewvc?rev=1719666&view=rev Log: Method names should not begin with upper case. Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryData.java Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java?rev=1719666&r1=1719665&r2=1719666&view=diff ============================================================================== --- jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java (original) +++ jmeter/trunk/src/core/org/apache/jmeter/report/core/JsonUtil.java Sat Dec 12 12:11:14 2015 @@ -47,7 +47,7 @@ public final class JsonUtil { * @return the string */ public static String toJsonObject(Map map) { - String result = "{"; + StringBuilder result = new StringBuilder("{"); if (map != null) { String[] array = new String[map.size()]; int index = 0; Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java?rev=1719666&r1=1719665&r2=1719666&view=diff ============================================================================== --- jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java (original) +++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java Sat Dec 12 12:11:14 2015 @@ -117,10 +117,10 @@ public class ApdexSummaryConsumer extend } // Increment the total count of samples with the current name - data.IncTotalCount(); + data.incTotalCount(); // Increment the total count of samples - overallData.IncTotalCount(); + overallData.incTotalCount(); // Process only succeeded samples if (sample.getSuccess()) { @@ -129,19 +129,19 @@ public class ApdexSummaryConsumer extend // Increment the counters depending on the elapsed time. ApdexThresholdsInfo thresholdsInfo = data.getApdexThresholdInfo(); if (elapsedTime <= thresholdsInfo.getSatisfiedThreshold()) { - data.IncSatisfiedCount(); + data.incSatisfiedCount(); } else if (elapsedTime <= thresholdsInfo.getToleratedThreshold()) { - data.IncToleratedCount(); + data.incToleratedCount(); } // Increment the overall counters depending on the elapsed time. ApdexThresholdsInfo overallThresholdsInfo = overallData .getApdexThresholdInfo(); if (elapsedTime <= overallThresholdsInfo.getSatisfiedThreshold()) { - overallData.IncSatisfiedCount(); + overallData.incSatisfiedCount(); } else if (elapsedTime <= overallThresholdsInfo .getToleratedThreshold()) { - overallData.IncToleratedCount(); + overallData.incToleratedCount(); } } Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryData.java URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryData.java?rev=1719666&r1=1719665&r2=1719666&view=diff ============================================================================== --- jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryData.java (original) +++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryData.java Sat Dec 12 12:11:14 2015 @@ -96,15 +96,15 @@ public class ApdexSummaryData { apdexThresholdInfo = info; } - public void IncSatisfiedCount() { + public void incSatisfiedCount() { satisfiedCount++; } - public void IncToleratedCount() { + public void incToleratedCount() { toleratedCount++; } - public void IncTotalCount() { + public void incTotalCount() { totalCount++; } }