Skip to content

Commit

Permalink
Fixed: Remove unnecessary semicolons in Java code (OFBIZ-10936)
Browse files Browse the repository at this point in the history
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 e344340
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ public static Map<String, Object> createInvoiceFromReturn(DispatchContext dctx,
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public static Map<String, Object> exportVCard(DispatchContext dctx, Map<String,
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public final class ICalWorker {

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

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

public static final class ResponseProperties {
public final int statusCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public final class JNDIConfigUtil {
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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static Map<String, Object> sendTelecomMessage(DispatchContext ctx, Map<St
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ protected byte[] decryptValue(byte[] key, EncryptMethod encryptMethod, String en
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
Expand Down Expand Up @@ -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;
}
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public class EntitySaxReader extends DefaultHandler {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public final class Config {
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", "."));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ public void visit(ModelMenuItem modelMenuItem) throws Exception {
}
for (ModelMenuItem menuItem : modelMenuItem.getMenuItemList()) {
menuItem.accept(this);
;
}
writer.append("</menu-item>");
}
Expand Down

0 comments on commit e344340

Please sign in to comment.