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<String, String> 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++;
}
}
|