Skip to content
Permalink
Browse files

Fixed: Remove unnecessary semicolons in Java code (OFBIZ-10936)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857904 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Apr 21, 2019
1 parent 9f5802e commit e34434000b312648f6d453b60b749be7a0bac1c1
@@ -2076,7 +2076,7 @@ private static String getInvoiceItemType(Delegator delegator, String key1, Strin
String invoiceId = (String) serviceResults.get("invoiceId");

// keep track of the invoice total vs the promised return total (how much the customer promised to return)
BigDecimal invoiceTotal = BigDecimal.ZERO;;
BigDecimal invoiceTotal = BigDecimal.ZERO;
BigDecimal promisedTotal = BigDecimal.ZERO;

// loop through shipment receipts to create invoice items and return item billings for each item and adjustment
@@ -162,7 +162,7 @@ public void close() throws IOException {
templateRoot.put("context", templateCtx);
if (Debug.verboseOn()) {
for (Entry<String, Object> ky : templateCtx.entrySet()) {
Object val = ky.getValue();;
Object val = ky.getValue();
Debug.logVerbose("context key: " + ky + " val: " + val, module);
}
}
@@ -264,7 +264,7 @@
if (countryGeo != null) {
String country = postalAddress.getRelatedOne("CountryGeo", false).getString("geoName");
address.setCountry(country);
address.getTypes().add(AddressType.WORK);;
address.getTypes().add(AddressType.WORK);
//TODO : this can be better set by checking contactMechPurposeTypeId
}
vcard.addAddress(address);
@@ -61,7 +61,7 @@

public static final String module = ICalWorker.class.getName();

private ICalWorker() {};
private ICalWorker() {}

public static final class ResponseProperties {
public final int statusCode;
@@ -33,7 +33,7 @@
public static final String module = JNDIConfigUtil.class.getName();
private static final String JNDI_CONFIG_XML_FILENAME = "jndiservers.xml";
private static final ConcurrentHashMap<String, JndiServerInfo> jndiServerInfos = new ConcurrentHashMap<>();
private JNDIConfigUtil() {};
private JNDIConfigUtil() {}

private static Element getXmlRootElement() throws GenericConfigException {
try {
@@ -51,7 +51,7 @@
String telecomMsgTypeEnumId = (String) context.get("telecomMsgTypeEnumId");
String telecomMethodTypeId = (String) context.get("telecomMethodTypeId");
String telecomGatewayConfigId = (String) context.get("telecomGatewayConfigId");
List<String> numbers = checkList(context.get("numbers"), String.class);;
List<String> numbers = checkList(context.get("numbers"), String.class);
String message = (String) context.get("message");

String telecomEnabled = EntityUtilProperties.getPropertyValue("general", "telecom.notifications.enabled", delegator);
@@ -325,7 +325,7 @@ protected String encodeKey(byte[] key) {
protected String encryptValue(EncryptMethod encryptMethod, byte[] key, byte[] objBytes) throws GeneralException {
return StringUtil.toHexString(DesCrypt.encrypt(DesCrypt.getDesKey(key), objBytes));
}
};
}

protected static final StorageHandler OldFunnyHashStorageHandler = new LegacyStorageHandler() {
@Override
@@ -432,5 +432,5 @@ protected String encryptValue(EncryptMethod encryptMethod, byte[] key, byte[] ob
String result = Base64.encodeBase64String(DesCrypt.encrypt(DesCrypt.getDesKey(key), allBytes));
return result;
}
};
}
}
@@ -97,7 +97,7 @@
private boolean createDummyFks = false;
private boolean checkDataOnly = false;
private boolean continueOnFail = false;
private enum Action {CREATE, CREATE_UPDATE, CREATE_REPLACE, DELETE};
private enum Action {CREATE, CREATE_UPDATE, CREATE_REPLACE, DELETE}
private List<String> actionTags = UtilMisc.toList("create", "create-update", "create-replace", "delete");
private Action currentAction = Action.CREATE_UPDATE;
private List<Object> messageList = null;
@@ -29,7 +29,7 @@
*/
public interface Job extends Runnable {

public static enum State {CREATED, QUEUED, RUNNING, FINISHED, FAILED};
public static enum State {CREATED, QUEUED, RUNNING, FINISHED, FAILED}

/**
* Returns the current state of this job.
@@ -49,7 +49,7 @@
Config(List<StartupCommand> ofbizCommands) throws StartupException {

// fetch OFBiz Properties object
Properties props = getPropertiesFile(ofbizCommands);;
Properties props = getPropertiesFile(ofbizCommands);

// set this class fields
ofbizHome = getOfbizHome(getProperty(props, "ofbiz.home", "."));
@@ -228,7 +228,7 @@ public int updateLabelValue(List<String> localeNames, List<String> localeValues,
label = new LabelInfo(key, keyComment, fileName, localeName, localeValue, localeComment);
labels.put(key + keySeparator + fileName, label);
} catch (Exception e) {
Debug.logError(e, module);;
Debug.logError(e, module);
}
} else {
label.setLabelKeyComment(keyComment);
@@ -138,7 +138,6 @@ public void visit(ModelMenuCondition modelMenuCondition) throws Exception {
visitAttribute("disabled-style", modelMenuCondition.getFailStyleExdr());
writer.append("/>");
modelMenuCondition.getCondition().accept(this);
;
writer.append("</condition>");
}

@@ -339,7 +339,6 @@ public void visit(ModelMenuItem modelMenuItem) throws Exception {
}
for (ModelMenuItem menuItem : modelMenuItem.getMenuItemList()) {
menuItem.accept(this);
;
}
writer.append("</menu-item>");
}

0 comments on commit e344340

Please sign in to comment.
You can’t perform that action at this time.