Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit c179b0d

Browse files
committed
Minor updates on bashscript and deprecated API on Java 9
1 parent d400d71 commit c179b0d

File tree

21 files changed

+43
-66
lines changed

21 files changed

+43
-66
lines changed

mycollab-app-community/src/main/scripts/mycollab.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# OS specific support. $var _must_ be set to either true or false.
2222

2323
export MYCOLLAB_PORT=8080
24-
export MYCOLLAB_OPTS=-noverify -server -Xms394m -Xmx768m -XX:NewSize=128m -XX:+DisableExplicitGC -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC
24+
export MYCOLLAB_OPTS="-noverify -server -Xms394m -Xmx768m -XX:NewSize=128m -XX:+DisableExplicitGC -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
2525

2626
cygwin=false
2727
darwin=false

mycollab-config/src/main/java/com/mycollab/logging/LogFilter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class LogFilter : Filter<ILoggingEvent>() {
2828

2929
override fun decide(event: ILoggingEvent): FilterReply =
3030
if (event.message.contains("Failed to execute SQL (stacktrace on DEBUG log level)")
31-
|| event.message.contains("ERROR o.j.p.CENTRAL_LOCK")) {
31+
|| event.message.contains("org.jgroups.protocols")
32+
|| event.message.contains("member is not present in the current view")) {
3233
FilterReply.DENY
3334
} else {
3435
FilterReply.NEUTRAL

mycollab-core/src/main/java/com/mycollab/core/utils/NumberUtils.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.mycollab.core.utils
1818

1919
import java.math.BigDecimal
20+
import java.math.RoundingMode
2021

2122
/**
2223
* @author MyCollab Ltd
@@ -27,7 +28,7 @@ object NumberUtils {
2728
fun roundDouble(scale: Int, value: Double?): Double =
2829
when (value) {
2930
null -> 0.0
30-
else -> BigDecimal(value.toString()).setScale(scale, BigDecimal.ROUND_HALF_UP).toDouble()
31+
else -> BigDecimal(value.toString()).setScale(scale, RoundingMode.HALF_UP).toDouble()
3132
}
3233

3334
@JvmStatic

mycollab-esb/src/main/java/com/mycollab/module/user/esb/SendVerifyUserEmailCommand.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class SendVerifyUserEmailCommand(private val deploymentMode: IDeploymentMode,
3939
@Subscribe
4040
@TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT)
4141
fun sendVerifyEmailRequest(event: SendUserEmailVerifyRequestEvent) {
42+
Thread.sleep(5000)
4243
sendConfirmEmailToUser(event.sAccountId, event.user)
4344
event.user.status = UserStatusConstants.EMAIL_VERIFIED_REQUEST
4445
userService.updateWithSession(event.user, event.user.username)
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
ALTER TABLE `m_prj_customize_view`
22
CHANGE COLUMN `displayStandup` `displayFile` BIT(1) NOT NULL ;
3-
4-
ALTER TABLE `s_live_instances`
5-
CHANGE COLUMN `installedDate` `installedDate` DATE NOT NULL ;

mycollab-services/src/main/resources/sqlMap/project/ProjectMemberMapperExt.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
<![CDATA[
221221
SELECT DISTINCT s_user.username, s_user.firstname, s_user.lastname, s_user.email,
222222
s_user.website, s_user.registeredTime, s_user_account.registerStatus,
223-
s_user_account.accountId, s_user.language, s_user.avatarid
223+
s_user_account.accountId, s_user.language, s_user.avatarid, s_user.status
224224
FROM s_user, s_user_account
225225
WHERE s_user.username=s_user_account.username AND
226226
EXISTS (SELECT 1

mycollab-web/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
<dependency>
231231
<groupId>org.vaadin</groupId>
232232
<artifactId>viritin</artifactId>
233-
<version>2.8</version>
233+
<version>2.9</version>
234234
<exclusions>
235235
<exclusion>
236236
<groupId>javax.el</groupId>

mycollab-web/src/main/java/com/mycollab/module/project/view/bug/BugEditForm.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
import com.mycollab.vaadin.web.ui.DefaultDynaFormLayout;
4040
import com.mycollab.vaadin.web.ui.WebThemes;
4141
import com.mycollab.vaadin.web.ui.field.AttachmentUploadField;
42+
import com.vaadin.event.ShortcutAction;
43+
import com.vaadin.event.ShortcutAction.KeyCode;
4244
import com.vaadin.icons.VaadinIcons;
4345
import com.vaadin.shared.ui.MarginInfo;
4446
import com.vaadin.ui.AbstractComponent;
@@ -124,7 +126,7 @@ public AbstractComponent getLayout() {
124126
}
125127
postExecution();
126128
}
127-
}).withIcon(VaadinIcons.CLIPBOARD).withStyleName(WebThemes.BUTTON_ACTION);
129+
}).withIcon(VaadinIcons.CLIPBOARD).withStyleName(WebThemes.BUTTON_ACTION).withClickShortcut(KeyCode.ENTER);
128130

129131
MButton cancelBtn = new MButton(UserUIContext.getMessage(GenericI18Enum.BUTTON_CANCEL), clickEvent -> postExecution())
130132
.withStyleName(WebThemes.BUTTON_OPTION);

mycollab-web/src/main/java/com/mycollab/module/project/view/bug/LinkIssueWindow.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import com.mycollab.form.view.LayoutType;
2222
import com.mycollab.module.project.event.BugEvent;
2323
import com.mycollab.module.project.i18n.BugI18nEnum;
24-
import com.mycollab.module.project.i18n.OptionI18nEnum;
24+
import com.mycollab.module.project.i18n.OptionI18nEnum.BugRelation;
2525
import com.mycollab.module.tracker.domain.RelatedBug;
2626
import com.mycollab.module.tracker.domain.SimpleBug;
2727
import com.mycollab.module.tracker.service.BugRelationService;
@@ -64,7 +64,7 @@ class LinkIssueWindow extends MWindow {
6464
editForm = new RelatedBugEditForm();
6565
relatedBug = new RelatedBug();
6666
relatedBug.setBugid(bug.getId());
67-
relatedBug.setRelatetype(OptionI18nEnum.BugRelation.Duplicated.name());
67+
relatedBug.setRelatetype(BugRelation.Duplicated.name());
6868
editForm.setBean(relatedBug);
6969
contentLayout.add(editForm);
7070

@@ -138,8 +138,8 @@ private class EditFormFieldFactory extends AbstractBeanFieldGroupEditFieldFactor
138138
@Override
139139
protected HasValue<?> onCreateField(Object propertyId) {
140140
if (RelatedBug.Field.relatetype.equalTo(propertyId)) {
141-
I18nValueComboBox<OptionI18nEnum.BugRelation> relationSelection = new I18nValueComboBox<>(OptionI18nEnum.BugRelation.class,
142-
OptionI18nEnum.BugRelation.Block, OptionI18nEnum.BugRelation.Duplicated, OptionI18nEnum.BugRelation.Related);
141+
I18nValueComboBox<BugRelation> relationSelection = new I18nValueComboBox<>(BugRelation.class,
142+
BugRelation.Block, BugRelation.Duplicated, BugRelation.Related);
143143
relationSelection.setWidth(WebThemes.FORM_CONTROL_WIDTH);
144144
return relationSelection;
145145
} else if (RelatedBug.Field.relatedid.equalTo(propertyId)) {

mycollab-web/src/main/java/com/mycollab/module/project/view/milestone/MilestoneListViewImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,8 @@ private Component buildHeader() {
119119
HeaderWithIcon headerText = ComponentUtils.headerH2(ProjectTypeConstants.MILESTONE,
120120
UserUIContext.getMessage(MilestoneI18nEnum.LIST));
121121

122-
MHorizontalLayout header = new MHorizontalLayout(headerText, createHeaderRight()).withMargin(true)
122+
return new MHorizontalLayout(headerText, createHeaderRight()).withMargin(true)
123123
.withAlign(headerText, Alignment.MIDDLE_LEFT).expand(headerText);
124-
125-
return header;
126124
}
127125

128126
private HorizontalLayout createHeaderRight() {

0 commit comments

Comments
 (0)