Skip to content

Instantly share code, notes, and snippets.

View michalszynkiewicz's full-sized avatar

Michał Szynkiewicz michalszynkiewicz

View GitHub Profile
a.dependencies = [b,c,d]
b.dependencies = [d, e]
e.dependencies = [f]
// based on ^
a.transitiveDependencies() == [b,c,d,e,f]
11:22:12,332 ERROR [io.qua.dev.DevModeMain] Failed to start quarkus: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at io.quarkus.runner.RuntimeRunner.run(RuntimeRunner.java:134)
at io.quarkus.dev.DevModeMain.doStart(DevModeMain.java:180)
at io.quarkus.dev.DevModeMain.start(DevModeMain.java:94)
at io.quarkus.dev.DevModeMain.main(DevModeMain.java:66)
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1336)
at io.vertx.core.http.impl.HttpServerRequestImpl.handleEnd(HttpServerRequestImpl.java:509)
at io.vertx.core.http.impl.Http1xServerConnection.handleEnd(Http1xServerConnection.java:175)
at io.vertx.core.http.impl.Http1xServerConnection.handleContent(Http1xServerConnection.java:162)
at io.vertx.core.http.impl.Http1xServerConnection.handleMessage(Http1xServerConnection.java:139)
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369)
at io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:43)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:232)
at io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:173)
package io.quarkus.arc.processor;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.jboss.jandex.DotName;
import org.jboss.jandex.MethodInfo;
import org.jboss.jandex.Type;
classloader.currentLoadedClass.count.displayName: Current Loaded Class Count
classloader.currentLoadedClass.count.type: counter
classloader.currentLoadedClass.count.unit: none
classloader.currentLoadedClass.count.description: Displays the number of classes that are currently loaded in the Java virtual machine.
classloader.currentLoadedClass.count.mbean: java.lang:type=ClassLoading/LoadedClassCount
classloader.totalLoadedClass.count.displayName: Total Loaded Class Count
classloader.totalLoadedClass.count.type: counter
classloader.totalLoadedClass.count.unit: none
classloader.totalLoadedClass.count.description: Displays the total number of classes that have been loaded since the Java virtual machine has started execution.
classloader.totalLoadedClass.count.mbean: java.lang:type=ClassLoading/TotalLoadedClassCount
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
#include <stdio.h>
int findMinPos(int arr[], int length) {
int i, min = 1000000000, minPos;
for (i = 0; i<length; i++) {
if (min > arr[i]) {
min = arr[i];
minPos = i;
}
}