Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into #1866_ColoredBookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
wladimirleite committed Sep 16, 2023
2 parents 16b4527 + ba118c1 commit 143a3ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,19 +435,9 @@ public void startDocument() throws SAXException {
out.setTimeZone(TimeZone.getTimeZone("GMT")); //$NON-NLS-1$
}

private DateFormat lastDateFormat = null;

private Date parseDate(String value) throws ParseException {
if (lastDateFormat != null) {
try {
return lastDateFormat.parse(value);
} catch (ParseException e) {
// ignore
}
}
for (DateFormat df : dfs) {
try {
lastDateFormat = df;
return df.parse(value);
} catch (ParseException e) {
// ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ public class WAContact {
private boolean deleted = false;

public WAContact(String id) {
if (id != null && id.contains("@")) { //$NON-NLS-1$
String[] id_split = id.split("@"); //$NON-NLS-1$
this.id = id_split[0];
this.suffix = id_split[1];
if (id != null) {
String[] idSplit = id.split("@", 2);
this.id = idSplit[0].trim();
this.suffix = idSplit.length > 1 ? idSplit[1].trim() : "";
} else {
this.id = id;
this.suffix = ""; //$NON-NLS-1$
this.id = this.suffix = "";
}
}

Expand Down

0 comments on commit 143a3ac

Please sign in to comment.