mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-10 10:12:19 -06:00
chore: Minor format change
This commit is contained in:
parent
061d672774
commit
b6970fb247
@ -99,7 +99,8 @@ public class OneDev extends AbstractPlugin implements Serializable, Runnable {
|
|||||||
|
|
||||||
private volatile Thread thread;
|
private volatile Thread thread;
|
||||||
|
|
||||||
// Some are injected via provider as instantiation might encounter problem during upgrade
|
// Some are injected via provider as instantiation might encounter problem
|
||||||
|
// during upgrade
|
||||||
@Inject
|
@Inject
|
||||||
public OneDev(Provider<JettyService> jettyLauncherProvider, TaskScheduler taskScheduler,
|
public OneDev(Provider<JettyService> jettyLauncherProvider, TaskScheduler taskScheduler,
|
||||||
SessionService sessionService, Provider<ServerConfig> serverConfigProvider,
|
SessionService sessionService, Provider<ServerConfig> serverConfigProvider,
|
||||||
@ -148,7 +149,8 @@ public class OneDev extends AbstractPlugin implements Serializable, Runnable {
|
|||||||
clusterService.start();
|
clusterService.start();
|
||||||
sessionFactoryService.start();
|
sessionFactoryService.start();
|
||||||
|
|
||||||
var databasePopulated = clusterService.getHazelcastInstance().getCPSubsystem().getAtomicLong("databasePopulated");
|
var databasePopulated = clusterService.getHazelcastInstance().getCPSubsystem()
|
||||||
|
.getAtomicLong("databasePopulated");
|
||||||
// Do not use database lock as schema update will commit transaction immediately
|
// Do not use database lock as schema update will commit transaction immediately
|
||||||
// in MySQL
|
// in MySQL
|
||||||
clusterService.initWithLead(databasePopulated, () -> {
|
clusterService.initWithLead(databasePopulated, () -> {
|
||||||
@ -159,7 +161,7 @@ public class OneDev extends AbstractPlugin implements Serializable, Runnable {
|
|||||||
});
|
});
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
};
|
}
|
||||||
return 1L;
|
return 1L;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -347,8 +349,10 @@ public class OneDev extends AbstractPlugin implements Serializable, Runnable {
|
|||||||
* This method can be called from different UI threads, so we clone initStage to
|
* This method can be called from different UI threads, so we clone initStage to
|
||||||
* make it thread-safe.
|
* make it thread-safe.
|
||||||
* <p>
|
* <p>
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
* cloned initStage, or <tt>null</tt> if system initialization is completed
|
* cloned initStage, or <tt>null</tt> if system initialization is
|
||||||
|
* completed
|
||||||
*/
|
*/
|
||||||
public @Nullable InitStage getInitStage() {
|
public @Nullable InitStage getInitStage() {
|
||||||
return initStage;
|
return initStage;
|
||||||
|
|||||||
@ -1425,6 +1425,7 @@ public abstract class FormComponent<T> extends LabeledWebMarkupContainer impleme
|
|||||||
* Tag to modify
|
* Tag to modify
|
||||||
* @see org.apache.wicket.Component#onComponentTag(ComponentTag)
|
* @see org.apache.wicket.Component#onComponentTag(ComponentTag)
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
protected void onComponentTag(final ComponentTag tag)
|
protected void onComponentTag(final ComponentTag tag)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user