chore: Minor format change

This commit is contained in:
Robin Shen 2025-11-21 14:51:53 +08:00
parent 061d672774
commit b6970fb247
2 changed files with 69 additions and 64 deletions

View File

@ -99,7 +99,8 @@ public class OneDev extends AbstractPlugin implements Serializable, Runnable {
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
public OneDev(Provider<JettyService> jettyLauncherProvider, TaskScheduler taskScheduler,
SessionService sessionService, Provider<ServerConfig> serverConfigProvider,
@ -148,7 +149,8 @@ public class OneDev extends AbstractPlugin implements Serializable, Runnable {
clusterService.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
// in MySQL
clusterService.initWithLead(databasePopulated, () -> {
@ -159,7 +161,7 @@ public class OneDev extends AbstractPlugin implements Serializable, Runnable {
});
} catch (SQLException e) {
throw new RuntimeException(e);
};
}
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
* make it thread-safe.
* <p>
*
* @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() {
return initStage;

View File

@ -1425,6 +1425,7 @@ public abstract class FormComponent<T> extends LabeledWebMarkupContainer impleme
* Tag to modify
* @see org.apache.wicket.Component#onComponentTag(ComponentTag)
*/
@SuppressWarnings("deprecation")
@Override
protected void onComponentTag(final ComponentTag tag)
{