Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/builder/src/main/java/org/jboss/builder/Constraint.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
/**
*/
enum Constraint {
REAL, ORDER_ONLY,
REAL,
ORDER_ONLY,
;
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public Level getLevel() {
}

public enum Level {
ERROR("error"), WARN("warning"), NOTE("note"),
ERROR("error"),
WARN("warning"),
NOTE("note"),
;

private final String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
public class OutcomeProviderDescription<C> {

static final int PROCESSING = 0b00001;
static final int PROCESSED = 0b00010;
static final int PROCESSED = 0b00010;

protected final int id;
protected final OutcomeProvider<C> provider;
Expand All @@ -41,7 +41,7 @@ protected OutcomeProviderDescription(int id, OutcomeProvider<C> provider) {
}

protected void addProvidedType(Class<?> providedType) {
if(providedTypes.isEmpty()) {
if (providedTypes.isEmpty()) {
providedTypes = new ArrayList<>(1);
}
providedTypes.add(providedType);
Expand All @@ -52,15 +52,15 @@ boolean isFlagOn(int flag) {
}

boolean setFlag(int flag) {
if((flags & flag) > 0) {
if ((flags & flag) > 0) {
return false;
}
flags ^= flag;
return true;
}

void clearFlag(int flag) {
if((flags & flag) > 0) {
if ((flags & flag) > 0) {
flags ^= flag;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
*/
public enum DependenciesOrigin {

APPLICATION("application"), LAST_UPDATE("last-update"), UNKNOWN(null);
APPLICATION("application"),
LAST_UPDATE("last-update"),
UNKNOWN(null);

private final String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
*/
public enum VersionUpdate {

LATEST("latest"), NEXT("next"), NONE("none"), UNKNOWN(null);
LATEST("latest"),
NEXT("next"),
NONE("none"),
UNKNOWN(null);

private final String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
*/
public enum VersionUpdateNumber {

MAJOR("major"), MINOR("minor"), MICRO("micro"), UNKNOWN(null);
MAJOR("major"),
MINOR("minor"),
MICRO("micro"),
UNKNOWN(null);

private final String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ public class ThreadPoolSetup {
@Record(value = ExecutionTime.RUNTIME_INIT, optional = true)
public ExecutorBuildItem createExecutor(ExecutorTemplate setupTemplate, ShutdownContextBuildItem shutdownContextBuildItem) {
return new ExecutorBuildItem(setupTemplate.setupRunTime(shutdownContextBuildItem,
// build time default config constants - static method calls are not proxied
ExecutorTemplate.getIntConfigVal(ExecutorTemplate.CORE_POOL_SIZE,-1),ExecutorTemplate.getIntConfigVal(ExecutorTemplate.MAX_POOL_SIZE,-1),ExecutorTemplate.getIntConfigVal(ExecutorTemplate.QUEUE_SIZE,Integer.MAX_VALUE),ExecutorTemplate.getFloatConfigVal(ExecutorTemplate.GROWTH_RESISTANCE,0f),ExecutorTemplate.getIntConfigVal(ExecutorTemplate.KEEP_ALIVE_MILLIS,60_000)));
// build time default config constants - static method calls are not proxied
ExecutorTemplate.getIntConfigVal(ExecutorTemplate.CORE_POOL_SIZE, -1),
ExecutorTemplate.getIntConfigVal(ExecutorTemplate.MAX_POOL_SIZE, -1),
ExecutorTemplate.getIntConfigVal(ExecutorTemplate.QUEUE_SIZE, Integer.MAX_VALUE),
ExecutorTemplate.getFloatConfigVal(ExecutorTemplate.GROWTH_RESISTANCE, 0f),
ExecutorTemplate.getIntConfigVal(ExecutorTemplate.KEEP_ALIVE_MILLIS, 60_000)));
}

@BuildStep
Expand Down
6 changes: 3 additions & 3 deletions core/runtime/src/main/java/io/quarkus/runtime/Timing.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public static void printStopTime() {
}

public static BigDecimal convertToBigDecimalSeconds(final long timeNanoSeconds) {
final BigDecimal secondsRepresentation=BigDecimal.valueOf(timeNanoSeconds) // As nanoseconds
.divide(BigDecimal.valueOf(1_000_000),BigDecimal.ROUND_HALF_UP) // Convert to milliseconds, discard remaining digits while rounding
.divide(BigDecimal.valueOf(1_000),3,BigDecimal.ROUND_HALF_UP); // Convert to seconds, while preserving 3 digits
final BigDecimal secondsRepresentation = BigDecimal.valueOf(timeNanoSeconds) // As nanoseconds
.divide(BigDecimal.valueOf(1_000_000), BigDecimal.ROUND_HALF_UP) // Convert to milliseconds, discard remaining digits while rounding
.divide(BigDecimal.valueOf(1_000), 3, BigDecimal.ROUND_HALF_UP); // Convert to seconds, while preserving 3 digits
return secondsRepresentation;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ private void addToClassPaths(StringBuilder classPathManifest, StringBuilder clas
* Enum to classify the os.name system property
*/
static enum OS {
WINDOWS, LINUX, MAC, OTHER;
WINDOWS,
LINUX,
MAC,
OTHER;

private String version;

Expand Down
5 changes: 4 additions & 1 deletion devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,10 @@ private void addToClassPaths(StringBuilder classPathManifest, StringBuilder clas
* Enum to classify the os.name system property
*/
static enum OS {
WINDOWS, LINUX, MAC, OTHER;
WINDOWS,
LINUX,
MAC,
OTHER;

private String version;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public DispatcherType getDispatcher() {
}

public enum MappingType {
URL, SERVLET;
URL,
SERVLET;
}

}
Expand Down
Loading