In order to improve readability (Why readability matters) here are some code style guidelines for the JMeter project.
We now enforce many of these rules, and more using checkstyle.
UrlConfigGui.java
which do you find easier to read?
element.setProperty(HTTPSamplerBase.BROWSER_COMPATIBLE_MULTIPART, useBrowserCompatibleMultipartMode.isSelected(),HTTPSamplerBase.BROWSER_COMPATIBLE_MULTIPART_MODE_DEFAULT); |
or
element.setProperty( HTTPSamplerBase.BROWSER_COMPATIBLE_MULTIPART, useBrowserCompatibleMultipartMode.isSelected(), HTTPSamplerBase.BROWSER_COMPATIBLE_MULTIPART_MODE_DEFAULT); |
if (x | y) {
while (true) {
methodCall(arg1, arg2) {
String s = "con" + "cat";
if
, else
, for
, do
and while
statements, even if the body is empty or only a single statement .*
) imports