Open algomaster99 opened 1 week ago
Reason
@@ -2,14 +2,22 @@
package org.apache.isis.schema.common.v2;
import javax.xml.bind.annotation.XmlRegistry;
@XmlRegistry
public class ObjectFactory
{
+ public OidsDto createOidsDto() {
+ return new OidsDto();
+ }
+
+ public PeriodDto createPeriodDto() {
+ return new PeriodDto();
+ }
+
public ValueDto createValueDto() {
return new ValueDto();
}
public TypedTupleDto createTypedTupleDto() {
return new TypedTupleDto();
}
@@ -26,26 +34,18 @@
return new BlobDto();
}
public ClobDto createClobDto() {
return new ClobDto();
}
- public OidsDto createOidsDto() {
- return new OidsDto();
- }
-
public EnumDto createEnumDto() {
return new EnumDto();
}
- public PeriodDto createPeriodDto() {
- return new PeriodDto();
- }
-
public DifferenceDto createDifferenceDto() {
return new DifferenceDto();
}
public ValueWithTypeDto createValueWithTypeDto() {
return new ValueWithTypeDto();
}
Different versions of logging library commons-logging-1.1.1.jar
and commons-logging-1.1.jar
.
Reasons
@@ -1,18 +1,16 @@
package org.apache.commons.logging.impl;
-import java.net.URL;
-import java.security.PrivilegedAction;
-import java.security.AccessController;
import java.lang.reflect.InvocationTargetException;
-import org.apache.commons.logging.LogConfigurationException;
-import org.apache.commons.logging.Log;
import java.util.Enumeration;
import java.util.Vector;
+import java.net.URL;
+import org.apache.commons.logging.LogConfigurationException;
+import org.apache.commons.logging.Log;
import java.lang.reflect.Method;
import java.lang.reflect.Constructor;
import java.util.Hashtable;
import org.apache.commons.logging.LogFactory;
public class LogFactoryImpl extends LogFactory
{
@@ -36,268 +34,134 @@
protected Constructor logConstructor;
protected Class[] logConstructorSignature;
protected Method logMethod;
protected Class[] logMethodSignature;
private boolean allowFlawedContext;
private boolean allowFlawedDiscovery;
private boolean allowFlawedHierarchy;
+ static /* synthetic */ Class class$java$lang$String;
+ static /* synthetic */ Class class$org$apache$commons$logging$LogFactory;
+ static /* synthetic */ Class class$org$apache$commons$logging$impl$LogFactoryImpl;
+ static /* synthetic */ Class class$org$apache$commons$logging$Log;
+
+ static {
+ PKG_LEN = "org.apache.commons.logging.impl.".length();
+ classesToDiscover = new String[] { "org.apache.commons.logging.impl.Log4JLogger", "org.apache.commons.logging.impl.Jdk14Logger", "org.apache.commons.logging.impl.Jdk13LumberjackLogger", "org.apache.commons.logging.impl.SimpleLog" };
+ }
public LogFactoryImpl() {
this.useTCCL = true;
this.attributes = new Hashtable();
this.instances = new Hashtable();
this.logConstructor = null;
- this.logConstructorSignature = new Class[] { String.class };
+ this.logConstructorSignature = new Class[] { (LogFactoryImpl.class$java$lang$String != null) ? LogFactoryImpl.class$java$lang$String : (LogFactoryImpl.class$java$lang$String = class$("java.lang.String")) };
this.logMethod = null;
- this.logMethodSignature = new Class[] { LogFactory.class };
+ this.logMethodSignature = new Class[] { (LogFactoryImpl.class$org$apache$commons$logging$LogFactory != null) ? LogFactoryImpl.class$org$apache$commons$logging$LogFactory : (LogFactoryImpl.class$org$apache$commons$logging$LogFactory = class$("org.apache.commons.logging.LogFactory")) };
this.initDiagnostics();
if (isDiagnosticsEnabled()) {
this.logDiagnostic("Instance created.");
}
}
- public Object getAttribute(final String name) {
- return this.attributes.get(name);
- }
-
- public String[] getAttributeNames() {
- final Vector names = new Vector();
- final Enumeration keys = this.attributes.keys();
- while (keys.hasMoreElements()) {
- names.addElement(keys.nextElement());
- }
- final String[] results = new String[names.size()];
- for (int i = 0; i < results.length; ++i) {
- results[i] = names.elementAt(i);
- }
- return results;
- }
-
- public Log getInstance(final Class clazz) throws LogConfigurationException {
- return this.getInstance(clazz.getName());
- }
-
- public Log getInstance(final String name) throws LogConfigurationException {
- Log instance = (Log)this.instances.get(name);
- if (instance == null) {
- instance = this.newInstance(name);
- this.instances.put(name, instance);
- }
- return instance;
- }
-
- public void release() {
- this.logDiagnostic("Releasing all known loggers");
- this.instances.clear();
- }
-
- public void removeAttribute(final String name) {
- this.attributes.remove(name);
- }
-
- public void setAttribute(final String name, final Object value) {
- if (this.logConstructor != null) {
- this.logDiagnostic("setAttribute: call too late; configuration already performed.");
- }
- if (value == null) {
- this.attributes.remove(name);
- }
- else {
- this.attributes.put(name, value);
- }
- if (name.equals("use_tccl")) {
- this.useTCCL = Boolean.valueOf(value.toString());
- }
- }
-
- protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
- return LogFactory.getContextClassLoader();
- }
-
- protected static boolean isDiagnosticsEnabled() {
- return LogFactory.isDiagnosticsEnabled();
- }
-
- protected static ClassLoader getClassLoader(final Class clazz) {
- return LogFactory.getClassLoader(clazz);
- }
-
- private void initDiagnostics() {
- final Class clazz = this.getClass();
- final ClassLoader classLoader = getClassLoader(clazz);
- String classLoaderName;
- try {
- if (classLoader == null) {
- classLoaderName = "BOOTLOADER";
- }
- else {
- classLoaderName = LogFactory.objectId((Object)classLoader);
- }
- }
- catch (final SecurityException e) {
- classLoaderName = "UNKNOWN";
- }
- this.diagnosticPrefix = "[LogFactoryImpl@" + System.identityHashCode((Object)this) + " from " + classLoaderName + "] ";
- }
-
- protected void logDiagnostic(final String msg) {
- if (isDiagnosticsEnabled()) {
- LogFactory.logRawDiagnostic(this.diagnosticPrefix + msg);
- }
- }
-
- protected String getLogClassName() {
- if (this.logClassName == null) {
- this.discoverLogImplementation(this.getClass().getName());
- }
- return this.logClassName;
- }
-
- protected Constructor getLogConstructor() throws LogConfigurationException {
- if (this.logConstructor == null) {
- this.discoverLogImplementation(this.getClass().getName());
- }
- return this.logConstructor;
- }
-
- protected boolean isJdk13LumberjackAvailable() {
- return this.isLogLibraryAvailable("Jdk13Lumberjack", "org.apache.commons.logging.impl.Jdk13LumberjackLogger");
- }
-
- protected boolean isJdk14Available() {
- return this.isLogLibraryAvailable("Jdk14", "org.apache.commons.logging.impl.Jdk14Logger");
- }
-
- protected boolean isLog4JAvailable() {
- return this.isLogLibraryAvailable("Log4J", "org.apache.commons.logging.impl.Log4JLogger");
- }
-
- protected Log newInstance(final String name) throws LogConfigurationException {
- Log instance = null;
+ static /* synthetic */ Class class$(final String class$) {
try {
- if (this.logConstructor == null) {
- instance = this.discoverLogImplementation(name);
- }
- else {
- final Object[] params = { name };
- instance = this.logConstructor.newInstance(params);
- }
- if (this.logMethod != null) {
- final Object[] params = { this };
- this.logMethod.invoke(instance, params);
- }
- return instance;
+ return Class.forName(class$);
}
- catch (final LogConfigurationException lce) {
- throw lce;
- }
- catch (final InvocationTargetException e) {
- final Throwable c = e.getTargetException();
- if (c != null) {
- throw new LogConfigurationException(c);
- }
- throw new LogConfigurationException((Throwable)e);
- }
- catch (final Throwable t) {
- throw new LogConfigurationException(t);
+ catch (final ClassNotFoundException forName) {
+ throw new NoClassDefFoundError(forName.getMessage());
}
}
- private static ClassLoader getContextClassLoaderInternal() throws LogConfigurationException {
- return AccessController.doPrivileged((PrivilegedAction<ClassLoader>)new LogFactoryImpl.LogFactoryImpl$1());
- }
-
- private static String getSystemProperty(final String key, final String def) throws SecurityException {
- return AccessController.doPrivileged((PrivilegedAction<String>)new LogFactoryImpl.LogFactoryImpl$2(key, def));
- }
-
- private ClassLoader getParentClassLoader(final ClassLoader cl) {
- try {
- return AccessController.doPrivileged((PrivilegedAction<ClassLoader>)new LogFactoryImpl.LogFactoryImpl$3(this, cl));
- }
- catch (final SecurityException ex) {
- this.logDiagnostic("[SECURITY] Unable to obtain parent classloader");
- return null;
- }
- }
-
- private boolean isLogLibraryAvailable(final String name, final String classname) {
+ private Log createLogFromClass(final String logAdapterClassName, final String logCategory, final boolean affectState) throws LogConfigurationException {
if (isDiagnosticsEnabled()) {
- this.logDiagnostic("Checking for '" + name + "'.");
+ this.logDiagnostic("Attempting to instantiate '" + logAdapterClassName + "'");
}
- try {
- final Log log = this.createLogFromClass(classname, this.getClass().getName(), false);
- if (log == null) {
+ final Object[] params = { logCategory };
+ Log logAdapter = null;
+ Constructor constructor = null;
+ Class logAdapterClass = null;
+ ClassLoader currentCL = this.getBaseClassLoader();
+ while (true) {
+ this.logDiagnostic("Trying to load '" + logAdapterClassName + "' from classloader " + LogFactory.objectId((Object)currentCL));
+ try {
if (isDiagnosticsEnabled()) {
- this.logDiagnostic("Did not find '" + name + "'.");
+ final String resourceName = String.valueOf(logAdapterClassName.replace('.', '/')) + ".class";
+ URL url;
+ if (currentCL != null) {
+ url = currentCL.getResource(resourceName);
+ }
+ else {
+ url = ClassLoader.getSystemResource(String.valueOf(resourceName) + ".class");
+ }
+ if (url == null) {
+ this.logDiagnostic("Class '" + logAdapterClassName + "' [" + resourceName + "] cannot be found.");
+ }
+ else {
+ this.logDiagnostic("Class '" + logAdapterClassName + "' was found at '" + url + "'");
+ }
}
- return false;
+ Class c = null;
+ try {
+ c = Class.forName(logAdapterClassName, true, currentCL);
+ }
+ catch (final ClassNotFoundException originalClassNotFoundException) {
+ String msg = String.valueOf(originalClassNotFoundException.getMessage());
+ this.logDiagnostic("The log adapter '" + logAdapterClassName + "' is not available via classloader " + LogFactory.objectId((Object)currentCL) + ": " + msg.trim());
+ try {
+ c = Class.forName(logAdapterClassName);
+ }
+ catch (final ClassNotFoundException secondaryClassNotFoundException) {
+ msg = String.valueOf(secondaryClassNotFoundException.getMessage());
+ this.logDiagnostic("The log adapter '" + logAdapterClassName + "' is not available via the LogFactoryImpl class classloader: " + msg.trim());
+ }
+ }
+ constructor = c.getConstructor((Class[])this.logConstructorSignature);
+ final Object o = constructor.newInstance(params);
+ if (o instanceof Log) {
+ logAdapterClass = c;
+ logAdapter = (Log)o;
+ break;
+ }
+ this.handleFlawedHierarchy(currentCL, c);
}
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("Found '" + name + "'.");
+ catch (final NoClassDefFoundError e) {
+ final String msg2 = String.valueOf(e.getMessage());
+ this.logDiagnostic("The log adapter '" + logAdapterClassName + "' is missing dependencies when loaded via classloader " + LogFactory.objectId((Object)currentCL) + ": " + msg2.trim());
+ break;
}
- return true;
- }
- catch (final LogConfigurationException e) {
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("Logging system '" + name + "' is available but not useable.");
+ catch (final ExceptionInInitializerError e2) {
+ final String msg2 = String.valueOf(e2.getMessage());
+ this.logDiagnostic("The log adapter '" + logAdapterClassName + "' is unable to initialize itself when loaded via classloader " + LogFactory.objectId((Object)currentCL) + ": " + msg2.trim());
+ break;
}
- return false;
- }
- }
-
- private String getConfigurationValue(final String property) {
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("[ENV] Trying to get configuration for item " + property);
- }
- final Object valueObj = this.getAttribute(property);
- if (valueObj != null) {
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("[ENV] Found LogFactory attribute [" + valueObj + "] for " + property);
+ catch (final LogConfigurationException e3) {
+ throw e3;
}
- return valueObj.toString();
- }
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("[ENV] No LogFactory attribute found for " + property);
- }
- try {
- final String value = getSystemProperty(property, null);
- if (value != null) {
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("[ENV] Found system property [" + value + "] for " + property);
- }
- return value;
+ catch (final Throwable t) {
+ this.handleFlawedDiscovery(logAdapterClassName, currentCL, t);
}
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("[ENV] No system property found for property " + property);
+ if (currentCL == null) {
+ break;
}
+ currentCL = currentCL.getParent();
}
- catch (final SecurityException e) {
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("[ENV] Security prevented reading system property " + property);
+ if (logAdapter != null && affectState) {
+ this.logClassName = logAdapterClassName;
+ this.logConstructor = constructor;
+ try {
+ this.logMethod = logAdapterClass.getMethod("setLogFactory", (Class[])this.logMethodSignature);
+ this.logDiagnostic("Found method setLogFactory(LogFactory) in '" + logAdapterClassName + "'");
}
+ catch (final Throwable t2) {
+ this.logMethod = null;
+ this.logDiagnostic("[INFO] '" + logAdapterClassName + "' from classloader " + LogFactory.objectId((Object)currentCL) + " does not declare optional method " + "setLogFactory(LogFactory)");
+ }
+ this.logDiagnostic("Log adapter '" + logAdapterClassName + "' from classloader " + LogFactory.objectId((Object)logAdapterClass.getClassLoader()) + " has been selected for use.");
}
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("[ENV] No configuration defined for item " + property);
- }
- return null;
- }
-
- private boolean getBooleanConfiguration(final String key, final boolean dflt) {
- final String val = this.getConfigurationValue(key);
- if (val == null) {
- return dflt;
- }
- return Boolean.valueOf(val);
- }
-
- private void initConfiguration() {
- this.allowFlawedContext = this.getBooleanConfiguration("org.apache.commons.logging.Log.allowFlawedContext", true);
- this.allowFlawedDiscovery = this.getBooleanConfiguration("org.apache.commons.logging.Log.allowFlawedDiscovery", true);
- this.allowFlawedHierarchy = this.getBooleanConfiguration("org.apache.commons.logging.Log.allowFlawedHierarchy", true);
+ return logAdapter;
}
private Log discoverLogImplementation(final String logCategory) throws LogConfigurationException {
if (isDiagnosticsEnabled()) {
this.logDiagnostic("Discovering a Log implementation...");
}
this.initConfiguration();
@@ -330,25 +194,14 @@
if (result == null) {
throw new LogConfigurationException("No suitable Log implementation");
}
return result;
}
}
- private void informUponSimilarName(final StringBuffer messageBuffer, final String name, final String candidate) {
- if (name.equals(candidate)) {
- return;
- }
- if (name.regionMatches(true, 0, candidate, 0, LogFactoryImpl.PKG_LEN + 5)) {
- messageBuffer.append(" Did you mean '");
- messageBuffer.append(candidate);
- messageBuffer.append("'?");
- }
- }
-
private String findUserSpecifiedLogClassName() {
if (isDiagnosticsEnabled()) {
this.logDiagnostic("Trying to get log class from attribute 'org.apache.commons.logging.Log'");
}
String specifiedClass = (String)this.getAttribute("org.apache.commons.logging.Log");
if (specifiedClass == null) {
if (isDiagnosticsEnabled()) {
@@ -357,136 +210,64 @@
specifiedClass = (String)this.getAttribute("org.apache.commons.logging.log");
}
if (specifiedClass == null) {
if (isDiagnosticsEnabled()) {
this.logDiagnostic("Trying to get log class from system property 'org.apache.commons.logging.Log'");
}
try {
- specifiedClass = getSystemProperty("org.apache.commons.logging.Log", null);
+ specifiedClass = System.getProperty("org.apache.commons.logging.Log");
}
catch (final SecurityException e) {
if (isDiagnosticsEnabled()) {
this.logDiagnostic("No access allowed to system property 'org.apache.commons.logging.Log' - " + e.getMessage());
}
}
}
if (specifiedClass == null) {
if (isDiagnosticsEnabled()) {
this.logDiagnostic("Trying to get log class from system property 'org.apache.commons.logging.log'");
}
try {
- specifiedClass = getSystemProperty("org.apache.commons.logging.log", null);
+ specifiedClass = System.getProperty("org.apache.commons.logging.log");
}
catch (final SecurityException e) {
if (isDiagnosticsEnabled()) {
this.logDiagnostic("No access allowed to system property 'org.apache.commons.logging.log' - " + e.getMessage());
}
}
}
if (specifiedClass != null) {
specifiedClass = specifiedClass.trim();
}
return specifiedClass;
}
- private Log createLogFromClass(final String logAdapterClassName, final String logCategory, final boolean affectState) throws LogConfigurationException {
- if (isDiagnosticsEnabled()) {
- this.logDiagnostic("Attempting to instantiate '" + logAdapterClassName + "'");
- }
- final Object[] params = { logCategory };
- Log logAdapter = null;
- Constructor constructor = null;
- Class logAdapterClass = null;
- ClassLoader currentCL = this.getBaseClassLoader();
- while (true) {
- this.logDiagnostic("Trying to load '" + logAdapterClassName + "' from classloader " + LogFactory.objectId((Object)currentCL));
- try {
- if (isDiagnosticsEnabled()) {
- final String resourceName = logAdapterClassName.replace('.', '/') + ".class";
- URL url;
- if (currentCL != null) {
- url = currentCL.getResource(resourceName);
- }
- else {
- url = ClassLoader.getSystemResource(resourceName + ".class");
- }
- if (url == null) {
- this.logDiagnostic("Class '" + logAdapterClassName + "' [" + resourceName + "] cannot be found.");
- }
- else {
- this.logDiagnostic("Class '" + logAdapterClassName + "' was found at '" + url + "'");
- }
- }
- Class c = null;
- try {
- c = Class.forName(logAdapterClassName, true, currentCL);
- }
- catch (final ClassNotFoundException originalClassNotFoundException) {
- String msg = "" + originalClassNotFoundException.getMessage();
- this.logDiagnostic("The log adapter '" + logAdapterClassName + "' is not available via classloader " + LogFactory.objectId((Object)currentCL) + ": " + msg.trim());
- try {
- c = Class.forName(logAdapterClassName);
- }
- catch (final ClassNotFoundException secondaryClassNotFoundException) {
- msg = "" + secondaryClassNotFoundException.getMessage();
- this.logDiagnostic("The log adapter '" + logAdapterClassName + "' is not available via the LogFactoryImpl class classloader: " + msg.trim());
- }
- }
- constructor = c.getConstructor((Class[])this.logConstructorSignature);
- final Object o = constructor.newInstance(params);
- if (o instanceof Log) {
- logAdapterClass = c;
- logAdapter = (Log)o;
- break;
- }
- this.handleFlawedHierarchy(currentCL, c);
- }
- catch (final NoClassDefFoundError e) {
- final String msg2 = "" + e.getMessage();
- this.logDiagnostic("The log adapter '" + logAdapterClassName + "' is missing dependencies when loaded via classloader " + LogFactory.objectId((Object)currentCL) + ": " + msg2.trim());
- break;
- }
- catch (final ExceptionInInitializerError e2) {
- final String msg2 = "" + e2.getMessage();
- this.logDiagnostic("The log adapter '" + logAdapterClassName + "' is unable to initialize itself when loaded via classloader " + LogFactory.objectId((Object)currentCL) + ": " + msg2.trim());
- break;
- }
- catch (final LogConfigurationException e3) {
- throw e3;
- }
- catch (final Throwable t) {
- this.handleFlawedDiscovery(logAdapterClassName, currentCL, t);
- }
- if (currentCL == null) {
- break;
- }
- currentCL = this.getParentClassLoader(currentCL);
+ public Object getAttribute(final String name) {
+ return this.attributes.get(name);
+ }
+
+ public String[] getAttributeNames() {
+ final Vector names = new Vector();
+ final Enumeration keys = this.attributes.keys();
+ while (keys.hasMoreElements()) {
+ names.addElement(keys.nextElement());
}
- if (logAdapter != null && affectState) {
- this.logClassName = logAdapterClassName;
- this.logConstructor = constructor;
- try {
- this.logMethod = logAdapterClass.getMethod("setLogFactory", (Class[])this.logMethodSignature);
- this.logDiagnostic("Found method setLogFactory(LogFactory) in '" + logAdapterClassName + "'");
- }
- catch (final Throwable t) {
- this.logMethod = null;
- this.logDiagnostic("[INFO] '" + logAdapterClassName + "' from classloader " + LogFactory.objectId((Object)currentCL) + " does not declare optional method " + "setLogFactory(LogFactory)");
- }
- this.logDiagnostic("Log adapter '" + logAdapterClassName + "' from classloader " + LogFactory.objectId((Object)logAdapterClass.getClassLoader()) + " has been selected for use.");
+ final String[] results = new String[names.size()];
+ for (int i = 0; i < results.length; ++i) {
+ results[i] = names.elementAt(i);
}
- return logAdapter;
+ return results;
}
private ClassLoader getBaseClassLoader() throws LogConfigurationException {
- final ClassLoader thisClassLoader = getClassLoader(LogFactoryImpl.class);
+ final ClassLoader thisClassLoader = getClassLoader((LogFactoryImpl.class$org$apache$commons$logging$impl$LogFactoryImpl != null) ? LogFactoryImpl.class$org$apache$commons$logging$impl$LogFactoryImpl : (LogFactoryImpl.class$org$apache$commons$logging$impl$LogFactoryImpl = class$("org.apache.commons.logging.impl.LogFactoryImpl")));
if (!this.useTCCL) {
return thisClassLoader;
}
- final ClassLoader contextClassLoader = getContextClassLoaderInternal();
+ final ClassLoader contextClassLoader = getContextClassLoader();
final ClassLoader baseClassLoader = this.getLowestClassLoader(contextClassLoader, thisClassLoader);
if (baseClassLoader != null) {
if (baseClassLoader != contextClassLoader) {
if (!this.allowFlawedContext) {
throw new LogConfigurationException("Bad classloader hierarchy; LogFactoryImpl was loaded via a classloader that is not related to the current context classloader.");
}
if (isDiagnosticsEnabled()) {
@@ -500,14 +281,94 @@
this.logDiagnostic("[WARNING] the context classloader is not part of a parent-child relationship with the classloader that loaded LogFactoryImpl.");
}
return contextClassLoader;
}
throw new LogConfigurationException("Bad classloader hierarchy; LogFactoryImpl was loaded via a classloader that is not related to the current context classloader.");
}
+ private boolean getBooleanConfiguration(final String key, final boolean dflt) {
+ final String val = this.getConfigurationValue(key);
+ if (val == null) {
+ return dflt;
+ }
+ return Boolean.valueOf(val);
+ }
+
+ protected static ClassLoader getClassLoader(final Class clazz) {
+ return LogFactory.getClassLoader(clazz);
+ }
+
+ private String getConfigurationValue(final String property) {
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("[ENV] Trying to get configuration for item " + property);
+ }
+ final Object valueObj = this.getAttribute(property);
+ if (valueObj != null) {
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("[ENV] Found LogFactory attribute [" + valueObj + "] for " + property);
+ }
+ return valueObj.toString();
+ }
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("[ENV] No LogFactory attribute found for " + property);
+ }
+ try {
+ final String value = System.getProperty(property);
+ if (value != null) {
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("[ENV] Found system property [" + value + "] for " + property);
+ }
+ return value;
+ }
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("[ENV] No system property found for property " + property);
+ }
+ }
+ catch (final SecurityException ex) {
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("[ENV] Security prevented reading system property " + property);
+ }
+ }
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("[ENV] No configuration defined for item " + property);
+ }
+ return null;
+ }
+
+ protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
+ return LogFactory.getContextClassLoader();
+ }
+
+ public Log getInstance(final Class clazz) throws LogConfigurationException {
+ return this.getInstance(clazz.getName());
+ }
+
+ public Log getInstance(final String name) throws LogConfigurationException {
+ Log instance = (Log)this.instances.get(name);
+ if (instance == null) {
+ instance = this.newInstance(name);
+ this.instances.put(name, instance);
+ }
+ return instance;
+ }
+
+ protected String getLogClassName() {
+ if (this.logClassName == null) {
+ this.discoverLogImplementation(this.getClass().getName());
+ }
+ return this.logClassName;
+ }
+
+ protected Constructor getLogConstructor() throws LogConfigurationException {
+ if (this.logConstructor == null) {
+ this.discoverLogImplementation(this.getClass().getName());
+ }
+ return this.logConstructor;
+ }
+
private ClassLoader getLowestClassLoader(final ClassLoader c1, final ClassLoader c2) {
if (c1 == null) {
return c2;
}
if (c2 == null) {
return c1;
}
@@ -523,71 +384,57 @@
}
return null;
}
private void handleFlawedDiscovery(final String logAdapterClassName, final ClassLoader classLoader, final Throwable discoveryFlaw) {
if (isDiagnosticsEnabled()) {
this.logDiagnostic("Could not instantiate Log '" + logAdapterClassName + "' -- " + discoveryFlaw.getClass().getName() + ": " + discoveryFlaw.getLocalizedMessage());
- if (discoveryFlaw instanceof InvocationTargetException) {
- final InvocationTargetException ite = (InvocationTargetException)discoveryFlaw;
- final Throwable cause = ite.getTargetException();
- if (cause != null) {
- this.logDiagnostic("... InvocationTargetException: " + cause.getClass().getName() + ": " + cause.getLocalizedMessage());
- if (cause instanceof ExceptionInInitializerError) {
- final ExceptionInInitializerError eiie = (ExceptionInInitializerError)cause;
- final Throwable cause2 = eiie.getException();
- if (cause2 != null) {
- this.logDiagnostic("... ExceptionInInitializerError: " + cause2.getClass().getName() + ": " + cause2.getLocalizedMessage());
- }
- }
- }
- }
}
if (!this.allowFlawedDiscovery) {
throw new LogConfigurationException(discoveryFlaw);
}
}
private void handleFlawedHierarchy(final ClassLoader badClassLoader, final Class badClass) throws LogConfigurationException {
boolean implementsLog = false;
- final String logInterfaceName = Log.class.getName();
+ final String logInterfaceName = ((LogFactoryImpl.class$org$apache$commons$logging$Log != null) ? LogFactoryImpl.class$org$apache$commons$logging$Log : (LogFactoryImpl.class$org$apache$commons$logging$Log = class$("org.apache.commons.logging.Log"))).getName();
final Class[] interfaces = badClass.getInterfaces();
for (int i = 0; i < interfaces.length; ++i) {
if (logInterfaceName.equals(interfaces[i].getName())) {
implementsLog = true;
break;
}
}
if (implementsLog) {
if (isDiagnosticsEnabled()) {
try {
- final ClassLoader logInterfaceClassLoader = getClassLoader(Log.class);
+ final ClassLoader logInterfaceClassLoader = getClassLoader((LogFactoryImpl.class$org$apache$commons$logging$Log != null) ? LogFactoryImpl.class$org$apache$commons$logging$Log : (LogFactoryImpl.class$org$apache$commons$logging$Log = class$("org.apache.commons.logging.Log")));
this.logDiagnostic("Class '" + badClass.getName() + "' was found in classloader " + LogFactory.objectId((Object)badClassLoader) + ". It is bound to a Log interface which is not" + " the one loaded from classloader " + LogFactory.objectId((Object)logInterfaceClassLoader));
}
catch (final Throwable t) {
this.logDiagnostic("Error while trying to output diagnostics about bad class '" + badClass + "'");
}
}
if (!this.allowFlawedHierarchy) {
final StringBuffer msg = new StringBuffer();
msg.append("Terminating logging for this context ");
msg.append("due to bad log hierarchy. ");
msg.append("You have more than one version of '");
- msg.append(Log.class.getName());
+ msg.append(((LogFactoryImpl.class$org$apache$commons$logging$Log != null) ? LogFactoryImpl.class$org$apache$commons$logging$Log : (LogFactoryImpl.class$org$apache$commons$logging$Log = class$("org.apache.commons.logging.Log"))).getName());
msg.append("' visible.");
if (isDiagnosticsEnabled()) {
this.logDiagnostic(msg.toString());
}
throw new LogConfigurationException(msg.toString());
}
if (isDiagnosticsEnabled()) {
final StringBuffer msg = new StringBuffer();
msg.append("Warning: bad log hierarchy. ");
msg.append("You have more than one version of '");
- msg.append(Log.class.getName());
+ msg.append(((LogFactoryImpl.class$org$apache$commons$logging$Log != null) ? LogFactoryImpl.class$org$apache$commons$logging$Log : (LogFactoryImpl.class$org$apache$commons$logging$Log = class$("org.apache.commons.logging.Log"))).getName());
msg.append("' visible.");
this.logDiagnostic(msg.toString());
}
}
else {
if (!this.allowFlawedDiscovery) {
final StringBuffer msg = new StringBuffer();
@@ -606,12 +453,144 @@
msg.append(badClass.getName());
msg.append("' does not implement the Log interface.");
this.logDiagnostic(msg.toString());
}
}
}
- static {
- PKG_LEN = "org.apache.commons.logging.impl.".length();
- classesToDiscover = new String[] { "org.apache.commons.logging.impl.Log4JLogger", "org.apache.commons.logging.impl.Jdk14Logger", "org.apache.commons.logging.impl.Jdk13LumberjackLogger", "org.apache.commons.logging.impl.SimpleLog" };
+ private void informUponSimilarName(final StringBuffer messageBuffer, final String name, final String candidate) {
+ if (name.equals(candidate)) {
+ return;
+ }
+ if (name.regionMatches(true, 0, candidate, 0, LogFactoryImpl.PKG_LEN + 5)) {
+ messageBuffer.append(" Did you mean '");
+ messageBuffer.append(candidate);
+ messageBuffer.append("'?");
+ }
+ }
+
+ private void initConfiguration() {
+ this.allowFlawedContext = this.getBooleanConfiguration("org.apache.commons.logging.Log.allowFlawedContext", true);
+ this.allowFlawedDiscovery = this.getBooleanConfiguration("org.apache.commons.logging.Log.allowFlawedDiscovery", true);
+ this.allowFlawedHierarchy = this.getBooleanConfiguration("org.apache.commons.logging.Log.allowFlawedHierarchy", true);
+ }
+
+ private void initDiagnostics() {
+ final Class clazz = this.getClass();
+ final ClassLoader classLoader = getClassLoader(clazz);
+ String classLoaderName;
+ try {
+ if (classLoader == null) {
+ classLoaderName = "BOOTLOADER";
+ }
+ else {
+ classLoaderName = LogFactory.objectId((Object)classLoader);
+ }
+ }
+ catch (final SecurityException ex) {
+ classLoaderName = "UNKNOWN";
+ }
+ this.diagnosticPrefix = "[LogFactoryImpl@" + System.identityHashCode((Object)this) + " from " + classLoaderName + "] ";
+ }
+
+ protected static boolean isDiagnosticsEnabled() {
+ return LogFactory.isDiagnosticsEnabled();
+ }
+
+ protected boolean isJdk13LumberjackAvailable() {
+ return this.isLogLibraryAvailable("Jdk13Lumberjack", "org.apache.commons.logging.impl.Jdk13LumberjackLogger");
+ }
+
+ protected boolean isJdk14Available() {
+ return this.isLogLibraryAvailable("Jdk14", "org.apache.commons.logging.impl.Jdk14Logger");
+ }
+
+ protected boolean isLog4JAvailable() {
+ return this.isLogLibraryAvailable("Log4J", "org.apache.commons.logging.impl.Log4JLogger");
+ }
+
+ private boolean isLogLibraryAvailable(final String name, final String classname) {
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("Checking for '" + name + "'.");
+ }
+ try {
+ final Log log = this.createLogFromClass(classname, this.getClass().getName(), false);
+ if (log == null) {
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("Did not find '" + name + "'.");
+ }
+ return false;
+ }
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("Found '" + name + "'.");
+ }
+ return true;
+ }
+ catch (final LogConfigurationException ex) {
+ if (isDiagnosticsEnabled()) {
+ this.logDiagnostic("Logging system '" + name + "' is available but not useable.");
+ }
+ return false;
+ }
+ }
+
+ protected void logDiagnostic(final String msg) {
+ if (isDiagnosticsEnabled()) {
+ LogFactory.logRawDiagnostic(String.valueOf(this.diagnosticPrefix) + msg);
+ }
+ }
+
+ protected Log newInstance(final String name) throws LogConfigurationException {
+ Log instance = null;
+ try {
+ if (this.logConstructor == null) {
+ instance = this.discoverLogImplementation(name);
+ }
+ else {
+ final Object[] params = { name };
+ instance = this.logConstructor.newInstance(params);
+ }
+ if (this.logMethod != null) {
+ final Object[] params = { this };
+ this.logMethod.invoke(instance, params);
+ }
+ return instance;
+ }
+ catch (final LogConfigurationException lce) {
+ throw lce;
+ }
+ catch (final InvocationTargetException e) {
+ final Throwable c = e.getTargetException();
+ if (c != null) {
+ throw new LogConfigurationException(c);
+ }
+ throw new LogConfigurationException((Throwable)e);
+ }
+ catch (final Throwable t) {
+ throw new LogConfigurationException(t);
+ }
+ }
+
+ public void release() {
+ this.logDiagnostic("Releasing all known loggers");
+ this.instances.clear();
+ }
+
+ public void removeAttribute(final String name) {
+ this.attributes.remove(name);
+ }
+
+ public void setAttribute(final String name, final Object value) {
+ if (this.logConstructor != null) {
+ this.logDiagnostic("setAttribute: call too late; configuration already performed.");
+ }
+ if (value == null) {
+ this.attributes.remove(name);
+ }
+ else {
+ this.attributes.put(name, value);
+ }
+ if (name.equals("use_tccl")) {
+ this.useTCCL = Boolean.valueOf(value.toString());
+ }
}
}
@@ -10,21 +10,21 @@
}
public LogConfigurationException(final String message) {
super(message);
this.cause = null;
}
- public LogConfigurationException(final Throwable cause) {
- this((cause == null) ? null : cause.toString(), cause);
- }
-
public LogConfigurationException(final String message, final Throwable cause) {
- super(message + " (Caused by " + cause + ")");
+ super(String.valueOf(message) + " (Caused by " + cause + ")");
this.cause = null;
this.cause = cause;
}
+ public LogConfigurationException(final Throwable cause) {
+ this((cause == null) ? null : cause.toString(), cause);
+ }
+
public Throwable getCause() {
return this.cause;
}
}
@@ -1,13 +1,13 @@
package org.apache.commons.logging;
import java.security.PrivilegedAction;
-static class LogFactory$3 implements PrivilegedAction {
+private final class LogFactory$3 implements PrivilegedAction {
public Object run() {
if (this.val$loader != null) {
return this.val$loader.getResourceAsStream(this.val$name);
}
return ClassLoader.getSystemResourceAsStream(this.val$name);
}
}
@@ -14,86 +14,66 @@
public LogKitLogger(final String name) {
this.logger = null;
this.name = null;
this.name = name;
this.logger = this.getLogger();
}
- public Logger getLogger() {
- if (this.logger == null) {
- this.logger = Hierarchy.getDefaultHierarchy().getLoggerFor(this.name);
- }
- return this.logger;
- }
-
- public void trace(final Object message) {
- this.debug(message);
- }
-
- public void trace(final Object message, final Throwable t) {
- this.debug(message, t);
- }
-
public void debug(final Object message) {
if (message != null) {
this.getLogger().debug(String.valueOf(message));
}
}
public void debug(final Object message, final Throwable t) {
if (message != null) {
this.getLogger().debug(String.valueOf(message), t);
}
}
- public void info(final Object message) {
- if (message != null) {
- this.getLogger().info(String.valueOf(message));
- }
- }
-
- public void info(final Object message, final Throwable t) {
+ public void error(final Object message) {
if (message != null) {
- this.getLogger().info(String.valueOf(message), t);
+ this.getLogger().error(String.valueOf(message));
}
}
- public void warn(final Object message) {
+ public void error(final Object message, final Throwable t) {
if (message != null) {
- this.getLogger().warn(String.valueOf(message));
+ this.getLogger().error(String.valueOf(message), t);
}
}
- public void warn(final Object message, final Throwable t) {
+ public void fatal(final Object message) {
if (message != null) {
- this.getLogger().warn(String.valueOf(message), t);
+ this.getLogger().fatalError(String.valueOf(message));
}
}
- public void error(final Object message) {
+ public void fatal(final Object message, final Throwable t) {
if (message != null) {
- this.getLogger().error(String.valueOf(message));
+ this.getLogger().fatalError(String.valueOf(message), t);
}
}
- public void error(final Object message, final Throwable t) {
- if (message != null) {
- this.getLogger().error(String.valueOf(message), t);
+ public Logger getLogger() {
+ if (this.logger == null) {
+ this.logger = Hierarchy.getDefaultHierarchy().getLoggerFor(this.name);
}
+ return this.logger;
}
- public void fatal(final Object message) {
+ public void info(final Object message) {
if (message != null) {
- this.getLogger().fatalError(String.valueOf(message));
+ this.getLogger().info(String.valueOf(message));
}
}
- public void fatal(final Object message, final Throwable t) {
+ public void info(final Object message, final Throwable t) {
if (message != null) {
- this.getLogger().fatalError(String.valueOf(message), t);
+ this.getLogger().info(String.valueOf(message), t);
}
}
public boolean isDebugEnabled() {
return this.getLogger().isDebugEnabled();
}
@@ -112,8 +92,28 @@
public boolean isTraceEnabled() {
return this.getLogger().isDebugEnabled();
}
public boolean isWarnEnabled() {
return this.getLogger().isWarnEnabled();
}
+
+ public void trace(final Object message) {
+ this.debug(message);
+ }
+
+ public void trace(final Object message, final Throwable t) {
+ this.debug(message, t);
+ }
+
+ public void warn(final Object message) {
+ if (message != null) {
+ this.getLogger().warn(String.valueOf(message));
+ }
+ }
+
+ public void warn(final Object message, final Throwable t) {
+ if (message != null) {
+ this.getLogger().warn(String.valueOf(message), t);
+ }
+ }
}
@@ -5,80 +5,80 @@
import org.apache.commons.logging.Log;
public class AvalonLogger implements Log
{
private static Logger defaultLogger;
private transient Logger logger;
- public AvalonLogger(final Logger logger) {
- this.logger = null;
- this.logger = logger;
+ static {
+ AvalonLogger.defaultLogger = null;
}
public AvalonLogger(final String name) {
this.logger = null;
if (AvalonLogger.defaultLogger == null) {
throw new NullPointerException("default logger has to be specified if this constructor is used!");
}
this.logger = AvalonLogger.defaultLogger.getChildLogger(name);
}
- public Logger getLogger() {
- return this.logger;
+ public AvalonLogger(final Logger logger) {
+ this.logger = null;
+ this.logger = logger;
}
- public static void setDefaultLogger(final Logger logger) {
- AvalonLogger.defaultLogger = logger;
+ public void debug(final Object message) {
+ if (this.getLogger().isDebugEnabled()) {
+ this.getLogger().debug(String.valueOf(message));
+ }
}
public void debug(final Object message, final Throwable t) {
if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug(String.valueOf(message), t);
}
}
- public void debug(final Object message) {
- if (this.getLogger().isDebugEnabled()) {
- this.getLogger().debug(String.valueOf(message));
+ public void error(final Object message) {
+ if (this.getLogger().isErrorEnabled()) {
+ this.getLogger().error(String.valueOf(message));
}
}
public void error(final Object message, final Throwable t) {
if (this.getLogger().isErrorEnabled()) {
this.getLogger().error(String.valueOf(message), t);
}
}
- public void error(final Object message) {
- if (this.getLogger().isErrorEnabled()) {
- this.getLogger().error(String.valueOf(message));
+ public void fatal(final Object message) {
+ if (this.getLogger().isFatalErrorEnabled()) {
+ this.getLogger().fatalError(String.valueOf(message));
}
}
public void fatal(final Object message, final Throwable t) {
if (this.getLogger().isFatalErrorEnabled()) {
this.getLogger().fatalError(String.valueOf(message), t);
}
}
- public void fatal(final Object message) {
- if (this.getLogger().isFatalErrorEnabled()) {
- this.getLogger().fatalError(String.valueOf(message));
- }
+ public Logger getLogger() {
+ return this.logger;
}
- public void info(final Object message, final Throwable t) {
+ public void info(final Object message) {
if (this.getLogger().isInfoEnabled()) {
- this.getLogger().info(String.valueOf(message), t);
+ this.getLogger().info(String.valueOf(message));
}
}
- public void info(final Object message) {
+ public void info(final Object message, final Throwable t) {
if (this.getLogger().isInfoEnabled()) {
- this.getLogger().info(String.valueOf(message));
+ this.getLogger().info(String.valueOf(message), t);
}
}
public boolean isDebugEnabled() {
return this.getLogger().isDebugEnabled();
}
@@ -98,35 +98,35 @@
return this.getLogger().isDebugEnabled();
}
public boolean isWarnEnabled() {
return this.getLogger().isWarnEnabled();
}
- public void trace(final Object message, final Throwable t) {
- if (this.getLogger().isDebugEnabled()) {
- this.getLogger().debug(String.valueOf(message), t);
- }
+ public static void setDefaultLogger(final Logger logger) {
+ AvalonLogger.defaultLogger = logger;
}
public void trace(final Object message) {
if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug(String.valueOf(message));
}
}
- public void warn(final Object message, final Throwable t) {
- if (this.getLogger().isWarnEnabled()) {
- this.getLogger().warn(String.valueOf(message), t);
+ public void trace(final Object message, final Throwable t) {
+ if (this.getLogger().isDebugEnabled()) {
+ this.getLogger().debug(String.valueOf(message), t);
}
}
public void warn(final Object message) {
if (this.getLogger().isWarnEnabled()) {
this.getLogger().warn(String.valueOf(message));
}
}
- static {
- AvalonLogger.defaultLogger = null;
+ public void warn(final Object message, final Throwable t) {
+ if (this.getLogger().isWarnEnabled()) {
+ this.getLogger().warn(String.valueOf(message), t);
+ }
}
}
@@ -8,50 +8,38 @@
{
public NoOpLog() {
}
public NoOpLog(final String name) {
}
- public void trace(final Object message) {
- }
-
- public void trace(final Object message, final Throwable t) {
- }
-
public void debug(final Object message) {
}
public void debug(final Object message, final Throwable t) {
}
- public void info(final Object message) {
- }
-
- public void info(final Object message, final Throwable t) {
- }
-
- public void warn(final Object message) {
- }
-
- public void warn(final Object message, final Throwable t) {
- }
-
public void error(final Object message) {
}
public void error(final Object message, final Throwable t) {
}
public void fatal(final Object message) {
}
public void fatal(final Object message, final Throwable t) {
}
+ public void info(final Object message) {
+ }
+
+ public void info(final Object message, final Throwable t) {
+ }
+
public final boolean isDebugEnabled() {
return false;
}
public final boolean isErrorEnabled() {
return false;
}
@@ -67,8 +55,20 @@
public final boolean isTraceEnabled() {
return false;
}
public final boolean isWarnEnabled() {
return false;
}
+
+ public void trace(final Object message) {
+ }
+
+ public void trace(final Object message, final Throwable t) {
+ }
+
+ public void warn(final Object message) {
+ }
+
+ public void warn(final Object message, final Throwable t) {
+ }
}
@@ -14,45 +14,65 @@
}
public boolean equals(final Object o) {
boolean result = false;
if (o != null && o instanceof Map.Entry) {
final Map.Entry entry = (Map.Entry)o;
boolean b = false;
- Label_0093: {
- Label_0092: {
- if (this.getKey() == null) {
- if (entry.getKey() != null) {
- break Label_0092;
+ Label_0095: {
+ Label_0090: {
+ Label_0054: {
+ boolean equals;
+ if (this.getKey() == null) {
+ if (entry.getKey() == null) {
+ break Label_0054;
+ }
+ equals = false;
+ }
+ else {
+ equals = this.getKey().equals(entry.getKey());
+ }
+ if (!equals) {
+ break Label_0090;
}
}
- else if (!this.getKey().equals(entry.getKey())) {
- break Label_0092;
- }
- if ((this.getValue() != null) ? this.getValue().equals(entry.getValue()) : (entry.getValue() == null)) {
- b = true;
- break Label_0093;
+ Label_0094: {
+ boolean equals2;
+ if (this.getValue() == null) {
+ if (entry.getValue() == null) {
+ break Label_0094;
+ }
+ equals2 = false;
+ }
+ else {
+ equals2 = this.getValue().equals(entry.getValue());
+ }
+ if (!equals2) {
+ break Label_0090;
+ }
}
+ b = true;
+ break Label_0095;
}
b = false;
}
result = b;
}
return result;
}
- public int hashCode() {
- return ((this.getKey() == null) ? 0 : this.getKey().hashCode()) ^ ((this.getValue() == null) ? 0 : this.getValue().hashCode());
- }
-
- public Object setValue(final Object value) {
- throw new UnsupportedOperationException("Entry.setValue is not supported.");
+ public Object getKey() {
+ return this.key;
}
public Object getValue() {
return this.value;
}
- public Object getKey() {
- return this.key;
+ public int hashCode() {
+ return ((this.getKey() == null) ? 0 : this.getKey().hashCode()) ^ ((this.getValue() == null) ? 0 : this.getValue().hashCode());
+ }
+
+ public Object setValue(final Object value) {
+ throw new UnsupportedOperationException("Entry.setValue is not supported.");
}
}
@@ -1,25 +1,25 @@
package org.apache.commons.logging;
import java.io.IOException;
import java.io.OutputStream;
import java.io.FileOutputStream;
-import java.net.URL;
-import java.lang.reflect.Method;
-import java.lang.reflect.InvocationTargetException;
-import java.security.PrivilegedAction;
-import java.security.AccessController;
-import java.util.Enumeration;
import java.io.InputStream;
-import java.util.Properties;
import java.io.UnsupportedEncodingException;
import java.io.Reader;
import java.io.BufferedReader;
import java.io.InputStreamReader;
+import java.security.PrivilegedAction;
+import java.security.AccessController;
+import java.util.Enumeration;
+import java.net.URL;
+import java.util.Properties;
+import java.lang.reflect.Method;
+import java.lang.reflect.InvocationTargetException;
import java.util.Hashtable;
import java.io.PrintStream;
public abstract class LogFactory
{
public static final String PRIORITY_KEY = "priority";
public static final String TCCL_KEY = "use_tccl";
@@ -31,41 +31,125 @@
private static PrintStream diagnosticsStream;
private static String diagnosticPrefix;
public static final String HASHTABLE_IMPLEMENTATION_PROPERTY = "org.apache.commons.logging.LogFactory.HashtableImpl";
private static final String WEAK_HASHTABLE_CLASSNAME = "org.apache.commons.logging.impl.WeakHashtable";
private static ClassLoader thisClassLoader;
protected static Hashtable factories;
protected static LogFactory nullClassLoaderFactory;
+ static /* synthetic */ Class class$org$apache$commons$logging$LogFactory;
+ static /* synthetic */ Class class$java$lang$Thread;
- protected LogFactory() {
+ static {
+ LogFactory.diagnosticsStream = null;
+ LogFactory.factories = null;
+ LogFactory.nullClassLoaderFactory = null;
+ LogFactory.thisClassLoader = getClassLoader((LogFactory.class$org$apache$commons$logging$LogFactory != null) ? LogFactory.class$org$apache$commons$logging$LogFactory : (LogFactory.class$org$apache$commons$logging$LogFactory = class$("org.apache.commons.logging.LogFactory")));
+ initDiagnostics();
+ logClassLoaderEnvironment((LogFactory.class$org$apache$commons$logging$LogFactory != null) ? LogFactory.class$org$apache$commons$logging$LogFactory : (LogFactory.class$org$apache$commons$logging$LogFactory = class$("org.apache.commons.logging.LogFactory")));
+ LogFactory.factories = createFactoryStore();
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("BOOTSTRAP COMPLETED");
+ }
}
- public abstract Object getAttribute(final String p0);
-
- public abstract String[] getAttributeNames();
-
- public abstract Log getInstance(final Class p0) throws LogConfigurationException;
-
- public abstract Log getInstance(final String p0) throws LogConfigurationException;
-
- public abstract void release();
+ protected LogFactory() {
+ }
- public abstract void removeAttribute(final String p0);
+ private static void cacheFactory(final ClassLoader classLoader, final LogFactory factory) {
+ if (factory != null) {
+ if (classLoader == null) {
+ LogFactory.nullClassLoaderFactory = factory;
+ }
+ else {
+ LogFactory.factories.put(classLoader, factory);
+ }
+ }
+ }
- public abstract void setAttribute(final String p0, final Object p1);
+ static /* synthetic */ Class class$(final String class$) {
+ try {
+ return Class.forName(class$);
+ }
+ catch (final ClassNotFoundException forName) {
+ throw new NoClassDefFoundError(forName.getMessage());
+ }
+ }
- private static final Hashtable createFactoryStore() {
- Hashtable result = null;
- String storeImplementationClass;
+ protected static Object createFactory(final String factoryClass, final ClassLoader classLoader) {
+ Class logFactoryClass = null;
try {
- storeImplementationClass = getSystemProperty("org.apache.commons.logging.LogFactory.HashtableImpl", null);
+ if (classLoader != null) {
+ try {
+ logFactoryClass = classLoader.loadClass(factoryClass);
+ if (((LogFactory.class$org$apache$commons$logging$LogFactory != null) ? LogFactory.class$org$apache$commons$logging$LogFactory : (LogFactory.class$org$apache$commons$logging$LogFactory = class$("org.apache.commons.logging.LogFactory"))).isAssignableFrom(logFactoryClass)) {
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("Loaded class " + logFactoryClass.getName() + " from classloader " + objectId((Object)classLoader));
+ }
+ }
+ else if (isDiagnosticsEnabled()) {
+ logDiagnostic("Factory class " + logFactoryClass.getName() + " loaded from classloader " + objectId((Object)logFactoryClass.getClassLoader()) + " does not extend '" + ((LogFactory.class$org$apache$commons$logging$LogFactory != null) ? LogFactory.class$org$apache$commons$logging$LogFactory : (LogFactory.class$org$apache$commons$logging$LogFactory = class$("org.apache.commons.logging.LogFactory"))).getName() + "' as loaded by this classloader.");
+ logHierarchy("[BAD CL TREE] ", classLoader);
+ }
+ return logFactoryClass.newInstance();
+ }
+ catch (final ClassNotFoundException ex) {
+ if (classLoader == LogFactory.thisClassLoader) {
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("Unable to locate any class called '" + factoryClass + "' via classloader " + objectId((Object)classLoader));
+ }
+ throw ex;
+ }
+ }
+ catch (final NoClassDefFoundError e) {
+ if (classLoader == LogFactory.thisClassLoader) {
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("Class '" + factoryClass + "' cannot be loaded" + " via classloader " + objectId((Object)classLoader) + " - it depends on some other class that cannot" + " be found.");
+ }
+ throw e;
+ }
+ }
+ catch (final ClassCastException ex3) {
+ if (classLoader == LogFactory.thisClassLoader) {
+ final boolean implementsLogFactory = implementsLogFactory(logFactoryClass);
+ String msg = "The application has specified that a custom LogFactory implementation should be used but Class '" + factoryClass + "' cannot be converted to '" + ((LogFactory.class$org$apache$commons$logging$LogFactory != null) ? LogFactory.class$org$apache$commons$logging$LogFactory : (LogFactory.class$org$apache$commons$logging$LogFactory = class$("org.apache.commons.logging.LogFactory"))).getName() + "'. ";
+ if (implementsLogFactory) {
+ msg = String.valueOf(msg) + "The conflict is caused by the presence of multiple LogFactory classes in incompatible classloaders. " + "Background can be found in http://jakarta.apache.org/commons/logging/tech.html. " + "If you have not explicitly specified a custom LogFactory then it is likely that " + "the container has set one without your knowledge. " + "In this case, consider using the commons-logging-adapters.jar file or " + "specifying the standard LogFactory from the command line. ";
+ }
+ else {
+ msg = String.valueOf(msg) + "Please check the custom implementation. ";
+ }
+ msg = String.valueOf(msg) + "Help can be found @http://jakarta.apache.org/commons/logging/troubleshooting.html.";
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic(msg);
+ }
+ final ClassCastException ex2 = new ClassCastException(msg);
+ throw ex2;
+ }
+ }
+ }
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("Unable to load factory class via classloader " + objectId((Object)classLoader) + " - trying the classloader associated with this LogFactory.");
+ }
+ logFactoryClass = Class.forName(factoryClass);
+ return logFactoryClass.newInstance();
}
- catch (final SecurityException ex) {
- storeImplementationClass = null;
+ catch (final Exception e2) {
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("Unable to create LogFactory instance.");
+ }
+ if (logFactoryClass != null && !((LogFactory.class$org$apache$commons$logging$LogFactory != null) ? LogFactory.class$org$apache$commons$logging$LogFactory : (LogFactory.class$org$apache$commons$logging$LogFactory = class$("org.apache.commons.logging.LogFactory"))).isAssignableFrom(logFactoryClass)) {
+ return new LogConfigurationException("The chosen LogFactory implementation does not extend LogFactory. Please check your configuration.", (Throwable)e2);
+ }
+ return new LogConfigurationException((Throwable)e2);
}
+ }
+
+ private static final Hashtable createFactoryStore() {
+ Hashtable result = null;
+ String storeImplementationClass = System.getProperty("org.apache.commons.logging.LogFactory.HashtableImpl");
if (storeImplementationClass == null) {
storeImplementationClass = "org.apache.commons.logging.impl.WeakHashtable";
}
try {
final Class implementationClass = Class.forName(storeImplementationClass);
result = implementationClass.newInstance();
}
@@ -81,23 +165,136 @@
}
if (result == null) {
result = new Hashtable();
}
return result;
}
- private static String trim(final String src) {
- if (src == null) {
- return null;
+ protected static ClassLoader directGetContextClassLoader() throws LogConfigurationException {
+ ClassLoader classLoader = null;
+ try {
+ final Method method = ((LogFactory.class$java$lang$Thread != null) ? LogFactory.class$java$lang$Thread : (LogFactory.class$java$lang$Thread = class$("java.lang.Thread"))).getMethod("getContextClassLoader", (Class[])null);
+ try {
+ classLoader = (ClassLoader)method.invoke(Thread.currentThread(), (Object[])null);
+ }
+ catch (final IllegalAccessException e) {
+ throw new LogConfigurationException("Unexpected IllegalAccessException", (Throwable)e);
+ }
+ catch (final InvocationTargetException e2) {
+ if (!(e2.getTargetException() instanceof SecurityException)) {
+ throw new LogConfigurationException("Unexpected InvocationTargetException", e2.getTargetException());
+ }
+ return classLoader;
+ }
+ }
+ catch (final NoSuchMethodException ex) {
+ classLoader = getClassLoader((LogFactory.class$org$apache$commons$logging$LogFactory != null) ? LogFactory.class$org$apache$commons$logging$LogFactory : (LogFactory.class$org$apache$commons$logging$LogFactory = class$("org.apache.commons.logging.LogFactory")));
+ }
+ return classLoader;
+ }
+
+ public abstract Object getAttribute(final String p0);
+
+ public abstract String[] getAttributeNames();
+
+ private static LogFactory getCachedFactory(final ClassLoader contextClassLoader) {
+ LogFactory factory = null;
+ if (contextClassLoader == null) {
+ factory = LogFactory.nullClassLoaderFactory;
+ }
+ else {
+ factory = LogFactory.factories.get(contextClassLoader);
+ }
+ return factory;
+ }
+
+ protected static ClassLoader getClassLoader(final Class clazz) {
+ try {
+ return clazz.getClassLoader();
+ }
+ catch (final SecurityException ex) {
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("Unable to get classloader for class '" + clazz + "' due to security restrictions - " + ex.getMessage());
+ }
+ throw ex;
+ }
+ }
+
+ private static final Properties getConfigurationFile(final ClassLoader classLoader, final String fileName) {
+ Properties props = null;
+ double priority = 0.0;
+ URL propsUrl = null;
+ try {
+ final Enumeration urls = getResources(classLoader, fileName);
+ if (urls == null) {
+ return null;
+ }
+ while (urls.hasMoreElements()) {
+ final URL url = (URL)urls.nextElement();
+ final Properties newProps = getProperties(url);
+ if (newProps != null) {
+ if (props == null) {
+ propsUrl = url;
+ props = newProps;
+ final String priorityStr = props.getProperty("priority");
+ priority = 0.0;
+ if (priorityStr != null) {
+ priority = Double.parseDouble(priorityStr);
+ }
+ if (!isDiagnosticsEnabled()) {
+ continue;
+ }
+ logDiagnostic("[LOOKUP] Properties file found at '" + url + "'" + " with priority " + priority);
+ }
+ else {
+ final String newPriorityStr = newProps.getProperty("priority");
+ double newPriority = 0.0;
+ if (newPriorityStr != null) {
+ newPriority = Double.parseDouble(newPriorityStr);
+ }
+ if (newPriority > priority) {
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("[LOOKUP] Properties file at '" + url + "'" + " with priority " + newPriority + " overrides file at '" + propsUrl + "'" + " with priority " + priority);
+ }
+ propsUrl = url;
+ props = newProps;
+ priority = newPriority;
+ }
+ else {
+ if (!isDiagnosticsEnabled()) {
+ continue;
+ }
+ logDiagnostic("[LOOKUP] Properties file at '" + url + "'" + " with priority " + newPriority + " does not override file at '" + propsUrl + "'" + " with priority " + priority);
+ }
+ }
+ }
+ }
+ }
+ catch (final SecurityException ex) {
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("SecurityException thrown while trying to find/read config files.");
+ }
+ }
+ if (isDiagnosticsEnabled()) {
+ if (props == null) {
+ logDiagnostic("[LOOKUP] No properties file of name '" + fileName + "' found.");
+ }
+ else {
+ logDiagnostic("[LOOKUP] Properties file of name '" + fileName + "' found at '" + propsUrl + '\"');
+ }
}
- return src.trim();
+ return props;
+ }
+
+ protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
+ return AccessController.doPrivileged((PrivilegedAction<ClassLoader>)new LogFactory.LogFactory$1());
}
public static LogFactory getFactory() throws LogConfigurationException {
- final ClassLoader contextClassLoader = getContextClassLoaderInternal();
+ final ClassLoader contextClassLoader = getContextClassLoader();
if (contextClassLoader == null && isDiagnosticsEnabled()) {
logDiagnostic("Context classloader is null.");
}
LogFactory factory = getCachedFactory(contextClassLoader);
if (factory != null) {
return factory;
}
@@ -113,49 +310,49 @@
baseClassLoader = LogFactory.thisClassLoader;
}
}
if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] Looking for system property [org.apache.commons.logging.LogFactory] to define the LogFactory subclass to use...");
}
try {
- final String factoryClass = getSystemProperty("org.apache.commons.logging.LogFactory", null);
+ final String factoryClass = System.getProperty("org.apache.commons.logging.LogFactory");
if (factoryClass != null) {
if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] Creating an instance of LogFactory class '" + factoryClass + "' as specified by system property " + "org.apache.commons.logging.LogFactory");
}
factory = newFactory(factoryClass, baseClassLoader, contextClassLoader);
}
else if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] No system property [org.apache.commons.logging.LogFactory] defined.");
}
}
catch (final SecurityException e) {
if (isDiagnosticsEnabled()) {
- logDiagnostic("[LOOKUP] A security exception occurred while trying to create an instance of the custom factory class: [" + trim(e.getMessage()) + "]. Trying alternative implementations...");
+ logDiagnostic("[LOOKUP] A security exception occurred while trying to create an instance of the custom factory class: [" + e.getMessage().trim() + "]. Trying alternative implementations...");
}
}
catch (final RuntimeException e2) {
if (isDiagnosticsEnabled()) {
- logDiagnostic("[LOOKUP] An exception occurred while trying to create an instance of the custom factory class: [" + trim(e2.getMessage()) + "] as specified by a system property.");
+ logDiagnostic("[LOOKUP] An exception occurred while trying to create an instance of the custom factory class: [" + e2.getMessage().trim() + "] as specified by a system property.");
}
throw e2;
}
if (factory == null) {
if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] Looking for a resource file of name [META-INF/services/org.apache.commons.logging.LogFactory] to define the LogFactory subclass to use...");
}
try {
- final InputStream is = getResourceAsStream(contextClassLoader, "META-INF/services/org.apache.commons.logging.LogFactory");
- if (is != null) {
+ final InputStream resourceAsStream = getResourceAsStream(contextClassLoader, "META-INF/services/org.apache.commons.logging.LogFactory");
+ if (resourceAsStream != null) {
BufferedReader rd;
try {
- rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
+ rd = new BufferedReader(new InputStreamReader(resourceAsStream, "UTF-8"));
}
- catch (final UnsupportedEncodingException e3) {
- rd = new BufferedReader(new InputStreamReader(is));
+ catch (final UnsupportedEncodingException ex2) {
+ rd = new BufferedReader(new InputStreamReader(resourceAsStream));
}
final String factoryClassName = rd.readLine();
rd.close();
if (factoryClassName != null && !"".equals(factoryClassName)) {
if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] Creating an instance of LogFactory class " + factoryClassName + " as specified by file '" + "META-INF/services/org.apache.commons.logging.LogFactory" + "' which was present in the path of the context" + " classloader.");
}
@@ -164,29 +361,29 @@
}
else if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] No resource file with name 'META-INF/services/org.apache.commons.logging.LogFactory' found.");
}
}
catch (final Exception ex) {
if (isDiagnosticsEnabled()) {
- logDiagnostic("[LOOKUP] A security exception occurred while trying to create an instance of the custom factory class: [" + trim(ex.getMessage()) + "]. Trying alternative implementations...");
+ logDiagnostic("[LOOKUP] A security exception occurred while trying to create an instance of the custom factory class: [" + ex.getMessage().trim() + "]. Trying alternative implementations...");
}
}
}
if (factory == null) {
if (props != null) {
if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] Looking in properties file for entry with key 'org.apache.commons.logging.LogFactory' to define the LogFactory subclass to use...");
}
- final String factoryClass = props.getProperty("org.apache.commons.logging.LogFactory");
- if (factoryClass != null) {
+ final String property = props.getProperty("org.apache.commons.logging.LogFactory");
+ if (property != null) {
if (isDiagnosticsEnabled()) {
- logDiagnostic("[LOOKUP] Properties file specifies LogFactory subclass '" + factoryClass + "'");
+ logDiagnostic("[LOOKUP] Properties file specifies LogFactory subclass '" + property + "'");
}
- factory = newFactory(factoryClass, baseClassLoader, contextClassLoader);
+ factory = newFactory(property, baseClassLoader, contextClassLoader);
}
else if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] Properties file has no entry specifying LogFactory subclass.");
}
}
else if (isDiagnosticsEnabled()) {
logDiagnostic("[LOOKUP] No properties file available to determine LogFactory subclass from..");
@@ -208,211 +405,39 @@
factory.setAttribute(name, value);
}
}
}
return factory;
}
+ public abstract Log getInstance(final Class p0) throws LogConfigurationException;
+
+ public abstract Log getInstance(final String p0) throws LogConfigurationException;
+
public static Log getLog(final Class clazz) throws LogConfigurationException {
return getFactory().getInstance(clazz);
}
public static Log getLog(final String name) throws LogConfigurationException {
return getFactory().getInstance(name);
}
- public static void release(final ClassLoader classLoader) {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Releasing factory for classloader " + objectId((Object)classLoader));
- }
- synchronized (LogFactory.factories) {
- if (classLoader == null) {
- if (LogFactory.nullClassLoaderFactory != null) {
- LogFactory.nullClassLoaderFactory.release();
- LogFactory.nullClassLoaderFactory = null;
- }
- }
- else {
- final LogFactory factory = (LogFactory)LogFactory.factories.get(classLoader);
- if (factory != null) {
- factory.release();
- LogFactory.factories.remove(classLoader);
- }
- }
- }
- }
-
- public static void releaseAll() {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Releasing factory for all classloaders.");
- }
- synchronized (LogFactory.factories) {
- final Enumeration elements = LogFactory.factories.elements();
- while (elements.hasMoreElements()) {
- final LogFactory element = (LogFactory)elements.nextElement();
- element.release();
- }
- LogFactory.factories.clear();
- if (LogFactory.nullClassLoaderFactory != null) {
- LogFactory.nullClassLoaderFactory.release();
- LogFactory.nullClassLoaderFactory = null;
- }
- }
- }
-
- protected static ClassLoader getClassLoader(final Class clazz) {
- try {
- return clazz.getClassLoader();
- }
- catch (final SecurityException ex) {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Unable to get classloader for class '" + clazz + "' due to security restrictions - " + ex.getMessage());
- }
- throw ex;
- }
- }
-
- protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
- return directGetContextClassLoader();
- }
-
- private static ClassLoader getContextClassLoaderInternal() throws LogConfigurationException {
- return AccessController.doPrivileged((PrivilegedAction<ClassLoader>)new LogFactory.LogFactory$1());
- }
-
- protected static ClassLoader directGetContextClassLoader() throws LogConfigurationException {
- ClassLoader classLoader = null;
- try {
- final Method method = Thread.class.getMethod("getContextClassLoader", (Class[])null);
- try {
- classLoader = (ClassLoader)method.invoke(Thread.currentThread(), (Object[])null);
- }
- catch (final IllegalAccessException e) {
- throw new LogConfigurationException("Unexpected IllegalAccessException", (Throwable)e);
- }
- catch (final InvocationTargetException e2) {
- if (!(e2.getTargetException() instanceof SecurityException)) {
- throw new LogConfigurationException("Unexpected InvocationTargetException", e2.getTargetException());
- }
- }
- }
- catch (final NoSuchMethodException e3) {
- classLoader = getClassLoader(LogFactory.class);
- }
- return classLoader;
- }
-
- private static LogFactory getCachedFactory(final ClassLoader contextClassLoader) {
- LogFactory factory = null;
- if (contextClassLoader == null) {
- factory = LogFactory.nullClassLoaderFactory;
- }
- else {
- factory = LogFactory.factories.get(contextClassLoader);
- }
- return factory;
- }
-
- private static void cacheFactory(final ClassLoader classLoader, final LogFactory factory) {
- if (factory != null) {
- if (classLoader == null) {
- LogFactory.nullClassLoaderFactory = factory;
- }
- else {
- LogFactory.factories.put(classLoader, factory);
- }
- }
- }
-
- protected static LogFactory newFactory(final String factoryClass, final ClassLoader classLoader, final ClassLoader contextClassLoader) throws LogConfigurationException {
- final Object result = AccessController.doPrivileged((PrivilegedAction<Object>)new LogFactory.LogFactory$2(factoryClass, classLoader));
- if (result instanceof LogConfigurationException) {
- final LogConfigurationException ex = (LogConfigurationException)result;
- if (isDiagnosticsEnabled()) {
- logDiagnostic("An error occurred while loading the factory class:" + ((Throwable)ex).getMessage());
- }
- throw ex;
- }
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Created object " + objectId(result) + " to manage classloader " + objectId((Object)contextClassLoader));
- }
- return (LogFactory)result;
+ private static Properties getProperties(final URL url) {
+ final PrivilegedAction action = (PrivilegedAction)new LogFactory.LogFactory$5(url);
+ return AccessController.doPrivileged((PrivilegedAction<Properties>)action);
}
- protected static LogFactory newFactory(final String factoryClass, final ClassLoader classLoader) {
- return newFactory(factoryClass, classLoader, null);
+ private static InputStream getResourceAsStream(final ClassLoader loader, final String name) {
+ return AccessController.doPrivileged((PrivilegedAction<InputStream>)new LogFactory.LogFactory$3(loader, name));
}
- protected static Object createFactory(final String factoryClass, final ClassLoader classLoader) {
- Class logFactoryClass = null;
- try {
- if (classLoader != null) {
- try {
- logFactoryClass = classLoader.loadClass(factoryClass);
- if (LogFactory.class.isAssignableFrom(logFactoryClass)) {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Loaded class " + logFactoryClass.getName() + " from classloader " + objectId((Object)classLoader));
- }
- }
- else if (isDiagnosticsEnabled()) {
- logDiagnostic("Factory class " + logFactoryClass.getName() + " loaded from classloader " + objectId((Object)logFactoryClass.getClassLoader()) + " does not extend '" + LogFactory.class.getName() + "' as loaded by this classloader.");
- logHierarchy("[BAD CL TREE] ", classLoader);
- }
- return logFactoryClass.newInstance();
- }
- catch (final ClassNotFoundException ex) {
- if (classLoader == LogFactory.thisClassLoader) {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Unable to locate any class called '" + factoryClass + "' via classloader " + objectId((Object)classLoader));
- }
- throw ex;
- }
- }
- catch (final NoClassDefFoundError e) {
- if (classLoader == LogFactory.thisClassLoader) {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Class '" + factoryClass + "' cannot be loaded" + " via classloader " + objectId((Object)classLoader) + " - it depends on some other class that cannot" + " be found.");
- }
- throw e;
- }
- }
- catch (final ClassCastException e2) {
- if (classLoader == LogFactory.thisClassLoader) {
- final boolean implementsLogFactory = implementsLogFactory(logFactoryClass);
- String msg = "The application has specified that a custom LogFactory implementation should be used but Class '" + factoryClass + "' cannot be converted to '" + LogFactory.class.getName() + "'. ";
- if (implementsLogFactory) {
- msg = msg + "The conflict is caused by the presence of multiple LogFactory classes in incompatible classloaders. " + "Background can be found in http://commons.apache.org/logging/tech.html. " + "If you have not explicitly specified a custom LogFactory then it is likely that " + "the container has set one without your knowledge. " + "In this case, consider using the commons-logging-adapters.jar file or " + "specifying the standard LogFactory from the command line. ";
- }
- else {
- msg += "Please check the custom implementation. ";
- }
- msg += "Help can be found @http://commons.apache.org/logging/troubleshooting.html.";
- if (isDiagnosticsEnabled()) {
- logDiagnostic(msg);
- }
- final ClassCastException ex2 = new ClassCastException(msg);
- throw ex2;
- }
- }
- }
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Unable to load factory class via classloader " + objectId((Object)classLoader) + " - trying the classloader associated with this LogFactory.");
- }
- logFactoryClass = Class.forName(factoryClass);
- return logFactoryClass.newInstance();
- }
- catch (final Exception e3) {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("Unable to create LogFactory instance.");
- }
- if (logFactoryClass != null && !LogFactory.class.isAssignableFrom(logFactoryClass)) {
- return new LogConfigurationException("The chosen LogFactory implementation does not extend LogFactory. Please check your configuration.", (Throwable)e3);
- }
- return new LogConfigurationException((Throwable)e3);
- }
+ private static Enumeration getResources(final ClassLoader loader, final String name) {
+ final PrivilegedAction action = (PrivilegedAction)new LogFactory.LogFactory$4(loader, name);
+ final Object result = AccessController.doPrivileged((PrivilegedAction<Object>)action);
+ return (Enumeration)result;
}
private static boolean implementsLogFactory(final Class logFactoryClass) {
boolean implementsLogFactory = false;
if (logFactoryClass != null) {
try {
final ClassLoader logFactoryClassLoader = logFactoryClass.getClassLoader();
@@ -433,110 +458,25 @@
}
catch (final SecurityException e) {
logDiagnostic("[CUSTOM LOG FACTORY] SecurityException thrown whilst trying to determine whether the compatibility was caused by a classloader conflict: " + e.getMessage());
}
catch (final LinkageError e2) {
logDiagnostic("[CUSTOM LOG FACTORY] LinkageError thrown whilst trying to determine whether the compatibility was caused by a classloader conflict: " + e2.getMessage());
}
- catch (final ClassNotFoundException e3) {
+ catch (final ClassNotFoundException ex) {
logDiagnostic("[CUSTOM LOG FACTORY] LogFactory class cannot be loaded by classloader which loaded the custom LogFactory implementation. Is the custom factory in the right classloader?");
}
}
return implementsLogFactory;
}
- private static InputStream getResourceAsStream(final ClassLoader loader, final String name) {
- return AccessController.doPrivileged((PrivilegedAction<InputStream>)new LogFactory.LogFactory$3(loader, name));
- }
-
- private static Enumeration getResources(final ClassLoader loader, final String name) {
- final PrivilegedAction action = (PrivilegedAction)new LogFactory.LogFactory$4(loader, name);
- final Object result = AccessController.doPrivileged((PrivilegedAction<Object>)action);
- return (Enumeration)result;
- }
-
- private static Properties getProperties(final URL url) {
- final PrivilegedAction action = (PrivilegedAction)new LogFactory.LogFactory$5(url);
- return AccessController.doPrivileged((PrivilegedAction<Properties>)action);
- }
-
- private static final Properties getConfigurationFile(final ClassLoader classLoader, final String fileName) {
- Properties props = null;
- double priority = 0.0;
- URL propsUrl = null;
- try {
- final Enumeration urls = getResources(classLoader, fileName);
- if (urls == null) {
- return null;
- }
- while (urls.hasMoreElements()) {
- final URL url = (URL)urls.nextElement();
- final Properties newProps = getProperties(url);
- if (newProps != null) {
- if (props == null) {
- propsUrl = url;
- props = newProps;
- final String priorityStr = props.getProperty("priority");
- priority = 0.0;
- if (priorityStr != null) {
- priority = Double.parseDouble(priorityStr);
- }
- if (!isDiagnosticsEnabled()) {
- continue;
- }
- logDiagnostic("[LOOKUP] Properties file found at '" + url + "'" + " with priority " + priority);
- }
- else {
- final String newPriorityStr = newProps.getProperty("priority");
- double newPriority = 0.0;
- if (newPriorityStr != null) {
- newPriority = Double.parseDouble(newPriorityStr);
- }
- if (newPriority > priority) {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("[LOOKUP] Properties file at '" + url + "'" + " with priority " + newPriority + " overrides file at '" + propsUrl + "'" + " with priority " + priority);
- }
- propsUrl = url;
- props = newProps;
- priority = newPriority;
- }
- else {
- if (!isDiagnosticsEnabled()) {
- continue;
- }
- logDiagnostic("[LOOKUP] Properties file at '" + url + "'" + " with priority " + newPriority + " does not override file at '" + propsUrl + "'" + " with priority " + priority);
- }
- }
- }
- }
- }
- catch (final SecurityException e) {
- if (isDiagnosticsEnabled()) {
- logDiagnostic("SecurityException thrown while trying to find/read config files.");
- }
- }
- if (isDiagnosticsEnabled()) {
- if (props == null) {
- logDiagnostic("[LOOKUP] No properties file of name '" + fileName + "' found.");
- }
- else {
- logDiagnostic("[LOOKUP] Properties file of name '" + fileName + "' found at '" + propsUrl + '\"');
- }
- }
- return props;
- }
-
- private static String getSystemProperty(final String key, final String def) throws SecurityException {
- return AccessController.doPrivileged((PrivilegedAction<String>)new LogFactory.LogFactory$6(key, def));
- }
-
private static void initDiagnostics() {
String dest;
try {
- dest = getSystemProperty("org.apache.commons.logging.diagnostics.dest", null);
+ dest = System.getProperty("org.apache.commons.logging.diagnostics.dest");
if (dest == null) {
return;
}
}
catch (final SecurityException ex) {
return;
}
@@ -551,49 +491,31 @@
final FileOutputStream fos = new FileOutputStream(dest, true);
LogFactory.diagnosticsStream = new PrintStream(fos);
}
catch (final IOException ex2) {
return;
}
}
- String classLoaderName;
+ String classLoaderName = null;
try {
final ClassLoader classLoader = LogFactory.thisClassLoader;
- if (LogFactory.thisClassLoader == null) {
- classLoaderName = "BOOTLOADER";
- }
- else {
- classLoaderName = objectId(classLoader);
+ if (LogFactory.thisClassLoader != null) {
+ objectId(classLoader);
}
}
- catch (final SecurityException e) {
+ catch (final SecurityException ex3) {
classLoaderName = "UNKNOWN";
}
LogFactory.diagnosticPrefix = "[LogFactory from " + classLoaderName + "] ";
}
protected static boolean isDiagnosticsEnabled() {
return LogFactory.diagnosticsStream != null;
}
- private static final void logDiagnostic(final String msg) {
- if (LogFactory.diagnosticsStream != null) {
- LogFactory.diagnosticsStream.print(LogFactory.diagnosticPrefix);
- LogFactory.diagnosticsStream.println(msg);
- LogFactory.diagnosticsStream.flush();
- }
- }
-
- protected static final void logRawDiagnostic(final String msg) {
- if (LogFactory.diagnosticsStream != null) {
- LogFactory.diagnosticsStream.println(msg);
- LogFactory.diagnosticsStream.flush();
- }
- }
-
private static void logClassLoaderEnvironment(final Class clazz) {
if (!isDiagnosticsEnabled()) {
return;
}
try {
logDiagnostic("[ENV] Extension directories (java.ext.dir): " + System.getProperty("java.ext.dir"));
logDiagnostic("[ENV] Application classpath (java.class.path): " + System.getProperty("java.class.path"));
@@ -610,70 +532,138 @@
logDiagnostic("[ENV] Security forbids determining the classloader for " + className);
return;
}
logDiagnostic("[ENV] Class " + className + " was loaded via classloader " + objectId((Object)classLoader));
logHierarchy("[ENV] Ancestry of classloader which loaded " + className + " is ", classLoader);
}
+ private static final void logDiagnostic(final String msg) {
+ if (LogFactory.diagnosticsStream != null) {
+ LogFactory.diagnosticsStream.print(LogFactory.diagnosticPrefix);
+ LogFactory.diagnosticsStream.println(msg);
+ LogFactory.diagnosticsStream.flush();
+ }
+ }
+
private static void logHierarchy(final String prefix, ClassLoader classLoader) {
if (!isDiagnosticsEnabled()) {
return;
}
if (classLoader != null) {
final String classLoaderString = classLoader.toString();
- logDiagnostic(prefix + objectId((Object)classLoader) + " == '" + classLoaderString + "'");
+ logDiagnostic(String.valueOf(prefix) + objectId((Object)classLoader) + " == '" + classLoaderString + "'");
}
ClassLoader systemClassLoader;
try {
systemClassLoader = ClassLoader.getSystemClassLoader();
}
catch (final SecurityException ex) {
- logDiagnostic(prefix + "Security forbids determining the system classloader.");
+ logDiagnostic(String.valueOf(prefix) + "Security forbids determining the system classloader.");
return;
}
if (classLoader != null) {
- final StringBuffer buf = new StringBuffer(prefix + "ClassLoader tree:");
- Label_0178:
+ final StringBuffer buf = new StringBuffer(String.valueOf(prefix) + "ClassLoader tree:");
+ Label_0177:
while (true) {
do {
buf.append(objectId((Object)classLoader));
if (classLoader == systemClassLoader) {
buf.append(" (SYSTEM) ");
}
try {
classLoader = classLoader.getParent();
}
catch (final SecurityException ex2) {
buf.append(" --> SECRET");
- break Label_0178;
+ break Label_0177;
}
buf.append(" --> ");
continue;
logDiagnostic(buf.toString());
return;
} while (classLoader != null);
buf.append("BOOT");
- continue Label_0178;
+ continue Label_0177;
}
}
}
+ protected static final void logRawDiagnostic(final String msg) {
+ if (LogFactory.diagnosticsStream != null) {
+ LogFactory.diagnosticsStream.println(msg);
+ LogFactory.diagnosticsStream.flush();
+ }
+ }
+
+ protected static LogFactory newFactory(final String factoryClass, final ClassLoader classLoader) {
+ return newFactory(factoryClass, classLoader, null);
+ }
+
+ protected static LogFactory newFactory(final String factoryClass, final ClassLoader classLoader, final ClassLoader contextClassLoader) throws LogConfigurationException {
+ final Object result = AccessController.doPrivileged((PrivilegedAction<Object>)new LogFactory.LogFactory$2(classLoader, factoryClass));
+ if (result instanceof LogConfigurationException) {
+ final LogConfigurationException ex = (LogConfigurationException)result;
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("An error occurred while loading the factory class:" + ((Throwable)ex).getMessage());
+ }
+ throw ex;
+ }
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("Created object " + objectId(result) + " to manage classloader " + objectId((Object)contextClassLoader));
+ }
+ return (LogFactory)result;
+ }
+
public static String objectId(final Object o) {
if (o == null) {
return "null";
}
- return o.getClass().getName() + "@" + System.identityHashCode(o);
+ return String.valueOf(o.getClass().getName()) + "@" + System.identityHashCode(o);
}
- static {
- LogFactory.diagnosticsStream = null;
- LogFactory.factories = null;
- LogFactory.nullClassLoaderFactory = null;
- LogFactory.thisClassLoader = getClassLoader(LogFactory.class);
- initDiagnostics();
- logClassLoaderEnvironment(LogFactory.class);
- LogFactory.factories = createFactoryStore();
+ public abstract void release();
+
+ public static void release(final ClassLoader classLoader) {
if (isDiagnosticsEnabled()) {
- logDiagnostic("BOOTSTRAP COMPLETED");
+ logDiagnostic("Releasing factory for classloader " + objectId((Object)classLoader));
+ }
+ synchronized (LogFactory.factories) {
+ if (classLoader == null) {
+ if (LogFactory.nullClassLoaderFactory != null) {
+ LogFactory.nullClassLoaderFactory.release();
+ LogFactory.nullClassLoaderFactory = null;
+ }
+ }
+ else {
+ final LogFactory factory = (LogFactory)LogFactory.factories.get(classLoader);
+ if (factory != null) {
+ factory.release();
+ LogFactory.factories.remove(classLoader);
+ }
+ }
+ monitorexit(LogFactory.factories);
+ }
+ }
+
+ public static void releaseAll() {
+ if (isDiagnosticsEnabled()) {
+ logDiagnostic("Releasing factory for all classloaders.");
+ }
+ synchronized (LogFactory.factories) {
+ final Enumeration elements = LogFactory.factories.elements();
+ while (elements.hasMoreElements()) {
+ final LogFactory element = (LogFactory)elements.nextElement();
+ element.release();
+ }
+ LogFactory.factories.clear();
+ if (LogFactory.nullClassLoaderFactory != null) {
+ LogFactory.nullClassLoaderFactory.release();
+ LogFactory.nullClassLoaderFactory = null;
+ }
+ monitorexit(LogFactory.factories);
}
}
+
+ public abstract void removeAttribute(final String p0);
+
+ public abstract void setAttribute(final String p0, final Object p1);
}
@@ -2,18 +2,18 @@
package org.apache.commons.logging.impl;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
private static final class WeakKey extends WeakReference
{
- private final WeakHashtable.Referenced referenced;
+ private final WeakHashtable$Referenced referenced;
- private WeakKey(final Object key, final ReferenceQueue queue, final WeakHashtable.Referenced referenced) {
+ private WeakKey(final Object key, final ReferenceQueue queue, final WeakHashtable$Referenced referenced) {
super(key, queue);
this.referenced = referenced;
}
- private WeakHashtable.Referenced getReferenced() {
+ private WeakHashtable$Referenced getReferenced() {
return this.referenced;
}
}
@@ -3,26 +3,26 @@
import java.io.InputStream;
import java.io.IOException;
import java.util.Properties;
import java.net.URL;
import java.security.PrivilegedAction;
-static class LogFactory$5 implements PrivilegedAction {
+private final class LogFactory$5 implements PrivilegedAction {
public Object run() {
try {
final InputStream stream = this.val$url.openStream();
if (stream != null) {
final Properties props = new Properties();
props.load(stream);
stream.close();
return props;
}
}
- catch (final IOException e) {
+ catch (final IOException ex) {
if (LogFactory.isDiagnosticsEnabled()) {
- LogFactory.access$000("Unable to read URL " + this.val$url);
+ LogFactory.access$0("Unable to read URL " + this.val$url);
}
}
return null;
}
}
@@ -1,12 +1,28 @@
package org.apache.commons.logging;
public interface Log
{
+ void debug(final Object p0);
+
+ void debug(final Object p0, final Throwable p1);
+
+ void error(final Object p0);
+
+ void error(final Object p0, final Throwable p1);
+
+ void fatal(final Object p0);
+
+ void fatal(final Object p0, final Throwable p1);
+
+ void info(final Object p0);
+
+ void info(final Object p0, final Throwable p1);
+
boolean isDebugEnabled();
boolean isErrorEnabled();
boolean isFatalEnabled();
boolean isInfoEnabled();
@@ -15,27 +31,11 @@
boolean isWarnEnabled();
void trace(final Object p0);
void trace(final Object p0, final Throwable p1);
- void debug(final Object p0);
-
- void debug(final Object p0, final Throwable p1);
-
- void info(final Object p0);
-
- void info(final Object p0, final Throwable p1);
-
void warn(final Object p0);
void warn(final Object p0, final Throwable p1);
-
- void error(final Object p0);
-
- void error(final Object p0, final Throwable p1);
-
- void fatal(final Object p0);
-
- void fatal(final Object p0, final Throwable p1);
}
@@ -1,10 +1,10 @@
package org.apache.commons.logging;
import java.security.PrivilegedAction;
-static class LogFactory$1 implements PrivilegedAction {
+private final class LogFactory$1 implements PrivilegedAction {
public Object run() {
return LogFactory.directGetContextClassLoader();
}
}
@@ -1,10 +1,10 @@
package org.apache.commons.logging;
import java.security.PrivilegedAction;
-static class LogFactory$2 implements PrivilegedAction {
+private final class LogFactory$2 implements PrivilegedAction {
public Object run() {
return LogFactory.createFactory(this.val$factoryClass, this.val$classLoader);
}
}
@@ -6,17 +6,27 @@
import java.lang.reflect.InvocationTargetException;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class ServletContextCleaner implements ServletContextListener
{
private Class[] RELEASE_SIGNATURE;
+ static /* synthetic */ Class class$java$lang$ClassLoader;
public ServletContextCleaner() {
- this.RELEASE_SIGNATURE = new Class[] { ClassLoader.class };
+ this.RELEASE_SIGNATURE = new Class[] { (ServletContextCleaner.class$java$lang$ClassLoader != null) ? ServletContextCleaner.class$java$lang$ClassLoader : (ServletContextCleaner.class$java$lang$ClassLoader = class$("java.lang.ClassLoader")) };
+ }
+
+ static /* synthetic */ Class class$(final String class$) {
+ try {
+ return Class.forName(class$);
+ }
+ catch (final ClassNotFoundException forName) {
+ throw new NoClassDefFoundError(forName.getMessage());
+ }
}
public void contextDestroyed(final ServletContextEvent sce) {
final ClassLoader tccl = Thread.currentThread().getContextClassLoader();
final Object[] params = { tccl };
ClassLoader loader = tccl;
while (loader != null) {
@@ -1,14 +1,14 @@
package org.apache.commons.logging.impl;
import java.security.PrivilegedAction;
-static class SimpleLog$1 implements PrivilegedAction {
+private final class SimpleLog$1 implements PrivilegedAction {
public Object run() {
- final ClassLoader threadCL = SimpleLog.access$000();
+ final ClassLoader threadCL = SimpleLog.access$0();
if (threadCL != null) {
return threadCL.getResourceAsStream(this.val$name);
}
return ClassLoader.getSystemResourceAsStream(this.val$name);
}
}
@@ -19,15 +19,15 @@
public WeakHashtable() {
this.queue = new ReferenceQueue();
this.changeCount = 0;
}
public boolean containsKey(final Object key) {
- final WeakHashtable.Referenced referenced = new WeakHashtable.Referenced(key, (WeakHashtable.WeakHashtable$1)null);
+ final WeakHashtable.Referenced referenced = new WeakHashtable.Referenced((WeakHashtable.2)null, key);
return super.containsKey(referenced);
}
public Enumeration elements() {
this.purge();
return super.elements();
}
@@ -36,126 +36,129 @@
this.purge();
final Set referencedEntries = super.entrySet();
final Set unreferencedEntries = new HashSet();
final Iterator it = referencedEntries.iterator();
while (it.hasNext()) {
final Map.Entry entry = (Map.Entry)it.next();
final WeakHashtable.Referenced referencedKey = (WeakHashtable.Referenced)entry.getKey();
- final Object key = WeakHashtable.Referenced.access$100(referencedKey);
+ final Object key = WeakHashtable.Referenced.access$0(referencedKey);
final Object value = entry.getValue();
if (key != null) {
- final WeakHashtable.Entry dereferencedEntry = new WeakHashtable.Entry(key, value, (WeakHashtable.WeakHashtable$1)null);
+ final WeakHashtable.Entry dereferencedEntry = new WeakHashtable.Entry((WeakHashtable.2)null, key, value);
unreferencedEntries.add(dereferencedEntry);
}
}
return unreferencedEntries;
}
public Object get(final Object key) {
- final WeakHashtable.Referenced referenceKey = new WeakHashtable.Referenced(key, (WeakHashtable.WeakHashtable$1)null);
+ final WeakHashtable.Referenced referenceKey = new WeakHashtable.Referenced((WeakHashtable.2)null, key);
return super.get(referenceKey);
}
- public Enumeration keys() {
+ public boolean isEmpty() {
this.purge();
- final Enumeration enumer = super.keys();
- return (Enumeration)new WeakHashtable.WeakHashtable$1(this, enumer);
+ return super.isEmpty();
}
public Set keySet() {
this.purge();
final Set referencedKeys = super.keySet();
final Set unreferencedKeys = new HashSet();
final Iterator it = referencedKeys.iterator();
while (it.hasNext()) {
final WeakHashtable.Referenced referenceKey = (WeakHashtable.Referenced)it.next();
- final Object keyValue = WeakHashtable.Referenced.access$100(referenceKey);
+ final Object keyValue = WeakHashtable.Referenced.access$0(referenceKey);
if (keyValue != null) {
unreferencedKeys.add(keyValue);
}
}
return unreferencedKeys;
}
+ public Enumeration keys() {
+ this.purge();
+ final Enumeration enumer = super.keys();
+ return (Enumeration)new WeakHashtable.WeakHashtable$1(enumer);
+ }
+
+ private void purge() {
+ synchronized (this.queue) {
+ WeakHashtable.WeakKey key;
+ while ((key = (WeakHashtable.WeakKey)this.queue.poll()) != null) {
+ super.remove(WeakHashtable.WeakKey.access$0(key));
+ }
+ monitorexit(this.queue);
+ }
+ }
+
+ private void purgeOne() {
+ synchronized (this.queue) {
+ final WeakHashtable.WeakKey key = (WeakHashtable.WeakKey)this.queue.poll();
+ if (key != null) {
+ super.remove(WeakHashtable.WeakKey.access$0(key));
+ }
+ monitorexit(this.queue);
+ }
+ }
+
public Object put(final Object key, final Object value) {
if (key == null) {
throw new NullPointerException("Null keys are not allowed");
}
if (value == null) {
throw new NullPointerException("Null values are not allowed");
}
if (this.changeCount++ > 100) {
this.purge();
this.changeCount = 0;
}
else if (this.changeCount % 10 == 0) {
this.purgeOne();
}
- final WeakHashtable.Referenced keyRef = new WeakHashtable.Referenced(key, this.queue, (WeakHashtable.WeakHashtable$1)null);
+ final Object result = null;
+ final WeakHashtable.Referenced keyRef = new WeakHashtable.Referenced((WeakHashtable.2)null, key, this.queue);
return super.put(keyRef, value);
}
public void putAll(final Map t) {
if (t != null) {
final Set entrySet = t.entrySet();
final Iterator it = entrySet.iterator();
while (it.hasNext()) {
final Map.Entry entry = (Map.Entry)it.next();
this.put(entry.getKey(), entry.getValue());
}
}
}
- public Collection values() {
+ protected void rehash() {
this.purge();
- return super.values();
+ super.rehash();
}
public Object remove(final Object key) {
if (this.changeCount++ > 100) {
this.purge();
this.changeCount = 0;
}
else if (this.changeCount % 10 == 0) {
this.purgeOne();
}
- return super.remove(new WeakHashtable.Referenced(key, (WeakHashtable.WeakHashtable$1)null));
- }
-
- public boolean isEmpty() {
- this.purge();
- return super.isEmpty();
+ return super.remove(new WeakHashtable.Referenced((WeakHashtable.2)null, key));
}
public int size() {
this.purge();
return super.size();
}
public String toString() {
this.purge();
return super.toString();
}
- protected void rehash() {
+ public Collection values() {
this.purge();
- super.rehash();
- }
-
- private void purge() {
- synchronized (this.queue) {
- WeakHashtable.WeakKey key;
- while ((key = (WeakHashtable.WeakKey)this.queue.poll()) != null) {
- super.remove(WeakHashtable.WeakKey.access$400(key));
- }
- }
- }
-
- private void purgeOne() {
- synchronized (this.queue) {
- final WeakHashtable.WeakKey key = (WeakHashtable.WeakKey)this.queue.poll();
- if (key != null) {
- super.remove(WeakHashtable.WeakKey.access$400(key));
- }
- }
+ return super.values();
}
}
@@ -11,26 +11,18 @@
private Referenced(final Object referant) {
this.reference = new WeakReference((T)referant);
this.hashCode = referant.hashCode();
}
private Referenced(final Object key, final ReferenceQueue queue) {
- this.reference = (WeakReference)new WeakHashtable.WeakKey(key, queue, this, (WeakHashtable.WeakHashtable$1)null);
+ this.reference = (WeakReference)new WeakHashtable$WeakKey((WeakHashtable$2)null, key, queue, this);
this.hashCode = key.hashCode();
}
- public int hashCode() {
- return this.hashCode;
- }
-
- private Object getValue() {
- return this.reference.get();
- }
-
public boolean equals(final Object o) {
boolean result = false;
if (o instanceof Referenced) {
final Referenced otherKey = (Referenced)o;
final Object thisKeyValue = this.getValue();
final Object otherKeyValue = otherKey.getValue();
if (thisKeyValue == null) {
@@ -41,8 +33,16 @@
}
else {
result = thisKeyValue.equals(otherKeyValue);
}
}
return result;
}
+
+ private Object getValue() {
+ return this.reference.get();
+ }
+
+ public int hashCode() {
+ return this.hashCode;
+ }
}
@@ -8,125 +8,124 @@
public class LogSource
{
protected static Hashtable logs;
protected static boolean log4jIsAvailable;
protected static boolean jdk14IsAvailable;
protected static Constructor logImplctor;
- private LogSource() {
- }
-
- public static void setLogImplementation(final String classname) throws LinkageError, ExceptionInInitializerError, NoSuchMethodException, SecurityException, ClassNotFoundException {
- try {
- final Class logclass = Class.forName(classname);
- final Class[] argtypes = { "".getClass() };
- LogSource.logImplctor = logclass.getConstructor((Class[])argtypes);
- }
- catch (final Throwable t) {
- LogSource.logImplctor = null;
- }
- }
-
- public static void setLogImplementation(final Class logclass) throws LinkageError, ExceptionInInitializerError, NoSuchMethodException, SecurityException {
- final Class[] argtypes = { "".getClass() };
- LogSource.logImplctor = logclass.getConstructor((Class[])argtypes);
- }
-
- public static Log getInstance(final String name) {
- Log log = (Log)LogSource.logs.get(name);
- if (null == log) {
- log = makeNewLogInstance(name);
- LogSource.logs.put(name, log);
- }
- return log;
- }
-
- public static Log getInstance(final Class clazz) {
- return getInstance(clazz.getName());
- }
-
- public static Log makeNewLogInstance(final String name) {
- Log log = null;
- try {
- final Object[] args = { name };
- log = LogSource.logImplctor.newInstance(args);
- }
- catch (final Throwable t) {
- log = null;
- }
- if (null == log) {
- log = (Log)new NoOpLog(name);
- }
- return log;
- }
-
- public static String[] getLogNames() {
- return (String[])LogSource.logs.keySet().toArray(new String[LogSource.logs.size()]);
- }
-
static {
LogSource.logs = new Hashtable();
LogSource.log4jIsAvailable = false;
LogSource.jdk14IsAvailable = false;
LogSource.logImplctor = null;
try {
- if (null != Class.forName("org.apache.log4j.Logger")) {
+ if (Class.forName("org.apache.log4j.Logger") != null) {
LogSource.log4jIsAvailable = true;
}
else {
LogSource.log4jIsAvailable = false;
}
}
catch (final Throwable t) {
LogSource.log4jIsAvailable = false;
}
try {
- if (null != Class.forName("java.util.logging.Logger") && null != Class.forName("org.apache.commons.logging.impl.Jdk14Logger")) {
+ if (Class.forName("java.util.logging.Logger") != null && Class.forName("org.apache.commons.logging.impl.Jdk14Logger") != null) {
LogSource.jdk14IsAvailable = true;
}
else {
LogSource.jdk14IsAvailable = false;
}
}
- catch (final Throwable t) {
+ catch (final Throwable t2) {
LogSource.jdk14IsAvailable = false;
}
String name = null;
try {
name = System.getProperty("org.apache.commons.logging.log");
if (name == null) {
name = System.getProperty("org.apache.commons.logging.Log");
}
}
catch (final Throwable t3) {}
if (name != null) {
try {
setLogImplementation(name);
+ return;
}
- catch (final Throwable t2) {
+ catch (final Throwable t4) {
try {
setLogImplementation("org.apache.commons.logging.impl.NoOpLog");
}
- catch (final Throwable t4) {}
+ catch (final Throwable t5) {}
}
}
- else {
- try {
- if (LogSource.log4jIsAvailable) {
- setLogImplementation("org.apache.commons.logging.impl.Log4JLogger");
- }
- else if (LogSource.jdk14IsAvailable) {
- setLogImplementation("org.apache.commons.logging.impl.Jdk14Logger");
- }
- else {
- setLogImplementation("org.apache.commons.logging.impl.NoOpLog");
- }
+ try {
+ if (LogSource.log4jIsAvailable) {
+ setLogImplementation("org.apache.commons.logging.impl.Log4JLogger");
}
- catch (final Throwable t2) {
- try {
- setLogImplementation("org.apache.commons.logging.impl.NoOpLog");
- }
- catch (final Throwable t5) {}
+ else if (LogSource.jdk14IsAvailable) {
+ setLogImplementation("org.apache.commons.logging.impl.Jdk14Logger");
+ }
+ else {
+ setLogImplementation("org.apache.commons.logging.impl.NoOpLog");
+ }
+ }
+ catch (final Throwable t6) {
+ try {
+ setLogImplementation("org.apache.commons.logging.impl.NoOpLog");
}
+ catch (final Throwable t7) {}
+ }
+ }
+
+ private LogSource() {
+ }
+
+ public static Log getInstance(final Class clazz) {
+ return getInstance(clazz.getName());
+ }
+
+ public static Log getInstance(final String name) {
+ Log log = (Log)LogSource.logs.get(name);
+ if (log == null) {
+ log = makeNewLogInstance(name);
+ LogSource.logs.put(name, log);
+ }
+ return log;
+ }
+
+ public static String[] getLogNames() {
+ return (String[])LogSource.logs.keySet().toArray(new String[LogSource.logs.size()]);
+ }
+
+ public static Log makeNewLogInstance(final String name) {
+ Log log = null;
+ try {
+ final Object[] args = { name };
+ log = LogSource.logImplctor.newInstance(args);
+ }
+ catch (final Throwable t) {
+ log = null;
+ }
+ if (log == null) {
+ log = (Log)new NoOpLog(name);
+ }
+ return log;
+ }
+
+ public static void setLogImplementation(final Class logclass) throws LinkageError, ExceptionInInitializerError, NoSuchMethodException, SecurityException {
+ final Class[] argtypes = { "".getClass() };
+ LogSource.logImplctor = logclass.getConstructor((Class[])argtypes);
+ }
+
+ public static void setLogImplementation(final String classname) throws LinkageError, ExceptionInInitializerError, NoSuchMethodException, SecurityException, ClassNotFoundException {
+ try {
+ final Class logclass = Class.forName(classname);
+ final Class[] argtypes = { "".getClass() };
+ LogSource.logImplctor = logclass.getConstructor((Class[])argtypes);
+ }
+ catch (final Throwable t) {
+ LogSource.logImplctor = null;
}
}
}
@@ -1,23 +1,38 @@
package org.apache.commons.logging.impl;
import org.apache.log4j.Category;
-import org.apache.log4j.Level;
import org.apache.log4j.Priority;
import org.apache.log4j.Logger;
import java.io.Serializable;
import org.apache.commons.logging.Log;
public class Log4JLogger implements Log, Serializable
{
private static final String FQCN;
private transient Logger logger;
private String name;
private static Priority traceLevel;
+ static /* synthetic */ Class class$org$apache$commons$logging$impl$Log4JLogger;
+ static /* synthetic */ Class class$org$apache$log4j$Priority;
+ static /* synthetic */ Class class$org$apache$log4j$Level;
+
+ static {
+ FQCN = ((Log4JLogger.class$org$apache$commons$logging$impl$Log4JLogger != null) ? Log4JLogger.class$org$apache$commons$logging$impl$Log4JLogger : (Log4JLogger.class$org$apache$commons$logging$impl$Log4JLogger = class$("org.apache.commons.logging.impl.Log4JLogger"))).getName();
+ if (!((Log4JLogger.class$org$apache$log4j$Priority != null) ? Log4JLogger.class$org$apache$log4j$Priority : (Log4JLogger.class$org$apache$log4j$Priority = class$("org.apache.log4j.Priority"))).isAssignableFrom((Log4JLogger.class$org$apache$log4j$Level != null) ? Log4JLogger.class$org$apache$log4j$Level : (Log4JLogger.class$org$apache$log4j$Level = class$("org.apache.log4j.Level")))) {
+ throw new InstantiationError("Log4J 1.2 not available");
+ }
+ try {
+ Log4JLogger.traceLevel = (Priority)((Log4JLogger.class$org$apache$log4j$Level != null) ? Log4JLogger.class$org$apache$log4j$Level : (Log4JLogger.class$org$apache$log4j$Level = class$("org.apache.log4j.Level"))).getDeclaredField("TRACE").get(null);
+ }
+ catch (final Exception ex) {
+ Log4JLogger.traceLevel = Priority.DEBUG;
+ }
+ }
public Log4JLogger() {
this.logger = null;
this.name = null;
}
public Log4JLogger(final String name) {
@@ -26,53 +41,35 @@
this.name = name;
this.logger = this.getLogger();
}
public Log4JLogger(final Logger logger) {
this.logger = null;
this.name = null;
- if (logger == null) {
- throw new IllegalArgumentException("Warning - null logger in constructor; possible log4j misconfiguration.");
- }
this.name = ((Category)logger).getName();
this.logger = logger;
}
- public void trace(final Object message) {
- ((Category)this.getLogger()).log(Log4JLogger.FQCN, Log4JLogger.traceLevel, message, (Throwable)null);
- }
-
- public void trace(final Object message, final Throwable t) {
- ((Category)this.getLogger()).log(Log4JLogger.FQCN, Log4JLogger.traceLevel, message, t);
+ static /* synthetic */ Class class$(final String class$) {
+ try {
+ return Class.forName(class$);
+ }
+ catch (final ClassNotFoundException forName) {
+ throw new NoClassDefFoundError(forName.getMessage());
+ }
}
public void debug(final Object message) {
((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.DEBUG, message, (Throwable)null);
}
public void debug(final Object message, final Throwable t) {
((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.DEBUG, message, t);
}
- public void info(final Object message) {
- ((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.INFO, message, (Throwable)null);
- }
-
- public void info(final Object message, final Throwable t) {
- ((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.INFO, message, t);
- }
-
- public void warn(final Object message) {
- ((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.WARN, message, (Throwable)null);
- }
-
- public void warn(final Object message, final Throwable t) {
- ((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.WARN, message, t);
- }
-
public void error(final Object message) {
((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.ERROR, message, (Throwable)null);
}
public void error(final Object message, final Throwable t) {
((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.ERROR, message, t);
}
@@ -88,14 +85,22 @@
public Logger getLogger() {
if (this.logger == null) {
this.logger = Logger.getLogger(this.name);
}
return this.logger;
}
+ public void info(final Object message) {
+ ((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.INFO, message, (Throwable)null);
+ }
+
+ public void info(final Object message, final Throwable t) {
+ ((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.INFO, message, t);
+ }
+
public boolean isDebugEnabled() {
return ((Category)this.getLogger()).isDebugEnabled();
}
public boolean isErrorEnabled() {
return ((Category)this.getLogger()).isEnabledFor(Priority.ERROR);
}
@@ -112,20 +117,23 @@
return ((Category)this.getLogger()).isEnabledFor(Log4JLogger.traceLevel);
}
public boolean isWarnEnabled() {
return ((Category)this.getLogger()).isEnabledFor(Priority.WARN);
}
- static {
- FQCN = Log4JLogger.class.getName();
- if (!Priority.class.isAssignableFrom(Level.class)) {
- throw new InstantiationError("Log4J 1.2 not available");
- }
- try {
- Log4JLogger.traceLevel = (Priority)Level.class.getDeclaredField("TRACE").get(null);
- }
- catch (final Exception ex) {
- Log4JLogger.traceLevel = Priority.DEBUG;
- }
+ public void trace(final Object message) {
+ ((Category)this.getLogger()).log(Log4JLogger.FQCN, Log4JLogger.traceLevel, message, (Throwable)null);
+ }
+
+ public void trace(final Object message, final Throwable t) {
+ ((Category)this.getLogger()).log(Log4JLogger.FQCN, Log4JLogger.traceLevel, message, t);
+ }
+
+ public void warn(final Object message) {
+ ((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.WARN, message, (Throwable)null);
+ }
+
+ public void warn(final Object message, final Throwable t) {
+ ((Category)this.getLogger()).log(Log4JLogger.FQCN, Priority.WARN, message, t);
}
}
@@ -1,15 +1,15 @@
package org.apache.commons.logging.impl;
import java.util.Enumeration;
-class WeakHashtable$1 implements Enumeration {
+private final class WeakHashtable$1 implements Enumeration {
public boolean hasMoreElements() {
return this.val$enumer.hasMoreElements();
}
public Object nextElement() {
- final WeakHashtable.Referenced nextReference = (WeakHashtable.Referenced)this.val$enumer.nextElement();
- return WeakHashtable.Referenced.access$100(nextReference);
+ final WeakHashtable$Referenced nextReference = (WeakHashtable$Referenced)this.val$enumer.nextElement();
+ return WeakHashtable$Referenced.access$0(nextReference);
}
}
@@ -1,25 +1,25 @@
package org.apache.commons.logging;
import java.io.IOException;
import java.security.PrivilegedAction;
-static class LogFactory$4 implements PrivilegedAction {
+private final class LogFactory$4 implements PrivilegedAction {
public Object run() {
try {
if (this.val$loader != null) {
return this.val$loader.getResources(this.val$name);
}
return ClassLoader.getSystemResources(this.val$name);
}
catch (final IOException e) {
if (LogFactory.isDiagnosticsEnabled()) {
- LogFactory.access$000("Exception while trying to find configuration file " + this.val$name + ":" + e.getMessage());
+ LogFactory.access$0("Exception while trying to find configuration file " + this.val$name + ":" + e.getMessage());
}
return null;
}
- catch (final NoSuchMethodError e2) {
+ catch (final NoSuchMethodError noSuchMethodError) {
return null;
}
}
}
@@ -1,22 +1,22 @@
package org.apache.commons.logging.impl;
-import java.text.SimpleDateFormat;
-import java.io.IOException;
+import java.io.Writer;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.util.Date;
import java.security.PrivilegedAction;
import java.security.AccessController;
-import java.io.InputStream;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.logging.LogConfigurationException;
-import java.io.Writer;
-import java.io.PrintWriter;
-import java.io.StringWriter;
-import java.util.Date;
+import java.io.InputStream;
+import java.text.SimpleDateFormat;
+import java.io.IOException;
import java.text.DateFormat;
import java.util.Properties;
import java.io.Serializable;
import org.apache.commons.logging.Log;
public class SimpleLog implements Log, Serializable
{
@@ -35,44 +35,57 @@
public static final int LOG_LEVEL_ERROR = 5;
public static final int LOG_LEVEL_FATAL = 6;
public static final int LOG_LEVEL_ALL = 0;
public static final int LOG_LEVEL_OFF = 7;
protected String logName;
protected int currentLogLevel;
private String shortLogName;
+ static /* synthetic */ Class class$java$lang$Thread;
+ static /* synthetic */ Class class$org$apache$commons$logging$impl$SimpleLog;
- private static String getStringProperty(final String name) {
- String prop = null;
- try {
- prop = System.getProperty(name);
+ static {
+ simpleLogProps = new Properties();
+ SimpleLog.showLogName = false;
+ SimpleLog.showShortName = true;
+ SimpleLog.showDateTime = false;
+ SimpleLog.dateTimeFormat = "yyyy/MM/dd HH:mm:ss:SSS zzz";
+ SimpleLog.dateFormatter = null;
+ final InputStream in = getResourceAsStream("simplelog.properties");
+ if (in != null) {
+ try {
+ SimpleLog.simpleLogProps.load(in);
+ in.close();
+ }
+ catch (final IOException ex) {}
+ }
+ SimpleLog.showLogName = getBooleanProperty("org.apache.commons.logging.simplelog.showlogname", SimpleLog.showLogName);
+ SimpleLog.showShortName = getBooleanProperty("org.apache.commons.logging.simplelog.showShortLogname", SimpleLog.showShortName);
+ SimpleLog.showDateTime = getBooleanProperty("org.apache.commons.logging.simplelog.showdatetime", SimpleLog.showDateTime);
+ if (SimpleLog.showDateTime) {
+ SimpleLog.dateTimeFormat = getStringProperty("org.apache.commons.logging.simplelog.dateTimeFormat", SimpleLog.dateTimeFormat);
+ try {
+ SimpleLog.dateFormatter = new SimpleDateFormat(SimpleLog.dateTimeFormat);
+ }
+ catch (final IllegalArgumentException ex2) {
+ SimpleLog.dateTimeFormat = "yyyy/MM/dd HH:mm:ss:SSS zzz";
+ SimpleLog.dateFormatter = new SimpleDateFormat(SimpleLog.dateTimeFormat);
+ }
}
- catch (final SecurityException ex) {}
- return (prop == null) ? SimpleLog.simpleLogProps.getProperty(name) : prop;
- }
-
- private static String getStringProperty(final String name, final String dephault) {
- final String prop = getStringProperty(name);
- return (prop == null) ? dephault : prop;
- }
-
- private static boolean getBooleanProperty(final String name, final boolean dephault) {
- final String prop = getStringProperty(name);
- return (prop == null) ? dephault : "true".equalsIgnoreCase(prop);
}
public SimpleLog(String name) {
this.logName = null;
this.shortLogName = null;
this.logName = name;
this.setLevel(3);
String lvl = getStringProperty("org.apache.commons.logging.simplelog.log." + this.logName);
- for (int i = String.valueOf(name).lastIndexOf("."); null == lvl && i > -1; lvl = getStringProperty("org.apache.commons.logging.simplelog.log." + name), i = String.valueOf(name).lastIndexOf(".")) {
+ for (int i = String.valueOf(name).lastIndexOf("."); lvl == null && i > -1; lvl = getStringProperty("org.apache.commons.logging.simplelog.log." + name), i = String.valueOf(name).lastIndexOf(".")) {
name = name.substring(0, i);
}
- if (null == lvl) {
+ if (lvl == null) {
lvl = getStringProperty("org.apache.commons.logging.simplelog.defaultlog");
}
if ("all".equalsIgnoreCase(lvl)) {
this.setLevel(0);
}
else if ("trace".equalsIgnoreCase(lvl)) {
this.setLevel(1);
@@ -93,31 +106,153 @@
this.setLevel(6);
}
else if ("off".equalsIgnoreCase(lvl)) {
this.setLevel(7);
}
}
- public void setLevel(final int currentLogLevel) {
- this.currentLogLevel = currentLogLevel;
+ static /* synthetic */ Class class$(final String class$) {
+ try {
+ return Class.forName(class$);
+ }
+ catch (final ClassNotFoundException forName) {
+ throw new NoClassDefFoundError(forName.getMessage());
+ }
+ }
+
+ public final void debug(final Object message) {
+ if (this.isLevelEnabled(2)) {
+ this.log(2, message, null);
+ }
+ }
+
+ public final void debug(final Object message, final Throwable t) {
+ if (this.isLevelEnabled(2)) {
+ this.log(2, message, t);
+ }
+ }
+
+ public final void error(final Object message) {
+ if (this.isLevelEnabled(5)) {
+ this.log(5, message, null);
+ }
+ }
+
+ public final void error(final Object message, final Throwable t) {
+ if (this.isLevelEnabled(5)) {
+ this.log(5, message, t);
+ }
+ }
+
+ public final void fatal(final Object message) {
+ if (this.isLevelEnabled(6)) {
+ this.log(6, message, null);
+ }
+ }
+
+ public final void fatal(final Object message, final Throwable t) {
+ if (this.isLevelEnabled(6)) {
+ this.log(6, message, t);
+ }
+ }
+
+ private static boolean getBooleanProperty(final String name, final boolean dephault) {
+ final String prop = getStringProperty(name);
+ return (prop == null) ? dephault : "true".equalsIgnoreCase(prop);
+ }
+
+ private static ClassLoader getContextClassLoader() {
+ ClassLoader classLoader = null;
+ if (classLoader == null) {
+ try {
+ final Method method = ((SimpleLog.class$java$lang$Thread != null) ? SimpleLog.class$java$lang$Thread : (SimpleLog.class$java$lang$Thread = class$("java.lang.Thread"))).getMethod("getContextClassLoader", (Class[])null);
+ try {
+ classLoader = (ClassLoader)method.invoke(Thread.currentThread(), (Object[])null);
+ }
+ catch (final IllegalAccessException ex) {}
+ catch (final InvocationTargetException e) {
+ if (!(e.getTargetException() instanceof SecurityException)) {
+ throw new LogConfigurationException("Unexpected InvocationTargetException", e.getTargetException());
+ }
+ }
+ }
+ catch (final NoSuchMethodException ex2) {}
+ }
+ if (classLoader == null) {
+ classLoader = ((SimpleLog.class$org$apache$commons$logging$impl$SimpleLog != null) ? SimpleLog.class$org$apache$commons$logging$impl$SimpleLog : (SimpleLog.class$org$apache$commons$logging$impl$SimpleLog = class$("org.apache.commons.logging.impl.SimpleLog"))).getClassLoader();
+ }
+ return classLoader;
}
public int getLevel() {
return this.currentLogLevel;
}
+ private static InputStream getResourceAsStream(final String name) {
+ return AccessController.doPrivileged((PrivilegedAction<InputStream>)new SimpleLog.SimpleLog$1(name));
+ }
+
+ private static String getStringProperty(final String name) {
+ String prop = null;
+ try {
+ prop = System.getProperty(name);
+ }
+ catch (final SecurityException ex) {}
+ return (prop == null) ? SimpleLog.simpleLogProps.getProperty(name) : prop;
+ }
+
+ private static String getStringProperty(final String name, final String dephault) {
+ final String prop = getStringProperty(name);
+ return (prop == null) ? dephault : prop;
+ }
+
+ public final void info(final Object message) {
+ if (this.isLevelEnabled(3)) {
+ this.log(3, message, null);
+ }
+ }
+
+ public final void info(final Object message, final Throwable t) {
+ if (this.isLevelEnabled(3)) {
+ this.log(3, message, t);
+ }
+ }
+
+ public final boolean isDebugEnabled() {
+ return this.isLevelEnabled(2);
+ }
+
+ public final boolean isErrorEnabled() {
+ return this.isLevelEnabled(5);
+ }
+
+ public final boolean isFatalEnabled() {
+ return this.isLevelEnabled(6);
+ }
+
+ public final boolean isInfoEnabled() {
+ return this.isLevelEnabled(3);
+ }
+
+ protected boolean isLevelEnabled(final int logLevel) {
+ return logLevel >= this.currentLogLevel;
+ }
+
+ public final boolean isTraceEnabled() {
+ return this.isLevelEnabled(1);
+ }
+
+ public final boolean isWarnEnabled() {
+ return this.isLevelEnabled(4);
+ }
+
protected void log(final int type, final Object message, final Throwable t) {
final StringBuffer buf = new StringBuffer();
if (SimpleLog.showDateTime) {
- final Date now = new Date();
- final String dateText;
- synchronized (SimpleLog.dateFormatter) {
- dateText = SimpleLog.dateFormatter.format(now);
- }
- buf.append(dateText);
+ buf.append(SimpleLog.dateFormatter.format(new Date()));
buf.append(" ");
}
switch (type) {
case 1: {
buf.append("[TRACE] ");
break;
}
@@ -162,168 +297,39 @@
t.printStackTrace(pw);
pw.close();
buf.append(sw.toString());
}
this.write(buf);
}
- protected void write(final StringBuffer buffer) {
- System.err.println(buffer.toString());
- }
-
- protected boolean isLevelEnabled(final int logLevel) {
- return logLevel >= this.currentLogLevel;
- }
-
- public final void debug(final Object message) {
- if (this.isLevelEnabled(2)) {
- this.log(2, message, null);
- }
- }
-
- public final void debug(final Object message, final Throwable t) {
- if (this.isLevelEnabled(2)) {
- this.log(2, message, t);
- }
+ public void setLevel(final int currentLogLevel) {
+ this.currentLogLevel = currentLogLevel;
}
public final void trace(final Object message) {
if (this.isLevelEnabled(1)) {
this.log(1, message, null);
}
}
public final void trace(final Object message, final Throwable t) {
if (this.isLevelEnabled(1)) {
this.log(1, message, t);
}
}
- public final void info(final Object message) {
- if (this.isLevelEnabled(3)) {
- this.log(3, message, null);
- }
- }
-
- public final void info(final Object message, final Throwable t) {
- if (this.isLevelEnabled(3)) {
- this.log(3, message, t);
- }
- }
-
public final void warn(final Object message) {
if (this.isLevelEnabled(4)) {
this.log(4, message, null);
}
}
public final void warn(final Object message, final Throwable t) {
if (this.isLevelEnabled(4)) {
this.log(4, message, t);
}
}
- public final void error(final Object message) {
- if (this.isLevelEnabled(5)) {
- this.log(5, message, null);
- }
- }
-
- public final void error(final Object message, final Throwable t) {
- if (this.isLevelEnabled(5)) {
- this.log(5, message, t);
- }
- }
-
- public final void fatal(final Object message) {
- if (this.isLevelEnabled(6)) {
- this.log(6, message, null);
- }
- }
-
- public final void fatal(final Object message, final Throwable t) {
- if (this.isLevelEnabled(6)) {
- this.log(6, message, t);
- }
- }
-
- public final boolean isDebugEnabled() {
- return this.isLevelEnabled(2);
- }
-
- public final boolean isErrorEnabled() {
- return this.isLevelEnabled(5);
- }
-
- public final boolean isFatalEnabled() {
- return this.isLevelEnabled(6);
- }
-
- public final boolean isInfoEnabled() {
- return this.isLevelEnabled(3);
- }
-
- public final boolean isTraceEnabled() {
- return this.isLevelEnabled(1);
- }
-
- public final boolean isWarnEnabled() {
- return this.isLevelEnabled(4);
- }
-
- private static ClassLoader getContextClassLoader() {
- ClassLoader classLoader = null;
- if (classLoader == null) {
- try {
- final Method method = Thread.class.getMethod("getContextClassLoader", (Class[])null);
- try {
- classLoader = (ClassLoader)method.invoke(Thread.currentThread(), (Object[])null);
- }
- catch (final IllegalAccessException e) {}
- catch (final InvocationTargetException e2) {
- if (!(e2.getTargetException() instanceof SecurityException)) {
- throw new LogConfigurationException("Unexpected InvocationTargetException", e2.getTargetException());
- }
- }
- }
- catch (final NoSuchMethodException ex) {}
- }
- if (classLoader == null) {
- classLoader = SimpleLog.class.getClassLoader();
- }
- return classLoader;
- }
-
- private static InputStream getResourceAsStream(final String name) {
- return AccessController.doPrivileged((PrivilegedAction<InputStream>)new SimpleLog.SimpleLog$1(name));
- }
-
- static {
- simpleLogProps = new Properties();
- SimpleLog.showLogName = false;
- SimpleLog.showShortName = true;
- SimpleLog.showDateTime = false;
- SimpleLog.dateTimeFormat = "yyyy/MM/dd HH:mm:ss:SSS zzz";
- SimpleLog.dateFormatter = null;
- final InputStream in = getResourceAsStream("simplelog.properties");
- if (null != in) {
- try {
- SimpleLog.simpleLogProps.load(in);
- in.close();
- }
- catch (final IOException ex) {}
- }
- SimpleLog.showLogName = getBooleanProperty("org.apache.commons.logging.simplelog.showlogname", SimpleLog.showLogName);
- SimpleLog.showShortName = getBooleanProperty("org.apache.commons.logging.simplelog.showShortLogname", SimpleLog.showShortName);
- SimpleLog.showDateTime = getBooleanProperty("org.apache.commons.logging.simplelog.showdatetime", SimpleLog.showDateTime);
- if (SimpleLog.showDateTime) {
- SimpleLog.dateTimeFormat = getStringProperty("org.apache.commons.logging.simplelog.dateTimeFormat", SimpleLog.dateTimeFormat);
- try {
- SimpleLog.dateFormatter = new SimpleDateFormat(SimpleLog.dateTimeFormat);
- }
- catch (final IllegalArgumentException e) {
- SimpleLog.dateTimeFormat = "yyyy/MM/dd HH:mm:ss:SSS zzz";
- SimpleLog.dateFormatter = new SimpleDateFormat(SimpleLog.dateTimeFormat);
- }
- }
+ protected void write(final StringBuffer buffer) {
+ System.err.println(buffer.toString());
}
}
@@ -39,15 +39,15 @@
public List<String> getMetadataValues() {
return this.metadataValues;
}
@Override
public String toString() {
- return "LangchainInfinispanItem{id='" + this.id + "', embedding=" + Arrays.toString(this.embedding) + ", text='" + this.text + "', metadataKeys=" + String.valueOf((Object)this.metadataKeys) + ", metadataValues=" + String.valueOf((Object)this.metadataValues);
+ return "LangchainInfinispanItem{id='" + this.id + "', embedding=" + Arrays.toString(this.embedding) + ", text='" + this.text + "', metadataKeys=" + this.metadataKeys + ", metadataValues=" + this.metadataValues;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
@@ -93,15 +93,15 @@
final Object $metadata = this.getMetadata();
result = result * 59 + (($metadata == null) ? 43 : $metadata.hashCode());
return result;
}
@Override
public String toString() {
- return "Document(vector=" + Arrays.toString(this.getVector()) + ", text=" + this.getText() + ", metadata=" + String.valueOf((Object)this.getMetadata());
+ return "Document(vector=" + Arrays.toString(this.getVector()) + ", text=" + this.getText() + ", metadata=" + this.getMetadata();
}
public Document() {
}
public Document(final float[] vector, final String text, final Map<String, String> metadata) {
this.vector = vector;
@@ -90,10 +90,10 @@
public Neo4jEmbeddingStore build() {
return new Neo4jEmbeddingStore(this.config, this.driver, this.dimension, this.label, this.embeddingProperty, this.idProperty, this.metadataPrefix, this.textProperty, this.indexName, this.databaseName, this.retrievalQuery, this.awaitIndexTimeout);
}
@Override
public String toString() {
- return "Neo4jEmbeddingStore.Neo4jEmbeddingStoreBuilder(config=" + String.valueOf((Object)this.config) + ", driver=" + String.valueOf((Object)this.driver) + ", dimension=" + this.dimension + ", label=" + this.label + ", embeddingProperty=" + this.embeddingProperty + ", idProperty=" + this.idProperty + ", metadataPrefix=" + this.metadataPrefix + ", textProperty=" + this.textProperty + ", indexName=" + this.indexName + ", databaseName=" + this.databaseName + ", retrievalQuery=" + this.retrievalQuery + ", awaitIndexTimeout=" + this.awaitIndexTimeout;
+ return "Neo4jEmbeddingStore.Neo4jEmbeddingStoreBuilder(config=" + this.config + ", driver=" + this.driver + ", dimension=" + this.dimension + ", label=" + this.label + ", embeddingProperty=" + this.embeddingProperty + ", idProperty=" + this.idProperty + ", metadataPrefix=" + this.metadataPrefix + ", textProperty=" + this.textProperty + ", indexName=" + this.indexName + ", databaseName=" + this.databaseName + ", retrievalQuery=" + this.retrievalQuery + ", awaitIndexTimeout=" + this.awaitIndexTimeout;
}
}
@@ -68,20 +68,20 @@
catch (final Exception e) {
LanguageModelQueryRouter.log.warn("Failed to route query '{}'", (Object)query.text(), (Object)e);
return this.fallback(query, e);
}
}
private Collection<ContentRetriever> fallback(final Query query, final Exception e) {
- switch (this.fallbackStrategy.ordinal()) {
- case 0: {
+ switch (LanguageModelQueryRouter.LanguageModelQueryRouter$1.$SwitchMap$dev$langchain4j$rag$query$router$LanguageModelQueryRouter$FallbackStrategy[this.fallbackStrategy.ordinal()]) {
+ case 1: {
LanguageModelQueryRouter.log.debug("Fallback: query '{}' will not be routed", (Object)query.text());
return (Collection<ContentRetriever>)Collections.emptyList();
}
- case 1: {
+ case 2: {
LanguageModelQueryRouter.log.debug("Fallback: query '{}' will be routed to all available content retrievers", (Object)query.text());
return new ArrayList<ContentRetriever>(this.idToRetriever.values());
}
default: {
throw new RuntimeException(e);
}
}
@@ -30,10 +30,10 @@
public Document build() {
return new Document(this.vector, this.text, this.metadata);
}
@Override
public String toString() {
- return "Document.DocumentBuilder(vector=" + Arrays.toString(this.vector) + ", text=" + this.text + ", metadata=" + String.valueOf((Object)this.metadata);
+ return "Document.DocumentBuilder(vector=" + Arrays.toString(this.vector) + ", text=" + this.text + ", metadata=" + this.metadata;
}
}
@@ -1,12 +1,13 @@
package dev.langchain4j.model.mistralai;
import java.util.concurrent.Callable;
import dev.langchain4j.internal.RetryUtils;
+import java.util.Objects;
import java.util.List;
import dev.langchain4j.model.output.Response;
import dev.langchain4j.internal.Utils;
import java.time.Duration;
public class MistralAiModels
{
@@ -19,15 +20,17 @@
}
public static MistralAiModels withApiKey(final String apiKey) {
return builder().apiKey(apiKey).build();
}
public Response<List<MistralAiModelCard>> availableModels() {
- final MistralAiModelResponse response = (MistralAiModelResponse)RetryUtils.withRetry((Callable)this.client::listModels, (int)this.maxRetries);
+ final MistralAiClient client = this.client;
+ Objects.requireNonNull(client);
+ final MistralAiModelResponse response = (MistralAiModelResponse)RetryUtils.withRetry((Callable)client::listModels, (int)this.maxRetries);
return (Response<List<MistralAiModelCard>>)Response.from((Object)response.getData());
}
public static MistralAiModels.MistralAiModelsBuilder builder() {
return new MistralAiModels.MistralAiModelsBuilder();
}
}
@@ -35,17 +35,15 @@
@Test
public void test_ensureNotEmpty_collection() {
List<Object> list = new ArrayList<Object>();
list.add(new Object());
this.assertThat((List)ValidationUtils.ensureNotEmpty((Collection)list, "test")).isSameAs((Object)list);
list = new ArrayList<Object>();
- this.assertThatExceptionOfType((Class)IllegalArgumentException.class).isThrownBy(() -> {
- final List list2 = (List)ValidationUtils.ensureNotEmpty((Collection)list, "test");
- }).withMessageContaining("test cannot be null or empty");
+ this.assertThatExceptionOfType((Class)IllegalArgumentException.class).isThrownBy(() -> ValidationUtils.ensureNotEmpty((Collection)list, "test")).withMessageContaining("test cannot be null or empty");
this.assertThatExceptionOfType((Class)IllegalArgumentException.class).isThrownBy(() -> ValidationUtils.ensureNotEmpty((Collection)null, "test")).withMessageContaining("test cannot be null or empty");
}
@Test
public void test_ensureNotEmpty_map() {
Map<Object, Object> map = new HashMap<Object, Object>();
map.put(new Object(), new Object());
@@ -23,10 +23,10 @@
this.awaitUntilPersisted();
final List<EmbeddingMatch<TextSegment>> relevant = this.embeddingStore().findRelevant(embedding, 1);
Assertions.assertThat((List)relevant).hasSize(1);
final EmbeddingMatch<TextSegment> match = (EmbeddingMatch<TextSegment>)relevant.get(0);
Assertions.assertThat(match.score()).isCloseTo(1.0, Percentage.withPercentage(1.0));
Assertions.assertThat(match.embeddingId()).isEqualTo(id);
Assertions.assertThat((Object)match.embedding()).isEqualTo((Object)embedding);
- Assertions.assertThat(match.embedded()).isEqualTo((Object)segment);
+ Assertions.assertThat((Object)match.embedded()).isEqualTo((Object)segment);
}
}
@@ -17,60 +17,58 @@
Assertions.assertThat(RetryUtils.DEFAULT_RETRY_POLICY.jitterDelayMillis(3)).isBetween(Integer.valueOf(1125), Integer.valueOf(1350));
}
}
@Test
void test_withRetry_directly() throws Exception {
final Callable<String> mockAction = (Callable)Mockito.mock((Class)Callable.class);
- Mockito.when((Object)mockAction.call()).thenReturn((Object)"Success");
+ Mockito.when((Object)(String)mockAction.call()).thenReturn((Object)"Success");
final String result = (String)RetryUtils.withRetry((Callable)mockAction, 1);
Assertions.assertThat(result).isEqualTo("Success");
((Callable)Mockito.verify((Object)mockAction)).call();
Mockito.verifyNoMoreInteractions(new Object[] { mockAction });
}
@Test
void test_withRetry_noAttempts_directly() throws Exception {
final Callable<String> mockAction = (Callable)Mockito.mock((Class)Callable.class);
- Mockito.when((Object)mockAction.call()).thenReturn((Object)"Success");
+ Mockito.when((Object)(String)mockAction.call()).thenReturn((Object)"Success");
final String result = (String)RetryUtils.withRetry((Callable)mockAction);
Assertions.assertThat(result).isEqualTo("Success");
((Callable)Mockito.verify((Object)mockAction)).call();
Mockito.verifyNoMoreInteractions(new Object[] { mockAction });
}
@Test
void testSuccessfulCall() throws Exception {
final Callable<String> mockAction = (Callable)Mockito.mock((Class)Callable.class);
- Mockito.when((Object)mockAction.call()).thenReturn((Object)"Success");
+ Mockito.when((Object)(String)mockAction.call()).thenReturn((Object)"Success");
final String result = (String)RetryUtils.retryPolicyBuilder().delayMillis(100).build().withRetry((Callable)mockAction, 3);
Assertions.assertThat(result).isEqualTo("Success");
((Callable)Mockito.verify((Object)mockAction)).call();
Mockito.verifyNoMoreInteractions(new Object[] { mockAction });
}
@Test
void testRetryThenSuccess() throws Exception {
final Callable<String> mockAction = (Callable)Mockito.mock((Class)Callable.class);
- Mockito.when((Object)mockAction.call()).thenThrow(new Throwable[] { new RuntimeException() }).thenReturn((Object)"Success");
+ Mockito.when((Object)(String)mockAction.call()).thenThrow(new Throwable[] { new RuntimeException() }).thenReturn((Object)"Success");
final long startTime = System.currentTimeMillis();
final String result = (String)RetryUtils.retryPolicyBuilder().delayMillis(100).build().withRetry((Callable)mockAction, 3);
final long endTime = System.currentTimeMillis();
final long duration = endTime - startTime;
Assertions.assertThat(result).isEqualTo("Success");
((Callable)Mockito.verify((Object)mockAction, Mockito.times(2))).call();
Mockito.verifyNoMoreInteractions(new Object[] { mockAction });
Assertions.assertThat(duration).isGreaterThanOrEqualTo(100L);
}
@Test
void testMaxAttemptsReached() throws Exception {
final Callable<String> mockAction = (Callable)Mockito.mock((Class)Callable.class);
- Mockito.when((Object)mockAction.call()).thenThrow(new Throwable[] { new RuntimeException() });
+ Mockito.when((Object)(String)mockAction.call()).thenThrow(new Throwable[] { new RuntimeException() });
final RetryUtils.RetryPolicy policy = RetryUtils.retryPolicyBuilder().delayMillis(100).build();
- Assertions.assertThatThrownBy(() -> {
- final String s = (String)policy.withRetry(mockAction, 3);
- }).isInstanceOf((Class)RuntimeException.class);
+ Assertions.assertThatThrownBy(() -> policy.withRetry(mockAction, 3)).isInstanceOf((Class)RuntimeException.class);
((Callable)Mockito.verify((Object)mockAction, Mockito.times(3))).call();
Mockito.verifyNoMoreInteractions(new Object[] { mockAction });
}
}
@@ -36,20 +36,31 @@
if (type == Map.class) {
return (T)GsonJsonCodec.GSON.fromJson(json, GsonJsonCodec.MAP_TYPE);
}
return (T)GsonJsonCodec.GSON.fromJson(json, (Class)type);
}
public InputStream toInputStream(final Object o, final Class<?> type) throws IOException {
- try (final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
- final OutputStreamWriter outputStreamWriter = new OutputStreamWriter(byteArrayOutputStream, StandardCharsets.UTF_8);
- final JsonWriter jsonWriter = new JsonWriter((Writer)outputStreamWriter)) {
- GsonJsonCodec.GSON.toJson(o, (Type)type, jsonWriter);
- jsonWriter.flush();
- return new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
+ final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
+ try (final OutputStreamWriter outputStreamWriter = new OutputStreamWriter(byteArrayOutputStream, StandardCharsets.UTF_8)) {
+ try (final JsonWriter jsonWriter = new JsonWriter((Writer)outputStreamWriter)) {
+ GsonJsonCodec.GSON.toJson(o, (Type)type, jsonWriter);
+ jsonWriter.flush();
+ return new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
+ }
+ byteArrayOutputStream.close();
+ }
+ catch (final Throwable t3) {
+ try {
+ byteArrayOutputStream.close();
+ }
+ catch (final Throwable exception3) {
+ t3.addSuppressed(exception3);
+ }
+ throw t3;
}
}
static {
GSON = new GsonBuilder().setPrettyPrinting().registerTypeAdapter((Type)LocalDate.class, (Object)((localDate, type, context) -> new JsonPrimitive(localDate.format(DateTimeFormatter.ISO_LOCAL_DATE)))).registerTypeAdapter((Type)LocalDate.class, (Object)((json, type, context) -> LocalDate.parse(json.getAsString(), DateTimeFormatter.ISO_LOCAL_DATE))).registerTypeAdapter((Type)LocalDateTime.class, (Object)((localDateTime, type, context) -> new JsonPrimitive(localDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)))).registerTypeAdapter((Type)LocalDateTime.class, (Object)((json, type, context) -> LocalDateTime.parse(json.getAsString(), DateTimeFormatter.ISO_LOCAL_DATE_TIME))).create();
MAP_TYPE = new GsonJsonCodec.GsonJsonCodec$1().getType();
}
@@ -1,10 +1,11 @@
package dev.langchain4j.model.azure;
+import java.util.Objects;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
private static class Parameters
{
@@ -15,15 +16,15 @@
private Parameters() {
this.type = "object";
this.properties = new HashMap();
this.required = new ArrayList();
}
public String getType() {
- this.getClass();
+ Objects.requireNonNull(this);
return "object";
}
public Map<String, Map<String, Object>> getProperties() {
return this.properties;
}
@@ -1,12 +1,13 @@
package dev.langchain4j.agent.tool;
import java.lang.reflect.Parameter;
import java.util.function.Consumer;
+import java.util.Objects;
import java.util.ArrayList;
import java.util.Arrays;
import org.assertj.core.api.MapAssert;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.List;
@@ -92,13 +93,16 @@
this.assertThat(ToolSpecifications.toJsonSchemaProperties(ps[14])).containsExactly((Object[])new JsonSchemaProperty[] { JsonSchemaProperty.NUMBER });
this.assertThat(ToolSpecifications.toJsonSchemaProperties(ps[15])).containsExactly((Object[])new JsonSchemaProperty[] { JsonSchemaProperty.NUMBER });
this.assertThat(ToolSpecifications.toJsonSchemaProperties(ps[16])).containsExactly((Object[])new JsonSchemaProperty[] { JsonSchemaProperty.NUMBER, JsonSchemaProperty.description("bigger") });
this.assertThat(ToolSpecifications.toJsonSchemaProperties(ps[17])).containsExactly((Object[])new JsonSchemaProperty[] { JsonSchemaProperty.ARRAY });
this.assertThat(ToolSpecifications.toJsonSchemaProperties(ps[18])).containsExactly((Object[])new JsonSchemaProperty[] { JsonSchemaProperty.ARRAY });
this.assertThat(ToolSpecifications.toJsonSchemaProperties(ps[19])).containsExactly((Object[])new JsonSchemaProperty[] { JsonSchemaProperty.ARRAY });
final List<JsonSchemaProperty> properties = new ArrayList<JsonSchemaProperty>();
- ToolSpecifications.toJsonSchemaProperties(ps[20]).forEach(properties::add);
- this.assertThat((Object)properties.get(0)).isEqualTo((Object)JsonSchemaProperty.STRING);
+ final Iterable jsonSchemaProperties = ToolSpecifications.toJsonSchemaProperties(ps[20]);
+ final List<JsonSchemaProperty> obj = properties;
+ Objects.requireNonNull((ArrayList)obj);
+ jsonSchemaProperties.forEach(obj::add);
+ this.assertThat((Object)(JsonSchemaProperty)properties.get(0)).isEqualTo((Object)JsonSchemaProperty.STRING);
this.assertThat(Arrays.equals((Object[])((JsonSchemaProperty)properties.get(1)).value(), (Object[])new ToolSpecificationsTest.E[] { ToolSpecificationsTest.E.A, ToolSpecificationsTest.E.B, ToolSpecificationsTest.E.C })).isTrue();
this.assertThat(ToolSpecifications.toJsonSchemaProperties(ps[21])).containsExactly((Object[])new JsonSchemaProperty[] { JsonSchemaProperty.OBJECT });
}
}
@@ -1,12 +1,13 @@
package dev.langchain4j.model.ollama;
import java.util.concurrent.Callable;
import dev.langchain4j.internal.RetryUtils;
+import java.util.Objects;
import java.util.List;
import dev.langchain4j.model.output.Response;
import dev.langchain4j.internal.Utils;
import java.time.Duration;
public class OllamaModels
{
@@ -15,15 +16,17 @@
public OllamaModels(final String baseUrl, final Duration timeout, final Integer maxRetries) {
this.client = OllamaClient.builder().baseUrl(baseUrl).timeout((Duration)Utils.getOrDefault((Object)timeout, (Object)Duration.ofSeconds(60L))).build();
this.maxRetries = (Integer)Utils.getOrDefault((Object)maxRetries, (Object)Integer.valueOf(3));
}
public Response<List<OllamaModel>> availableModels() {
- final ModelsListResponse response = (ModelsListResponse)RetryUtils.withRetry((Callable)this.client::listModels, (int)this.maxRetries);
+ final OllamaClient client = this.client;
+ Objects.requireNonNull(client);
+ final ModelsListResponse response = (ModelsListResponse)RetryUtils.withRetry((Callable)client::listModels, (int)this.maxRetries);
return (Response<List<OllamaModel>>)Response.from((Object)response.getModels());
}
public Response<OllamaModelCard> modelCard(final OllamaModel ollamaModel) {
return this.modelCard(ollamaModel.getName());
}
@@ -57,15 +57,15 @@
final GenerateImagesResponse response = (GenerateImagesResponse)((SyncOrAsync)RetryUtils.withRetry(() -> this.client.imagesGeneration(request), (int)this.maxRetries)).execute();
return (Response<Image>)Response.from((Object)fromImageData(response.data().get(0)));
}
public Response<List<Image>> generate(final String prompt, final int n) {
final GenerateImagesRequest request = this.requestBuilder(prompt).n(n).build();
final GenerateImagesResponse response = (GenerateImagesResponse)((SyncOrAsync)RetryUtils.withRetry(() -> this.client.imagesGeneration(request), (int)this.maxRetries)).execute();
- return (Response<List<Image>>)Response.from(response.data().stream().map(OpenAiImageModel::fromImageData).collect((Collector)Collectors.toList()));
+ return (Response<List<Image>>)Response.from((Object)response.data().stream().map(OpenAiImageModel::fromImageData).collect(Collectors.toList()));
}
public static OpenAiImageModel.OpenAiImageModelBuilder builder() {
return (OpenAiImageModel.OpenAiImageModelBuilder)ServiceHelper.loadFactoryService((Class)OpenAiImageModelBuilderFactory.class, (Supplier)OpenAiImageModel.OpenAiImageModelBuilder::new);
}
public static OpenAiImageModel withApiKey(final String apiKey) {
@@ -11,10 +11,10 @@
return Enum.valueOf(Categories.class, name);
}
static {
Categories.CAT = new Categories("CAT", 0);
Categories.DOG = new Categories("DOG", 1);
Categories.FISH = new Categories("FISH", 2);
- Categories.$VALUES = new Categories[] { Categories.CAT, Categories.DOG, Categories.FISH };
+ Categories.$VALUES = $values();
}
}
@@ -3,15 +3,17 @@
import java.util.function.Supplier;
import dev.langchain4j.spi.ServiceHelper;
import dev.langchain4j.model.openai.spi.OpenAiStreamingChatModelBuilderFactory;
import dev.ai4j.openai4j.chat.Delta;
import dev.ai4j.openai4j.chat.ChatCompletionChoice;
import dev.ai4j.openai4j.chat.ChatCompletionResponse;
+import dev.ai4j.openai4j.StreamingCompletionHandling;
import java.util.function.Consumer;
+import java.util.Objects;
import dev.langchain4j.model.output.Response;
import java.util.Collection;
import java.util.Collections;
import dev.ai4j.openai4j.chat.ChatCompletionRequest;
import dev.langchain4j.agent.tool.ToolSpecification;
import dev.langchain4j.data.message.AiMessage;
import dev.langchain4j.model.StreamingResponseHandler;
@@ -81,21 +83,25 @@
}
else if (!Utils.isNullOrEmpty((Collection)toolSpecifications)) {
requestBuilder.tools(InternalOpenAiHelper.toTools((Collection)toolSpecifications));
inputTokenCount += this.tokenizer.estimateTokenCountInToolSpecifications((Iterable)toolSpecifications);
}
final ChatCompletionRequest request = requestBuilder.build();
final OpenAiStreamingResponseBuilder responseBuilder = new OpenAiStreamingResponseBuilder(Integer.valueOf(inputTokenCount));
- this.client.chatCompletion(request).onPartialResponse(partialResponse -> {
+ final StreamingCompletionHandling onComplete = this.client.chatCompletion(request).onPartialResponse(partialResponse -> {
responseBuilder.append(partialResponse);
handle(partialResponse, (StreamingResponseHandler<AiMessage>)handler);
+ return;
}).onComplete(() -> {
final Response<AiMessage> response = (Response<AiMessage>)responseBuilder.build(this.tokenizer, toolThatMustBeExecuted != null);
handler.onComplete((Response)response);
- }).onError((Consumer)handler::onError).execute();
+ return;
+ });
+ Objects.requireNonNull(handler);
+ onComplete.onError((Consumer)handler::onError).execute();
}
private static void handle(final ChatCompletionResponse partialResponse, final StreamingResponseHandler<AiMessage> handler) {
final List<ChatCompletionChoice> choices = partialResponse.choices();
if (choices == null || choices.isEmpty()) {
return;
}
@@ -1,16 +1,18 @@
package dev.langchain4j.model.qianfan;
import java.util.function.Supplier;
import dev.langchain4j.spi.ServiceHelper;
import dev.langchain4j.model.qianfan.spi.QianfanStreamingChatModelBuilderFactory;
+import dev.langchain4j.model.qianfan.client.StreamingCompletionHandling;
import dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse;
import dev.langchain4j.model.qianfan.client.SyncOrAsyncOrStreaming;
import java.util.function.Consumer;
+import java.util.Objects;
import dev.langchain4j.model.output.Response;
import dev.langchain4j.model.qianfan.client.QianfanStreamingResponseBuilder;
import java.util.Collection;
import dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest;
import dev.langchain4j.agent.tool.ToolSpecification;
import dev.langchain4j.data.message.AiMessage;
import dev.langchain4j.model.StreamingResponseHandler;
@@ -64,21 +66,25 @@
final ChatCompletionRequest.Builder builder = ChatCompletionRequest.builder().messages(InternalQianfanHelper.toOpenAiMessages((List)messages)).temperature(this.temperature).topP(this.topP).system(InternalQianfanHelper.getSystemMessage((List)messages)).responseFormat(this.responseFormat).penaltyScore(this.penaltyScore);
if (toolSpecifications != null && !toolSpecifications.isEmpty()) {
builder.functions(InternalQianfanHelper.toFunctions((Collection)toolSpecifications));
}
final ChatCompletionRequest request = builder.build();
final QianfanStreamingResponseBuilder responseBuilder = new QianfanStreamingResponseBuilder((Integer)null);
final SyncOrAsyncOrStreaming<ChatCompletionResponse> response = (SyncOrAsyncOrStreaming<ChatCompletionResponse>)this.client.chatCompletion(request, this.endpoint);
- response.onPartialResponse(partialResponse -> {
+ final StreamingCompletionHandling onComplete = response.onPartialResponse(partialResponse -> {
responseBuilder.append(partialResponse);
handle(partialResponse, (StreamingResponseHandler<AiMessage>)handler);
+ return;
}).onComplete(() -> {
final Response<AiMessage> messageResponse = (Response<AiMessage>)responseBuilder.build();
handler.onComplete((Response)messageResponse);
- }).onError((Consumer)handler::onError).execute();
+ return;
+ });
+ Objects.requireNonNull(handler);
+ onComplete.onError((Consumer)handler::onError).execute();
}
private static void handle(final ChatCompletionResponse partialResponse, final StreamingResponseHandler<AiMessage> handler) {
final String result = partialResponse.getResult();
if (Utils.isNullOrBlank(result)) {
return;
}
@@ -1,15 +1,17 @@
package dev.langchain4j.model.openai;
import dev.ai4j.openai4j.completion.CompletionResponse;
import java.util.function.Supplier;
import dev.langchain4j.spi.ServiceHelper;
import dev.langchain4j.model.openai.spi.OpenAiStreamingLanguageModelBuilderFactory;
+import dev.ai4j.openai4j.StreamingCompletionHandling;
import java.util.function.Consumer;
+import java.util.Objects;
import dev.langchain4j.model.output.Response;
import dev.langchain4j.data.message.AiMessage;
import dev.ai4j.openai4j.completion.CompletionRequest;
import dev.langchain4j.model.StreamingResponseHandler;
import dev.langchain4j.internal.Utils;
import java.net.Proxy;
import java.time.Duration;
@@ -33,24 +35,28 @@
this.tokenizer = (Tokenizer)Utils.getOrDefault((Object)tokenizer, () -> new OpenAiTokenizer(this.modelName));
}
public void generate(final String prompt, final StreamingResponseHandler<String> handler) {
final CompletionRequest request = CompletionRequest.builder().model(this.modelName).prompt(prompt).temperature(this.temperature).build();
final int inputTokenCount = this.tokenizer.estimateTokenCountInText(prompt);
final OpenAiStreamingResponseBuilder responseBuilder = new OpenAiStreamingResponseBuilder(Integer.valueOf(inputTokenCount));
- this.client.completion(request).onPartialResponse(partialResponse -> {
+ final StreamingCompletionHandling onComplete = this.client.completion(request).onPartialResponse(partialResponse -> {
responseBuilder.append(partialResponse);
final String token = partialResponse.text();
if (token != null) {
handler.onNext(token);
}
+ return;
}).onComplete(() -> {
- final Response<AiMessage> response = (Response<AiMessage>)responseBuilder.build(this.tokenizer, false);
+ final Response<AiMessage> response = (Response<AiMessage>)responseBuilder.build(this.tokenizer, (boolean)(0 != 0));
handler.onComplete(Response.from((Object)((AiMessage)response.content()).text(), response.tokenUsage(), response.finishReason()));
- }).onError((Consumer)handler::onError).execute();
+ return;
+ });
+ Objects.requireNonNull(handler);
+ onComplete.onError((Consumer)handler::onError).execute();
}
public int estimateTokenCount(final String prompt) {
return this.tokenizer.estimateTokenCountInText(prompt);
}
public static OpenAiStreamingLanguageModel withApiKey(final String apiKey) {
@@ -28,18 +28,15 @@
this(embeddingModel, examplesByLabel, 1, 0.0, 0.5);
}
public EmbeddingModelTextClassifier(final EmbeddingModel embeddingModel, final Map<E, ? extends Collection<String>> examplesByLabel, final int maxResults, final double minScore, final double meanToMaxScoreRatio) {
this.embeddingModel = (EmbeddingModel)ValidationUtils.ensureNotNull((Object)embeddingModel, "embeddingModel");
ValidationUtils.ensureNotNull((Object)examplesByLabel, "examplesByLabel");
this.exampleEmbeddingsByLabel = new HashMap<E, List<Embedding>>();
- examplesByLabel.forEach((label, examples) -> {
- final List<Embedding> list = (List<Embedding>)this.exampleEmbeddingsByLabel.put((E)label, examples.stream().map(example -> (Embedding)embeddingModel.embed(example).content()).collect((Collector<? super Object, ?, List<Embedding>>)Collectors.toList()));
- return;
- });
+ examplesByLabel.forEach((label, examples) -> this.exampleEmbeddingsByLabel.put(label, (List<Embedding>)examples.stream().map(example -> (Embedding)embeddingModel.embed(example).content()).collect((Collector<? super Object, ?, List<Embedding>>)Collectors.toList())));
this.maxResults = ValidationUtils.ensureGreaterThanZero(Integer.valueOf(maxResults), "maxResults");
this.minScore = ValidationUtils.ensureBetween(Double.valueOf(minScore), 0.0, 1.0, "minScore");
this.meanToMaxScoreRatio = ValidationUtils.ensureBetween(Double.valueOf(meanToMaxScoreRatio), 0.0, 1.0, "meanToMaxScoreRatio");
}
public List<E> classify(final String text) {
final Embedding textEmbedding = (Embedding)this.embeddingModel.embed(text).content();
@@ -62,15 +62,16 @@
}
final PredictResponse response = (PredictResponse)RetryUtils.withRetry(() -> client.predict(this.endpointName, instances, ValueConverter.EMPTY_VALUE), (int)this.maxRetries);
embeddings.addAll((Collection<? extends Embedding>)response.getPredictionsList().stream().map(VertexAiEmbeddingModel::toEmbedding).collect(Collectors.toList()));
for (final Value prediction : response.getPredictionsList()) {
inputTokenCount += extractTokenCount(prediction);
}
}
- return (Response<List<Embedding>>)Response.from((Object)embeddings, new TokenUsage(Integer.valueOf(inputTokenCount)));
+ final Response from = Response.from((Object)embeddings, new TokenUsage(Integer.valueOf(inputTokenCount)));
+ return (Response<List<Embedding>>)from;
}
catch (final Exception e) {
throw new RuntimeException(e);
}
}
private static Embedding toEmbedding(final Value prediction) {
@@ -48,10 +48,10 @@
StylePreset.ModelingCompound = new StylePreset("ModelingCompound", 10, "modeling-compound");
StylePreset.NeonPunk = new StylePreset("NeonPunk", 11, "neon-punk");
StylePreset.Origami = new StylePreset("Origami", 12, "origami");
StylePreset.Photographic = new StylePreset("Photographic", 13, "photographic");
StylePreset.PixelArt = new StylePreset("PixelArt", 14, "pixel-art");
StylePreset.TileTexture = new StylePreset("TileTexture", 15, "tile-texture");
StylePreset.AnalogFilm = new StylePreset("AnalogFilm", 16, "analog-film");
- StylePreset.$VALUES = new StylePreset[] { StylePreset.ThreeDModel, StylePreset.Anime, StylePreset.Cinematic, StylePreset.ComicBook, StylePreset.DigitalArt, StylePreset.Enhance, StylePreset.FantasyArt, StylePreset.Isometric, StylePreset.LineArt, StylePreset.LowPoly, StylePreset.ModelingCompound, StylePreset.NeonPunk, StylePreset.Origami, StylePreset.Photographic, StylePreset.PixelArt, StylePreset.TileTexture, StylePreset.AnalogFilm };
+ StylePreset.$VALUES = $values();
}
}
@@ -22,10 +22,10 @@
}
static {
Types.AnthropicClaudeInstantV1 = new Types("AnthropicClaudeInstantV1", 0, "anthropic.claude-instant-v1");
Types.AnthropicClaudeV1 = new Types("AnthropicClaudeV1", 1, "anthropic.claude-v1");
Types.AnthropicClaudeV2 = new Types("AnthropicClaudeV2", 2, "anthropic.claude-v2");
Types.AnthropicClaudeV2_1 = new Types("AnthropicClaudeV2_1", 3, "anthropic.claude-v2:1");
- Types.$VALUES = new Types[] { Types.AnthropicClaudeInstantV1, Types.AnthropicClaudeV1, Types.AnthropicClaudeV2, Types.AnthropicClaudeV2_1 };
+ Types.$VALUES = $values();
}
}
@@ -83,35 +83,49 @@
Object pemObject;
while ((pemObject = parser.readObject()) != null) {
result.add(toX509Certificate(pemObject));
}
if (result.isEmpty()) {
throw new IOException("File contains no PEM encoded certificates: " + file);
}
- return result.toArray(new Certificate[0]);
+ return (Certificate[])result.toArray(new Certificate[0]);
}
}
private static PrivateKey privateKey(final Path file) throws IOException, GeneralSecurityException {
- try (final PEMParser parser = new PEMParser((Reader)Files.newBufferedReader(file))) {
+ final PEMParser parser = new PEMParser((Reader)Files.newBufferedReader(file));
+ try {
Object pemObject;
while ((pemObject = parser.readObject()) != null) {
if (pemObject instanceof PrivateKeyInfo) {
final PrivateKeyInfo keyInfo = (PrivateKeyInfo)pemObject;
final PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(keyInfo.getEncoded());
- return createKeyFactory(keyInfo).generatePrivate(keySpec);
+ final PrivateKey generatePrivate = createKeyFactory(keyInfo).generatePrivate(keySpec);
+ parser.close();
+ return generatePrivate;
}
if (pemObject instanceof PEMKeyPair) {
final PEMKeyPair pemKeypair = (PEMKeyPair)pemObject;
final PrivateKeyInfo keyInfo2 = pemKeypair.getPrivateKeyInfo();
- return createKeyFactory(keyInfo2).generatePrivate(new PKCS8EncodedKeySpec(keyInfo2.getEncoded()));
+ final PrivateKey generatePrivate2 = createKeyFactory(keyInfo2).generatePrivate(new PKCS8EncodedKeySpec(keyInfo2.getEncoded()));
+ parser.close();
+ return generatePrivate2;
}
}
throw new IOException("Could not find private key in PEM file");
}
+ catch (final Throwable t) {
+ try {
+ parser.close();
+ }
+ catch (final Throwable exception) {
+ t.addSuppressed(exception);
+ }
+ throw t;
+ }
}
private static X509Certificate toX509Certificate(final Object pemObject) throws IOException, GeneralSecurityException {
if (pemObject instanceof X509Certificate) {
return (X509Certificate)pemObject;
}
if (pemObject instanceof X509CertificateHolder) {
@@ -19,10 +19,10 @@
ImageStyle.photograph = new ImageStyle("photograph", 0);
ImageStyle.digital_art = new ImageStyle("digital_art", 1);
ImageStyle.landscape = new ImageStyle("landscape", 2);
ImageStyle.sketch = new ImageStyle("sketch", 3);
ImageStyle.watercolor = new ImageStyle("watercolor", 4);
ImageStyle.cyberpunk = new ImageStyle("cyberpunk", 5);
ImageStyle.pop_art = new ImageStyle("pop_art", 6);
- ImageStyle.$VALUES = new ImageStyle[] { ImageStyle.photograph, ImageStyle.digital_art, ImageStyle.landscape, ImageStyle.sketch, ImageStyle.watercolor, ImageStyle.cyberpunk, ImageStyle.pop_art };
+ ImageStyle.$VALUES = $values();
}
}
@@ -11,10 +11,10 @@
return Enum.valueOf(ReturnLikelihood.class, name);
}
static {
ReturnLikelihood.NONE = new ReturnLikelihood("NONE", 0);
ReturnLikelihood.GENERATION = new ReturnLikelihood("GENERATION", 1);
ReturnLikelihood.ALL = new ReturnLikelihood("ALL", 2);
- ReturnLikelihood.$VALUES = new ReturnLikelihood[] { ReturnLikelihood.NONE, ReturnLikelihood.GENERATION, ReturnLikelihood.ALL };
+ ReturnLikelihood.$VALUES = $values();
}
}
@@ -6,17 +6,19 @@
import com.dtsx.astra.sdk.cassio.SimilaritySearchResult;
import com.dtsx.astra.sdk.cassio.SimilarityMetric;
import dev.langchain4j.store.embedding.CosineSimilarity;
import dev.langchain4j.internal.ValidationUtils;
import com.dtsx.astra.sdk.cassio.SimilaritySearchQuery;
import dev.langchain4j.store.embedding.EmbeddingMatch;
import java.util.ArrayList;
+import java.util.stream.Stream;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import java.util.function.Consumer;
+import java.util.Objects;
import java.util.function.Function;
import java.util.List;
import lombok.NonNull;
import dev.langchain4j.data.embedding.Embedding;
import com.dtsx.astra.sdk.cassio.MetadataVectorCassandraTable;
import dev.langchain4j.data.segment.TextSegment;
import dev.langchain4j.store.embedding.EmbeddingStore;
@@ -52,15 +54,18 @@
if (embedding == null) {
throw new NullPointerException("embedding is marked non-null but is null");
}
this.embeddingTable.put(new MetadataVectorCassandraTable.Record(rowId, embedding.vectorAsList()));
}
public List<String> addAll(final List<Embedding> embeddingList) {
- return embeddingList.stream().map((Function<? super Object, ?>)Embedding::vectorAsList).map((Function<? super Object, ?>)MetadataVectorCassandraTable.Record::new).peek(this.embeddingTable::putAsync).map((Function<? super Object, ?>)MetadataVectorCassandraTable.Record::getRowId).collect((Collector<? super Object, ?, List<String>>)Collectors.toList());
+ final Stream<Object> map = embeddingList.stream().map((Function<? super Object, ?>)Embedding::vectorAsList).map((Function<? super Object, ?>)MetadataVectorCassandraTable.Record::new);
+ final MetadataVectorCassandraTable embeddingTable = this.embeddingTable;
+ Objects.requireNonNull(embeddingTable);
+ return map.peek(embeddingTable::putAsync).map((Function<? super Object, ?>)MetadataVectorCassandraTable.Record::getRowId).collect((Collector<? super Object, ?, List<String>>)Collectors.toList());
}
public List<String> addAll(final List<Embedding> embeddingList, final List<TextSegment> textSegmentList) {
if (embeddingList == null || textSegmentList == null || embeddingList.size() != textSegmentList.size()) {
throw new IllegalArgumentException("embeddingList and textSegmentList must not be null and have the same size");
}
final List<String> ids = new ArrayList<String>();
@@ -1,14 +1,15 @@
package dev.langchain4j.rag.content.aggregator;
import java.util.Iterator;
import java.util.Map;
import java.util.function.ToDoubleFunction;
import java.util.Comparator;
+import java.util.Objects;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import dev.langchain4j.internal.ValidationUtils;
import dev.langchain4j.rag.content.Content;
import java.util.List;
import java.util.Collection;
@@ -26,12 +27,15 @@
final Content content = (Content)singleListOfContent.get(i);
final double currentScore = (double)Double.valueOf(scores.getOrDefault((Object)content, Double.valueOf(0.0)));
final int rank = i + 1;
final double newScore = currentScore + 1.0 / (k + rank);
scores.put(content, Double.valueOf(newScore));
}
}
- final List<Content> fused = new ArrayList<Content>(scores.keySet());
- fused.sort(Comparator.comparingDouble(scores::get).reversed());
+ final ArrayList<Object> list;
+ final List<Content> fused = (List<Content>)(list = new ArrayList<Object>(scores.keySet()));
+ final Map<Content, Double> obj = scores;
+ Objects.requireNonNull((LinkedHashMap)obj);
+ list.sort(Comparator.comparingDouble(obj::get).reversed());
return fused;
}
}
@@ -9,10 +9,10 @@
public static EnumTest valueOf(final String name) {
return Enum.valueOf(EnumTest.class, name);
}
static {
EnumTest.VALUE1 = new EnumTest("VALUE1", 0);
EnumTest.VALUE2 = new EnumTest("VALUE2", 1);
- EnumTest.$VALUES = new EnumTest[] { EnumTest.VALUE1, EnumTest.VALUE2 };
+ EnumTest.$VALUES = $values();
}
}
@@ -45,15 +45,16 @@
final Value.Builder instanceBuilder = Value.newBuilder();
JsonFormat.parser().merge(Json.toJson((Object)new VertexAiTextInstance(prompt)), (Message.Builder)instanceBuilder);
final List<Value> instances = Collections.singletonList(instanceBuilder.build());
final Value.Builder parametersBuilder = Value.newBuilder();
JsonFormat.parser().merge(Json.toJson((Object)this.vertexAiParameters), (Message.Builder)parametersBuilder);
final Value parameters = parametersBuilder.build();
final PredictResponse response = (PredictResponse)RetryUtils.withRetry(() -> client.predict(this.endpointName, instances, parameters), (int)this.maxRetries);
- return (Response<String>)Response.from((Object)extractContent(response), new TokenUsage(Integer.valueOf(VertexAiChatModel.extractTokenCount(response, "inputTokenCount")), Integer.valueOf(VertexAiChatModel.extractTokenCount(response, "outputTokenCount"))));
+ final Response from = Response.from((Object)extractContent(response), new TokenUsage(Integer.valueOf(VertexAiChatModel.extractTokenCount(response, "inputTokenCount")), Integer.valueOf(VertexAiChatModel.extractTokenCount(response, "outputTokenCount"))));
+ return (Response<String>)from;
}
catch (final IOException e) {
throw new RuntimeException(e);
}
}
private static String extractContent(final PredictResponse predictResponse) {
@@ -37,15 +37,15 @@
}
private boolean equalTo(final JsonSchemaProperty another) {
if (!Objects.equals(this.key, another.key)) {
return false;
}
if (this.value instanceof Object[] && another.value instanceof Object[]) {
- return Arrays.equals(this.value, (Object[])(Object[])another.value);
+ return Arrays.equals((Object[])this.value, (Object[])another.value);
}
return Objects.equals(this.value, another.value);
}
@Override
public int hashCode() {
int h = 5381;
@@ -1,7 +1,7 @@
package dev.langchain4j.model.qianfan.client.chat;
import java.util.Map;
import com.google.gson.reflect.TypeToken;
-static final class FunctionCall$1 extends TypeToken<Map<String, Object>> {}
+class FunctionCall$1 extends TypeToken<Map<String, Object>> {}
@@ -18,10 +18,10 @@
public String getValue() {
return this.value;
}
static {
Types.J2MidV2 = new Types("J2MidV2", 0, "ai21.j2-mid-v1");
Types.J2UltraV1 = new Types("J2UltraV1", 1, "ai21.j2-ultra-v1");
- Types.$VALUES = new Types[] { Types.J2MidV2, Types.J2UltraV1 };
+ Types.$VALUES = $values();
}
}
@@ -14,14 +14,15 @@
import dev.langchain4j.model.output.Response;
import dev.langchain4j.data.message.AiMessage;
import java.util.concurrent.Future;
import java.util.ArrayList;
import dev.langchain4j.data.message.ChatMessage;
import dev.langchain4j.data.message.SystemMessage;
import java.util.function.Consumer;
+import java.util.Objects;
import dev.langchain4j.data.message.UserMessage;
import java.util.List;
import dev.langchain4j.rag.query.Metadata;
import java.lang.reflect.Method;
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
import java.lang.reflect.InvocationHandler;
@@ -43,24 +44,30 @@
final Metadata metadata = Metadata.from(userMessage, memoryId, (List)chatMemory);
userMessage = this.this$0.context.retrievalAugmentor.augment(userMessage, metadata);
}
final String outputFormatInstructions = ServiceOutputParser.outputFormatInstructions((Class)method.getReturnType());
userMessage = UserMessage.from(userMessage.text() + outputFormatInstructions);
if (this.this$0.context.hasChatMemory()) {
final ChatMemory chatMemory2 = this.this$0.context.chatMemory(memoryId);
- systemMessage.ifPresent((Consumer<? super SystemMessage>)chatMemory2::add);
+ final Optional<SystemMessage> optional = systemMessage;
+ final ChatMemory obj = chatMemory2;
+ Objects.requireNonNull(obj);
+ optional.ifPresent((Consumer<? super SystemMessage>)obj::add);
chatMemory2.add((ChatMessage)userMessage);
}
List<ChatMessage> messages;
if (this.this$0.context.hasChatMemory()) {
messages = this.this$0.context.chatMemory(memoryId).messages();
}
else {
messages = new ArrayList<ChatMessage>();
- systemMessage.ifPresent(messages::add);
+ final Optional<SystemMessage> optional2 = systemMessage;
+ final List<ChatMessage> obj2 = messages;
+ Objects.requireNonNull(obj2);
+ optional2.ifPresent(obj2::add);
messages.add((ChatMessage)userMessage);
}
final Future<Moderation> moderationFuture = this.triggerModerationIfNeeded(method, messages);
if (method.getReturnType() == TokenStream.class) {
return new AiServiceTokenStream((List)messages, this.this$0.context, memoryId);
}
Response<AiMessage> response = (Response<AiMessage>)((this.this$0.context.toolSpecifications == null) ? this.this$0.context.chatModel.generate((List)messages) : this.this$0.context.chatModel.generate((List)messages, this.this$0.context.toolSpecifications));
@@ -69,15 +76,15 @@
int executionsLeft = 10;
while (executionsLeft-- != 0) {
final AiMessage aiMessage = (AiMessage)response.content();
if (this.this$0.context.hasChatMemory()) {
this.this$0.context.chatMemory(memoryId).add((ChatMessage)aiMessage);
}
if (!aiMessage.hasToolExecutionRequests()) {
- response = (Response<AiMessage>)Response.from(response.content(), tokenUsageAccumulator, response.finishReason());
+ response = (Response<AiMessage>)Response.from((Object)response.content(), tokenUsageAccumulator, response.finishReason());
return ServiceOutputParser.parse((Response)response, (Class)method.getReturnType());
}
final ChatMemory chatMemory3 = this.this$0.context.chatMemory(memoryId);
for (final ToolExecutionRequest toolExecutionRequest : aiMessage.toolExecutionRequests()) {
final ToolExecutor toolExecutor = (ToolExecutor)this.this$0.context.toolExecutors.get(toolExecutionRequest.name());
final String toolExecutionResult = toolExecutor.execute(toolExecutionRequest, memoryId);
final ToolExecutionResultMessage toolExecutionResultMessage = ToolExecutionResultMessage.from(toolExecutionRequest, toolExecutionResult);
@@ -1,7 +1,7 @@
package dev.langchain4j.data.message;
import java.util.List;
import com.google.gson.reflect.TypeToken;
-static final class GsonChatMessageJsonCodec$1 extends TypeToken<List<ChatMessage>> {}
+class GsonChatMessageJsonCodec$1 extends TypeToken<List<ChatMessage>> {}
@@ -21,15 +21,15 @@
}
@Test
public void test_trivial() {
final ImageModel model = (ImageModel)new ImageModelTest.FixedImageModel(ImageModelTest.PLACEHOLDER_IMAGE);
final Response<Image> response = (Response<Image>)model.generate("prompt");
this.assertThat((Object)response).isNotNull();
- this.assertThat(response.content()).isEqualTo((Object)ImageModelTest.PLACEHOLDER_IMAGE);
+ this.assertThat((Object)response.content()).isEqualTo((Object)ImageModelTest.PLACEHOLDER_IMAGE);
}
static {
try {
PLACEHOLDER_IMAGE = Image.builder().url(new URI("https://foo.bar")).build();
}
catch (final Exception e) {
@@ -1,11 +1,12 @@
package dev.langchain4j.spi;
import java.util.function.Consumer;
+import java.util.Objects;
import java.util.ArrayList;
import java.util.List;
import java.util.ServiceLoader;
import java.util.Collection;
import java.util.Iterator;
import java.util.function.Function;
import java.util.function.Supplier;
@@ -53,11 +54,14 @@
result = loadAll((ServiceLoader<T>)ServiceLoader.load((Class<T>)clazz, ServiceHelper.class.getClassLoader()));
}
return result;
}
private static <T> List<T> loadAll(final ServiceLoader<T> loader) {
final List<T> list = new ArrayList<T>();
- loader.iterator().forEachRemaining(list::add);
+ final Iterator<T> iterator = loader.iterator();
+ final List<T> obj = list;
+ Objects.requireNonNull((ArrayList)obj);
+ iterator.forEachRemaining(obj::add);
return list;
}
}
@@ -16,10 +16,10 @@
public String getValue() {
return this.value;
}
static {
Types.CommandTextV14 = new Types("CommandTextV14", 0, "cohere.command-text-v14");
- Types.$VALUES = new Types[] { Types.CommandTextV14 };
+ Types.$VALUES = $values();
}
}
@@ -1,7 +1,7 @@
package dev.langchain4j.internal;
import java.util.Map;
import com.google.gson.reflect.TypeToken;
-static final class GsonJsonCodec$1 extends TypeToken<Map<String, String>> {}
+class GsonJsonCodec$1 extends TypeToken<Map<String, String>> {}
@@ -54,15 +54,15 @@
}
protected List<TextSegment> reRankAndFilter(final List<Content> contents, final Query query) {
final List<TextSegment> segments = (List<TextSegment>)contents.stream().map((Function<? super Object, ?>)Content::textSegment).collect((Collector<? super Object, ?, List<TextSegment>>)Collectors.toList());
final List<Double> scores = (List)this.scoringModel.scoreAll((List)segments, query.text()).content();
final Map<TextSegment, Double> segmentToScore = new HashMap<TextSegment, Double>();
for (int i = 0; i < segments.size(); ++i) {
- segmentToScore.put(segments.get(i), scores.get(i));
+ segmentToScore.put(segments.get(i), Double.valueOf(scores.get(i)));
}
return segmentToScore.entrySet().stream().filter(entry -> this.minScore == null || Double.valueOf(entry.getValue()) >= this.minScore).sorted((Comparator<? super Object>)Map.Entry.comparingByValue().reversed()).map((Function<? super Object, ?>)Map.Entry::getKey).collect((Collector<? super Object, ?, List<TextSegment>>)Collectors.toList());
}
public static ReRankingContentAggregator.ReRankingContentAggregatorBuilder builder() {
return new ReRankingContentAggregator.ReRankingContentAggregatorBuilder();
}
@@ -4,19 +4,19 @@
import org.slf4j.LoggerFactory;
import org.apache.http.impl.nio.client.HttpAsyncClientBuilder;
import co.elastic.clients.elasticsearch.indices.ExistsRequest;
import co.elastic.clients.elasticsearch.indices.CreateIndexRequest;
import co.elastic.clients.elasticsearch.core.bulk.BulkOperation;
import co.elastic.clients.elasticsearch._types.query_dsl.MatchAllQuery;
import co.elastic.clients.elasticsearch._types.Script;
-import co.elastic.clients.util.ObjectBuilder;
import co.elastic.clients.elasticsearch.core.search.Hit;
import com.fasterxml.jackson.core.JsonProcessingException;
import co.elastic.clients.json.JsonData;
import co.elastic.clients.elasticsearch._types.InlineScript;
+import co.elastic.clients.util.ObjectBuilder;
import co.elastic.clients.elasticsearch._types.query_dsl.Query;
import java.util.Iterator;
import co.elastic.clients.elasticsearch.core.BulkResponse;
import co.elastic.clients.elasticsearch.core.bulk.BulkResponseItem;
import co.elastic.clients.elasticsearch.core.bulk.IndexOperation;
import java.util.function.Function;
import dev.langchain4j.data.document.Metadata;
@@ -195,15 +195,15 @@
}
}
}
}
private ScriptScoreQuery buildDefaultScriptScoreQuery(final float[] vector, final float minScore) throws JsonProcessingException {
final JsonData queryVector = this.toJsonData(vector);
- return ScriptScoreQuery.of(q -> q.minScore(Float.valueOf(minScore)).query(Query.of(qu -> qu.matchAll(m -> m))).script(s -> s.inline(InlineScript.of(i -> (InlineScript.Builder)i.source("(cosineSimilarity(params.query_vector, 'vector') + 1.0) / 2").params("query_vector", queryVector)))));
+ return ScriptScoreQuery.of(q -> q.minScore(Float.valueOf(minScore)).query(Query.of(qu -> qu.matchAll(m -> m))).script(s -> s.inline(InlineScript.of(i -> (ObjectBuilder)i.source("(cosineSimilarity(params.query_vector, 'vector') + 1.0) / 2").params("query_vector", queryVector)))));
}
private <T> JsonData toJsonData(final T rawData) throws JsonProcessingException {
return JsonData.fromJson(this.objectMapper.writeValueAsString((Object)rawData));
}
private List<EmbeddingMatch<TextSegment>> toEmbeddingMatch(final SearchResponse<Document> response) {
@@ -40,30 +40,30 @@
this.awaitUntilPersisted();
final List<EmbeddingMatch<TextSegment>> relevant = this.embeddingStore().findRelevant(embedding, 10);
Assertions.assertThat((List)relevant).hasSize(1);
final EmbeddingMatch<TextSegment> match = (EmbeddingMatch<TextSegment>)relevant.get(0);
Assertions.assertThat(match.score()).isCloseTo(1.0, Percentage.withPercentage(1.0));
Assertions.assertThat(match.embeddingId()).isEqualTo(id);
Assertions.assertThat((Object)match.embedding()).isEqualTo((Object)embedding);
- Assertions.assertThat(match.embedded()).isNull();
+ Assertions.assertThat((Object)match.embedded()).isNull();
}
@Test
void should_add_embedding_with_id() {
final String id = Utils.randomUUID();
final Embedding embedding = (Embedding)this.embeddingModel().embed("hello").content();
this.embeddingStore().add(id, embedding);
this.awaitUntilPersisted();
final List<EmbeddingMatch<TextSegment>> relevant = this.embeddingStore().findRelevant(embedding, 10);
Assertions.assertThat((List)relevant).hasSize(1);
final EmbeddingMatch<TextSegment> match = (EmbeddingMatch<TextSegment>)relevant.get(0);
Assertions.assertThat(match.score()).isCloseTo(1.0, Percentage.withPercentage(1.0));
Assertions.assertThat(match.embeddingId()).isEqualTo(id);
Assertions.assertThat((Object)match.embedding()).isEqualTo((Object)embedding);
- Assertions.assertThat(match.embedded()).isNull();
+ Assertions.assertThat((Object)match.embedded()).isNull();
}
@Test
void should_add_embedding_with_segment() {
final TextSegment segment = TextSegment.from("hello");
final Embedding embedding = (Embedding)this.embeddingModel().embed(segment.text()).content();
final String id = this.embeddingStore().add(embedding, (Object)segment);
@@ -71,15 +71,15 @@
this.awaitUntilPersisted();
final List<EmbeddingMatch<TextSegment>> relevant = this.embeddingStore().findRelevant(embedding, 10);
Assertions.assertThat((List)relevant).hasSize(1);
final EmbeddingMatch<TextSegment> match = (EmbeddingMatch<TextSegment>)relevant.get(0);
Assertions.assertThat(match.score()).isCloseTo(1.0, Percentage.withPercentage(1.0));
Assertions.assertThat(match.embeddingId()).isEqualTo(id);
Assertions.assertThat((Object)match.embedding()).isEqualTo((Object)embedding);
- Assertions.assertThat(match.embedded()).isEqualTo((Object)segment);
+ Assertions.assertThat((Object)match.embedded()).isEqualTo((Object)segment);
}
@Test
void should_add_multiple_embeddings() {
final Embedding firstEmbedding = (Embedding)this.embeddingModel().embed("hello").content();
final Embedding secondEmbedding = (Embedding)this.embeddingModel().embed("hi").content();
final List<String> ids = this.embeddingStore().addAll((List)Arrays.asList(firstEmbedding, secondEmbedding));
@@ -90,20 +90,20 @@
this.awaitUntilPersisted();
final List<EmbeddingMatch<TextSegment>> relevant = this.embeddingStore().findRelevant(firstEmbedding, 10);
Assertions.assertThat((List)relevant).hasSize(2);
final EmbeddingMatch<TextSegment> firstMatch = (EmbeddingMatch<TextSegment>)relevant.get(0);
Assertions.assertThat(firstMatch.score()).isCloseTo(1.0, Percentage.withPercentage(1.0));
Assertions.assertThat(firstMatch.embeddingId()).isEqualTo((String)ids.get(0));
Assertions.assertThat((Object)firstMatch.embedding()).isEqualTo((Object)firstEmbedding);
- Assertions.assertThat(firstMatch.embedded()).isNull();
+ Assertions.assertThat((Object)firstMatch.embedded()).isNull();
final EmbeddingMatch<TextSegment> secondMatch = (EmbeddingMatch<TextSegment>)relevant.get(1);
Assertions.assertThat(secondMatch.score()).isCloseTo(RelevanceScore.fromCosineSimilarity(CosineSimilarity.between(firstEmbedding, secondEmbedding)), Percentage.withPercentage(1.0));
Assertions.assertThat(secondMatch.embeddingId()).isEqualTo((String)ids.get(1));
Assertions.assertThat(CosineSimilarity.between(secondMatch.embedding(), secondEmbedding)).isCloseTo(1.0, Percentage.withPercentage(0.01));
- Assertions.assertThat(secondMatch.embedded()).isNull();
+ Assertions.assertThat((Object)secondMatch.embedded()).isNull();
}
@Test
void should_add_multiple_embeddings_with_segments() {
final TextSegment firstSegment = TextSegment.from("hello");
final Embedding firstEmbedding = (Embedding)this.embeddingModel().embed(firstSegment.text()).content();
final TextSegment secondSegment = TextSegment.from("hi");
@@ -116,20 +116,20 @@
this.awaitUntilPersisted();
final List<EmbeddingMatch<TextSegment>> relevant = this.embeddingStore().findRelevant(firstEmbedding, 10);
Assertions.assertThat((List)relevant).hasSize(2);
final EmbeddingMatch<TextSegment> firstMatch = (EmbeddingMatch<TextSegment>)relevant.get(0);
Assertions.assertThat(firstMatch.score()).isCloseTo(1.0, Percentage.withPercentage(1.0));
Assertions.assertThat(firstMatch.embeddingId()).isEqualTo((String)ids.get(0));
Assertions.assertThat((Object)firstMatch.embedding()).isEqualTo((Object)firstEmbedding);
- Assertions.assertThat(firstMatch.embedded()).isEqualTo((Object)firstSegment);
+ Assertions.assertThat((Object)firstMatch.embedded()).isEqualTo((Object)firstSegment);
final EmbeddingMatch<TextSegment> secondMatch = (EmbeddingMatch<TextSegment>)relevant.get(1);
Assertions.assertThat(secondMatch.score()).isCloseTo(RelevanceScore.fromCosineSimilarity(CosineSimilarity.between(firstEmbedding, secondEmbedding)), Percentage.withPercentage(1.0));
Assertions.assertThat(secondMatch.embeddingId()).isEqualTo((String)ids.get(1));
Assertions.assertThat(CosineSimilarity.between(secondMatch.embedding(), secondEmbedding)).isCloseTo(1.0, Percentage.withPercentage(0.01));
- Assertions.assertThat(secondMatch.embedded()).isEqualTo((Object)secondSegment);
+ Assertions.assertThat((Object)secondMatch.embedded()).isEqualTo((Object)secondSegment);
}
@Test
void should_find_with_min_score() {
final String firstId = Utils.randomUUID();
final Embedding firstEmbedding = (Embedding)this.embeddingModel().embed("hello").content();
this.embeddingStore().add(firstId, firstEmbedding);
@@ -3,15 +3,15 @@
import dev.langchain4j.model.qianfan.client.chat.Message;
import com.google.gson.TypeAdapter;
import com.google.gson.reflect.TypeToken;
import com.google.gson.Gson;
import com.google.gson.TypeAdapterFactory;
-static final class MessageTypeAdapter$1 implements TypeAdapterFactory {
+class MessageTypeAdapter$1 implements TypeAdapterFactory {
public <T> TypeAdapter<T> create(final Gson gson, final TypeToken<T> type) {
if (type.getRawType() != Message.class) {
return null;
}
final TypeAdapter<Message> delegate = (TypeAdapter<Message>)gson.getDelegateAdapter((TypeAdapterFactory)this, (TypeToken)type);
return (TypeAdapter<T>)new MessageTypeAdapter((TypeAdapter)delegate, (MessageTypeAdapter$1)null);
}
@@ -26,18 +26,15 @@
private CqlSessionBuilder createCqlSessionBuilder(final CassandraEmbeddingConfiguration config) {
final CqlSessionBuilder cqlSessionBuilder = CqlSession.builder();
cqlSessionBuilder.withLocalDatacenter(config.getLocalDataCenter());
if (config.getUserName() != null && config.getPassword() != null) {
cqlSessionBuilder.withAuthCredentials(config.getUserName(), config.getPassword());
}
- config.getContactPoints().forEach(cp -> {
- final CqlSessionBuilder cqlSessionBuilder2 = (CqlSessionBuilder)cqlSessionBuilder.addContactPoint(new InetSocketAddress(cp, (int)config.getPort()));
- return;
- });
+ config.getContactPoints().forEach(cp -> cqlSessionBuilder.addContactPoint(new InetSocketAddress(cp, (int)config.getPort())));
return cqlSessionBuilder;
}
private void createKeyspaceIfNotExist(final CqlSessionBuilder cqlSessionBuilder, final String keyspace) {
try (final CqlSession adminSession = (CqlSession)cqlSessionBuilder.build()) {
adminSession.execute((Statement)((CreateKeyspace)((CreateKeyspace)SchemaBuilder.createKeyspace(keyspace).ifNotExists().withSimpleStrategy(1)).withDurableWrites(true)).build());
}
@@ -16,10 +16,10 @@
public String getValue() {
return this.value;
}
static {
Types.TitanEmbedTextV1 = new Types("TitanEmbedTextV1", 0, "amazon.titan-embed-text-v1");
- Types.$VALUES = new Types[] { Types.TitanEmbedTextV1 };
+ Types.$VALUES = $values();
}
}
@@ -1,14 +1,16 @@
package dev.langchain4j.store.embedding.redis;
import org.slf4j.LoggerFactory;
+import java.util.stream.Stream;
import dev.langchain4j.data.document.Metadata;
import java.util.function.Function;
import java.util.function.Predicate;
+import java.util.Objects;
import java.util.Optional;
import redis.clients.jedis.Pipeline;
import redis.clients.jedis.json.Path2;
import java.util.Map;
import java.util.HashMap;
import java.util.Collections;
import java.util.Set;
@@ -152,15 +154,22 @@
return documents.stream().map(document -> {
final double score = (2.0 - Double.parseDouble(document.getString("vector_score"))) / 2.0;
final String id = document.getId().substring(this.schema.getPrefix().length());
final String text = document.hasProperty(this.schema.getScalarFieldName()) ? document.getString(this.schema.getScalarFieldName()) : null;
TextSegment embedded = null;
if (text != null) {
final List<String> metadataFieldsName = this.schema.getMetadataFieldsName();
- final Map<String, String> metadata = (Map<String, String>)metadataFieldsName.stream().filter((Predicate<? super Object>)document::hasProperty).collect(Collectors.toMap(metadataFieldName -> metadataFieldName, (Function<? super Object, ? extends String>)document::getString));
+ metadataFieldsName.stream();
+ Objects.requireNonNull(document);
+ final Stream<Object> stream;
+ stream.filter((Predicate<? super Object>)document::hasProperty);
+ final Function<Object, String> keyMapper = metadataFieldName -> metadataFieldName;
+ Objects.requireNonNull(document);
+ final Stream<Object> stream2;
+ final Map<String, String> metadata = (Map<String, String>)stream2.collect((Collector<? super Object, ?, Map<String, String>>)Collectors.toMap((Function<? super Object, ?>)keyMapper, (Function<? super Object, ?>)document::getString));
new TextSegment(text, new Metadata((Map)metadata));
final TextSegment textSegment;
embedded = textSegment;
}
final Embedding embedding = new Embedding((float[])RedisEmbeddingStore.GSON.fromJson(document.getString(this.schema.getVectorFieldName()), (Class)float[].class));
return new EmbeddingMatch(Double.valueOf(score), id, embedding, (Object)embedded);
}).filter(embeddingMatch -> embeddingMatch.score() >= minScore).collect((Collector<? super Object, ?, List<EmbeddingMatch<TextSegment>>>)Collectors.toList());
@@ -16,10 +16,10 @@
public String getValue() {
return this.value;
}
static {
Types.StableDiffuseXlV0 = new Types("StableDiffuseXlV0", 0, "stability.stable-diffusion-xl-v0");
- Types.$VALUES = new Types[] { Types.StableDiffuseXlV0 };
+ Types.$VALUES = $values();
}
}
@@ -12,12 +12,12 @@
default Response<Double> score(final String text, final String query) {
return this.score(TextSegment.from(text), query);
}
default Response<Double> score(final TextSegment segment, final String query) {
final Response<List<Double>> response = this.scoreAll(Collections.singletonList(segment), query);
ValidationUtils.ensureEq((Object)Integer.valueOf(((List)response.content()).size()), (Object)Integer.valueOf(1), "Expected a single score, but received %d", new Object[] { Integer.valueOf(((List)response.content()).size()) });
- return (Response<Double>)Response.from(((List)response.content()).get(0), response.tokenUsage(), response.finishReason());
+ return (Response<Double>)Response.from((Object)Double.valueOf(((List)response.content()).get(0)), response.tokenUsage(), response.finishReason());
}
Response<List<Double>> scoreAll(final List<TextSegment> p0, final String p1);
}
@@ -11,10 +11,10 @@
return Enum.valueOf(E.class, name);
}
static {
E.A = new E("A", 0);
E.B = new E("B", 1);
E.C = new E("C", 2);
- E.$VALUES = new E[] { E.A, E.B, E.C };
+ E.$VALUES = $values();
}
}
@@ -13,12 +13,12 @@
default Response<Embedding> embed(final String text) {
return this.embed(TextSegment.from(text));
}
default Response<Embedding> embed(final TextSegment textSegment) {
final Response<List<Embedding>> response = this.embedAll(Collections.singletonList(textSegment));
ValidationUtils.ensureEq((Object)Integer.valueOf(((List)response.content()).size()), (Object)Integer.valueOf(1), "Expected a single embedding, but got %d", new Object[] { Integer.valueOf(((List)response.content()).size()) });
- return (Response<Embedding>)Response.from(((List)response.content()).get(0), response.tokenUsage(), response.finishReason());
+ return (Response<Embedding>)Response.from((Object)(Embedding)((List)response.content()).get(0), response.tokenUsage(), response.finishReason());
}
Response<List<Embedding>> embedAll(final List<TextSegment> p0);
}
@@ -27,47 +27,43 @@
return sb.toString();
}
@Test
public void test() throws Exception {
final GsonJsonCodec codec = new GsonJsonCodec();
final GsonJsonCodecTest.Example example = new GsonJsonCodecTest.Example("John", 42);
- this.assertThat(codec.fromJson(codec.toJson((Object)example), (Class)GsonJsonCodecTest.Example.class)).isEqualTo((Object)example);
+ this.assertThat((Object)codec.fromJson(codec.toJson((Object)example), (Class)GsonJsonCodecTest.Example.class)).isEqualTo((Object)example);
final InputStream inputStream = codec.toInputStream((Object)example, (Class)GsonJsonCodecTest.Example.class);
- this.assertThat(codec.fromJson(readAllBytes(inputStream), (Class)GsonJsonCodecTest.Example.class)).isEqualTo((Object)example);
+ this.assertThat((Object)codec.fromJson(readAllBytes(inputStream), (Class)GsonJsonCodecTest.Example.class)).isEqualTo((Object)example);
}
@Test
public void test_map() {
final GsonJsonCodec codec = new GsonJsonCodec();
final TypeToken<Map<String, String>> tt = (TypeToken<Map<String, String>>)new GsonJsonCodecTest.GsonJsonCodecTest$1(this);
this.assertThat((Object)GsonJsonCodec.MAP_TYPE).isEqualTo((Object)tt.getType());
final Map<String, String> expectedMap = new HashMap<String, String>();
expectedMap.put("a", "b");
this.assertThat(codec.toJson((Object)expectedMap)).isEqualTo("{\n \"a\": \"b\"\n}");
this.assertThat(codec.fromJson("{\"a\": \"b\"}", (Class)expectedMap.getClass())).isEqualTo((Object)expectedMap);
- this.assertThatExceptionOfType((Class)JsonSyntaxException.class).isThrownBy(() -> {
- final Map map = (Map)codec.fromJson("{\"a\": [1, 2]}", (Class)Map.class);
- });
+ this.assertThatExceptionOfType((Class)JsonSyntaxException.class).isThrownBy(() -> codec.fromJson("{\"a\": [1, 2]}", (Class)Map.class));
}
@Test
public void test_datetime() {
final GsonJsonCodec codec = new GsonJsonCodec();
final GsonJsonCodecTest.DateExample example = new GsonJsonCodecTest.DateExample(LocalDate.of(2019, 1, 1), LocalDateTime.of(2019, 1, 1, 0, 0, 0));
this.assertThat(codec.toJson((Object)example)).isEqualTo("{\n \"localDate\": \"2019-01-01\",\n \"localDateTime\": \"2019-01-01T00:00:00\"\n}");
- this.assertThat(codec.fromJson(codec.toJson((Object)example), (Class)GsonJsonCodecTest.DateExample.class)).isEqualTo((Object)example);
+ this.assertThat((Object)codec.fromJson(codec.toJson((Object)example), (Class)GsonJsonCodecTest.DateExample.class)).isEqualTo((Object)example);
}
@Test
public void test_broken() {
final GsonJsonCodec codec = new GsonJsonCodec();
- this.assertThatExceptionOfType((Class)JsonSyntaxException.class).isThrownBy(() -> {
- final Integer n = (Integer)codec.fromJson("abc", (Class)Integer.class);
- });
+ this.assertThatExceptionOfType((Class)JsonSyntaxException.class).isThrownBy(() -> codec.fromJson("abc", (Class)Integer.class));
this.assertThatExceptionOfType((Class)ClassCastException.class).isThrownBy(() -> {
try (final InputStream ignored = codec.toInputStream((Object)"abc", (Class)Integer.class)) {
this.fail("should not reach here");
}
});
}
}
@@ -1,10 +1,10 @@
package dev.langchain4j.model.bedrock.internal;
import java.util.HashMap;
-static final class AbstractBedrockChatModel$1 extends HashMap<String, Object> {
+class AbstractBedrockChatModel$1 extends HashMap<String, Object> {
{
this.put((Object)this.val$key, this.val$value);
}
}
@@ -1,12 +1,14 @@
package dev.langchain4j.rag.query.router;
+import java.util.stream.Stream;
import java.util.stream.Collector;
import java.util.stream.Collectors;
+import java.util.Objects;
import java.util.function.Function;
import java.util.Arrays;
import dev.langchain4j.model.input.Prompt;
import java.util.Collection;
import dev.langchain4j.rag.query.Query;
import java.util.Iterator;
import java.util.HashMap;
@@ -33,15 +35,15 @@
this.chatLanguageModel = (ChatLanguageModel)ValidationUtils.ensureNotNull((Object)chatLanguageModel, "chatLanguageModel");
ValidationUtils.ensureNotEmpty((Map)retrieverToDescription, "retrieverToDescription");
this.promptTemplate = (PromptTemplate)Utils.getOrDefault((Object)promptTemplate, (Object)LanguageModelQueryRouter.DEFAULT_PROMPT_TEMPLATE);
final Map<Integer, ContentRetriever> idToRetriever = new HashMap<Integer, ContentRetriever>();
final StringBuilder optionsBuilder = new StringBuilder();
int id = 1;
for (final Map.Entry<ContentRetriever, String> entry : retrieverToDescription.entrySet()) {
- idToRetriever.put(Integer.valueOf(id), (ContentRetriever)ValidationUtils.ensureNotNull((Object)entry.getKey(), "ContentRetriever"));
+ idToRetriever.put(Integer.valueOf(id), (ContentRetriever)ValidationUtils.ensureNotNull((Object)(ContentRetriever)entry.getKey(), "ContentRetriever"));
if (id > 1) {
optionsBuilder.append("\n");
}
optionsBuilder.append(id);
optionsBuilder.append(": ");
optionsBuilder.append(ValidationUtils.ensureNotBlank((String)entry.getValue(), "ContentRetriever description"));
++id;
@@ -60,15 +62,18 @@
final Map<String, Object> variables = new HashMap<String, Object>();
variables.put("query", query.text());
variables.put("options", this.options);
return this.promptTemplate.apply((Map)variables);
}
protected Collection<ContentRetriever> parse(final String choices) {
- return Arrays.stream(choices.split(",")).map((Function<? super String, ?>)String::trim).map((Function<? super Object, ?>)Integer::parseInt).map((Function<? super Object, ?>)this.idToRetriever::get).collect((Collector<? super Object, ?, Collection<ContentRetriever>>)Collectors.toList());
+ final Stream<Object> map = Arrays.stream(choices.split(",")).map((Function<? super String, ?>)String::trim).map((Function<? super Object, ?>)Integer::parseInt);
+ final Map<Integer, ContentRetriever> idToRetriever = this.idToRetriever;
+ Objects.requireNonNull(idToRetriever);
+ return map.map((Function<? super Object, ?>)idToRetriever::get).collect((Collector<? super Object, ?, Collection<ContentRetriever>>)Collectors.toList());
}
public static LanguageModelQueryRouter.LanguageModelQueryRouterBuilder builder() {
return new LanguageModelQueryRouter.LanguageModelQueryRouterBuilder();
}
static {
@@ -52,15 +52,16 @@
final Value.Builder instanceBuilder = Value.newBuilder();
JsonFormat.parser().merge(Json.toJson((Object)vertexAiChatInstance), (Message.Builder)instanceBuilder);
final List<Value> instances = Collections.singletonList(instanceBuilder.build());
final Value.Builder parametersBuilder = Value.newBuilder();
JsonFormat.parser().merge(Json.toJson((Object)this.vertexAiParameters), (Message.Builder)parametersBuilder);
final Value parameters = parametersBuilder.build();
final PredictResponse response = (PredictResponse)RetryUtils.withRetry(() -> client.predict(this.endpointName, instances, parameters), (int)this.maxRetries);
- return (Response<AiMessage>)Response.from((Object)AiMessage.from(extractContent(response)), new TokenUsage(Integer.valueOf(extractTokenCount(response, "inputTokenCount")), Integer.valueOf(extractTokenCount(response, "outputTokenCount"))));
+ final Response from = Response.from((Object)AiMessage.from(extractContent(response)), new TokenUsage(Integer.valueOf(extractTokenCount(response, "inputTokenCount")), Integer.valueOf(extractTokenCount(response, "outputTokenCount"))));
+ return (Response<AiMessage>)from;
}
catch (final IOException e) {
throw new RuntimeException(e);
}
}
private static String extractContent(final PredictResponse predictResponse) {
@@ -1,7 +1,7 @@
package dev.langchain4j.model.input.structured;
import java.util.Map;
import com.google.gson.reflect.TypeToken;
-static final class DefaultStructuredPromptFactory$1 extends TypeToken<Map<String, Object>> {}
+class DefaultStructuredPromptFactory$1 extends TypeToken<Map<String, Object>> {}
@@ -1,21 +1,20 @@
package dev.langchain4j.model.input.structured;
-import java.lang.annotation.Annotation;
import dev.langchain4j.internal.ValidationUtils;
public static class Util
{
private Util() {
}
public static StructuredPrompt validateStructuredPrompt(final Object structuredPrompt) {
ValidationUtils.ensureNotNull(structuredPrompt, "structuredPrompt");
final Class<?> cls = structuredPrompt.getClass();
- return (StructuredPrompt)ValidationUtils.ensureNotNull((Object)cls.getAnnotation((Class<Annotation>)StructuredPrompt.class), "%s should be annotated with @StructuredPrompt to be used as a structured prompt", new Object[] { cls.getName() });
+ return (StructuredPrompt)ValidationUtils.ensureNotNull((Object)(StructuredPrompt)cls.getAnnotation(StructuredPrompt.class), "%s should be annotated with @StructuredPrompt to be used as a structured prompt", new Object[] { cls.getName() });
}
public static String join(final StructuredPrompt structuredPrompt) {
return String.join(structuredPrompt.delimiter(), (CharSequence[])structuredPrompt.value());
}
}
@@ -11,10 +11,10 @@
return Enum.valueOf(DetailLevel.class, name);
}
static {
DetailLevel.LOW = new DetailLevel("LOW", 0);
DetailLevel.HIGH = new DetailLevel("HIGH", 1);
DetailLevel.AUTO = new DetailLevel("AUTO", 2);
- DetailLevel.$VALUES = new DetailLevel[] { DetailLevel.LOW, DetailLevel.HIGH, DetailLevel.AUTO };
+ DetailLevel.$VALUES = $values();
}
}
@@ -3,15 +3,17 @@
import java.util.function.Supplier;
import dev.langchain4j.spi.ServiceHelper;
import dev.langchain4j.model.localai.spi.LocalAiStreamingChatModelBuilderFactory;
import dev.ai4j.openai4j.chat.Delta;
import dev.ai4j.openai4j.chat.ChatCompletionChoice;
import dev.ai4j.openai4j.chat.ChatCompletionResponse;
+import dev.ai4j.openai4j.StreamingCompletionHandling;
import java.util.function.Consumer;
+import java.util.Objects;
import dev.langchain4j.model.output.Response;
import dev.langchain4j.model.Tokenizer;
import dev.langchain4j.model.openai.OpenAiStreamingResponseBuilder;
import java.util.Collection;
import dev.langchain4j.model.openai.InternalOpenAiHelper;
import dev.ai4j.openai4j.chat.ChatCompletionRequest;
import java.util.Collections;
@@ -61,21 +63,25 @@
requestBuilder.functions(InternalOpenAiHelper.toFunctions((Collection)toolSpecifications));
}
if (toolThatMustBeExecuted != null) {
requestBuilder.functionCall(toolThatMustBeExecuted.name());
}
final ChatCompletionRequest request = requestBuilder.build();
final OpenAiStreamingResponseBuilder responseBuilder = new OpenAiStreamingResponseBuilder((Integer)null);
- this.client.chatCompletion(request).onPartialResponse(partialResponse -> {
+ final StreamingCompletionHandling onComplete = this.client.chatCompletion(request).onPartialResponse(partialResponse -> {
responseBuilder.append(partialResponse);
handle(partialResponse, (StreamingResponseHandler<AiMessage>)handler);
+ return;
}).onComplete(() -> {
- final Response<AiMessage> response = (Response<AiMessage>)responseBuilder.build((Tokenizer)null, false);
+ final Response<AiMessage> response = (Response<AiMessage>)responseBuilder.build((Tokenizer)null, (boolean)(0 != 0));
handler.onComplete((Response)response);
- }).onError((Consumer)handler::onError).execute();
+ return;
+ });
+ Objects.requireNonNull(handler);
+ onComplete.onError((Consumer)handler::onError).execute();
}
private static void handle(final ChatCompletionResponse partialResponse, final StreamingResponseHandler<AiMessage> handler) {
final List<ChatCompletionChoice> choices = partialResponse.choices();
if (choices == null || choices.isEmpty()) {
return;
}
@@ -26,18 +26,20 @@
import java.util.HashMap;
import dev.langchain4j.internal.Utils;
import dev.langchain4j.data.message.ImageContent;
import dev.langchain4j.data.message.Content;
import java.util.Collections;
import java.util.Map;
import com.alibaba.dashscope.common.MultiModalMessage;
+import java.util.stream.Stream;
import dev.langchain4j.data.message.ToolExecutionResultMessage;
import dev.langchain4j.data.message.SystemMessage;
import dev.langchain4j.data.message.AiMessage;
import java.util.function.Predicate;
+import java.util.Objects;
import dev.langchain4j.data.message.TextContent;
import dev.langchain4j.data.message.UserMessage;
import java.util.LinkedList;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import java.util.function.Function;
import com.alibaba.dashscope.common.Message;
@@ -59,15 +61,21 @@
static Message toQwenMessage(final ChatMessage message) {
return Message.builder().role(roleFrom(message)).content(toSingleText(message)).build();
}
static String toSingleText(final ChatMessage message) {
switch (QwenHelper.QwenHelper$1.$SwitchMap$dev$langchain4j$data$message$ChatMessageType[message.type().ordinal()]) {
case 1: {
- return (String)((UserMessage)message).contents().stream().filter(TextContent.class::isInstance).map(TextContent.class::cast).map(TextContent::text).collect(Collectors.joining("\n"));
+ final Stream stream = ((UserMessage)message).contents().stream();
+ final Class<TextContent> obj = TextContent.class;
+ Objects.requireNonNull(obj);
+ final Stream filter = stream.filter(obj::isInstance);
+ final Class<TextContent> obj2 = TextContent.class;
+ Objects.requireNonNull(obj2);
+ return (String)filter.map(obj2::cast).map(TextContent::text).collect(Collectors.joining("\n"));
}
case 2: {
return ((AiMessage)message).text();
}
case 3: {
return ((SystemMessage)message).text();
}
@@ -165,15 +173,18 @@
}
static String answerFrom(final GenerationResult result) {
return Optional.of(result).map((Function<? super GenerationResult, ?>)GenerationResult::getOutput).map((Function<? super Object, ?>)GenerationOutput::getChoices).filter(choices -> !choices.isEmpty()).map(choices -> (GenerationOutput.Choice)choices.get(0)).map((Function<? super Object, ?>)GenerationOutput.Choice::getMessage).map((Function<? super Object, ? extends String>)Message::getContent).orElseGet(() -> (String)Optional.of(result).map((Function<? super GenerationResult, ?>)GenerationResult::getOutput).map((Function<? super Object, ? extends String>)GenerationOutput::getText).orElseThrow((Supplier<? extends Throwable>)NullPointerException::new));
}
static String answerFrom(final MultiModalConversationResult result) {
- return Optional.of(result).map((Function<? super MultiModalConversationResult, ?>)MultiModalConversationResult::getOutput).map((Function<? super Object, ?>)MultiModalConversationOutput::getChoices).filter(choices -> !choices.isEmpty()).map(choices -> (MultiModalConversationOutput.Choice)choices.get(0)).map((Function<? super Object, ?>)MultiModalConversationOutput.Choice::getMessage).map((Function<? super Object, ?>)MultiModalMessage::getContent).filter(contents -> !contents.isEmpty()).map(contents -> (Map<?, ?>)contents.get(0)).map(content -> content.get("text")).map((Function<? super Object, ? extends String>)String.class::cast).orElseThrow((Supplier<? extends Throwable>)NullPointerException::new);
+ final Optional<Object> map = Optional.of(result).map((Function<? super MultiModalConversationResult, ?>)MultiModalConversationResult::getOutput).map((Function<? super Object, ?>)MultiModalConversationOutput::getChoices).filter(choices -> !choices.isEmpty()).map(choices -> (MultiModalConversationOutput.Choice)choices.get(0)).map((Function<? super Object, ?>)MultiModalConversationOutput.Choice::getMessage).map((Function<? super Object, ?>)MultiModalMessage::getContent).filter(contents -> !contents.isEmpty()).map(contents -> (Map<?, ?>)contents.get(0)).map(content -> content.get("text"));
+ final Class<String> obj = String.class;
+ Objects.requireNonNull(obj);
+ return map.map((Function<? super Object, ?>)obj::cast).orElseThrow((Supplier<? extends Throwable>)NullPointerException::new);
}
static TokenUsage tokenUsageFrom(final GenerationResult result) {
return Optional.of(result).map((Function<? super GenerationResult, ?>)GenerationResult::getUsage).map(usage -> new TokenUsage(usage.getInputTokens(), usage.getOutputTokens())).orElse(null);
}
static TokenUsage tokenUsageFrom(final MultiModalConversationResult result) {
@@ -1,7 +1,7 @@
package dev.langchain4j.agent.tool;
import java.util.Map;
import com.google.gson.reflect.TypeToken;
-static final class ToolExecutionRequestUtil$1 extends TypeToken<Map<String, Object>> {}
+class ToolExecutionRequestUtil$1 extends TypeToken<Map<String, Object>> {}
@@ -1,15 +1,17 @@
package dev.langchain4j.model.localai;
import dev.ai4j.openai4j.completion.CompletionResponse;
import java.util.function.Supplier;
import dev.langchain4j.spi.ServiceHelper;
import dev.langchain4j.model.localai.spi.LocalAiStreamingLanguageModelBuilderFactory;
+import dev.ai4j.openai4j.StreamingCompletionHandling;
import java.util.function.Consumer;
+import java.util.Objects;
import dev.langchain4j.model.output.Response;
import dev.langchain4j.data.message.AiMessage;
import dev.langchain4j.model.Tokenizer;
import dev.langchain4j.model.openai.OpenAiStreamingResponseBuilder;
import dev.ai4j.openai4j.completion.CompletionRequest;
import dev.langchain4j.model.StreamingResponseHandler;
import dev.langchain4j.internal.ValidationUtils;
@@ -34,23 +36,27 @@
this.topP = topP;
this.maxTokens = maxTokens;
}
public void generate(final String prompt, final StreamingResponseHandler<String> handler) {
final CompletionRequest request = CompletionRequest.builder().model(this.modelName).prompt(prompt).temperature(this.temperature).topP(this.topP).maxTokens(this.maxTokens).build();
final OpenAiStreamingResponseBuilder responseBuilder = new OpenAiStreamingResponseBuilder((Integer)null);
- this.client.completion(request).onPartialResponse(partialResponse -> {
+ final StreamingCompletionHandling onComplete = this.client.completion(request).onPartialResponse(partialResponse -> {
responseBuilder.append(partialResponse);
final String token = partialResponse.text();
if (token != null) {
handler.onNext(token);
}
+ return;
}).onComplete(() -> {
- final Response<AiMessage> response = (Response<AiMessage>)responseBuilder.build((Tokenizer)null, false);
+ final Response<AiMessage> response = (Response<AiMessage>)responseBuilder.build((Tokenizer)null, (boolean)(0 != 0));
handler.onComplete(Response.from((Object)((AiMessage)response.content()).text(), response.tokenUsage(), response.finishReason()));
- }).onError((Consumer)handler::onError).execute();
+ return;
+ });
+ Objects.requireNonNull(handler);
+ onComplete.onError((Consumer)handler::onError).execute();
}
public static LocalAiStreamingLanguageModel.LocalAiStreamingLanguageModelBuilder builder() {
return (LocalAiStreamingLanguageModel.LocalAiStreamingLanguageModelBuilder)ServiceHelper.loadFactoryService((Class)LocalAiStreamingLanguageModelBuilderFactory.class, (Supplier)LocalAiStreamingLanguageModel.LocalAiStreamingLanguageModelBuilder::new);
}
}
@@ -1,16 +1,18 @@
package dev.langchain4j.model.qianfan;
import java.util.function.Supplier;
import dev.langchain4j.spi.ServiceHelper;
import dev.langchain4j.model.qianfan.spi.QianfanStreamingLanguageModelBuilderFactory;
+import dev.langchain4j.model.qianfan.client.StreamingCompletionHandling;
import dev.langchain4j.model.qianfan.client.completion.CompletionResponse;
import dev.langchain4j.model.qianfan.client.SyncOrAsyncOrStreaming;
import java.util.function.Consumer;
+import java.util.Objects;
import dev.langchain4j.model.output.Response;
import dev.langchain4j.model.Tokenizer;
import dev.langchain4j.model.qianfan.client.QianfanStreamingResponseBuilder;
import dev.langchain4j.model.qianfan.client.completion.CompletionRequest;
import dev.langchain4j.model.StreamingResponseHandler;
import dev.langchain4j.internal.Utils;
import dev.langchain4j.model.qianfan.client.QianfanClient;
@@ -46,21 +48,25 @@
this.penaltyScore = penaltyScore;
}
public void generate(final String prompt, final StreamingResponseHandler<String> handler) {
final CompletionRequest request = CompletionRequest.builder().prompt(prompt).topK(this.topK).topP(this.topP).temperature(this.temperature).penaltyScore(this.penaltyScore).build();
final QianfanStreamingResponseBuilder responseBuilder = new QianfanStreamingResponseBuilder((Integer)null);
final SyncOrAsyncOrStreaming<CompletionResponse> response = (SyncOrAsyncOrStreaming<CompletionResponse>)this.client.completion(request, true, this.endpoint);
- response.onPartialResponse(partialResponse -> {
+ final StreamingCompletionHandling onComplete = response.onPartialResponse(partialResponse -> {
responseBuilder.append(partialResponse);
handle(partialResponse, (StreamingResponseHandler<String>)handler);
+ return;
}).onComplete(() -> {
final Response<String> response2 = (Response<String>)responseBuilder.build((Tokenizer)null);
handler.onComplete((Response)response2);
- }).onError((Consumer)handler::onError).execute();
+ return;
+ });
+ Objects.requireNonNull(handler);
+ onComplete.onError((Consumer)handler::onError).execute();
}
private static void handle(final CompletionResponse partialResponse, final StreamingResponseHandler<String> handler) {
final String result = partialResponse.getResult();
if (Utils.isNullOrBlank(result)) {
return;
}
@@ -73,15 +73,15 @@
throw new RuntimeException("Impossible to create persistence temporary directory", e);
}
}
}
public Response<Image> generate(final String prompt) {
final Response<List<Image>> generatedImageResponse = this.generate(prompt, 1);
- return (Response<Image>)Response.from(((List)generatedImageResponse.content()).get(0), generatedImageResponse.tokenUsage(), generatedImageResponse.finishReason());
+ return (Response<Image>)Response.from((Object)(Image)((List)generatedImageResponse.content()).get(0), generatedImageResponse.tokenUsage(), generatedImageResponse.finishReason());
}
public Response<List<Image>> generate(final String prompt, final int n) {
return this.generate(prompt, null, null, n);
}
private Response<List<Image>> generate(final String prompt, final Image image, final Image mask, final int n) {
@@ -91,15 +91,16 @@
final List<Value> instances = this.prepareInstance(prompt, image, mask);
final Value parameters = this.prepareParameters(n);
final PredictResponse predictResponse = (PredictResponse)RetryUtils.withRetry(() -> client.predict(this.endpointName, instances, parameters), this.maxRetries);
final List<Image> allImages = (List)predictResponse.getPredictionsList().stream().map(v -> {
final String bytesBase64Encoded = ((Value)v.getStructValue().getFieldsMap().get("bytesBase64Encoded")).getStringValue();
return Image.builder().base64Data(bytesBase64Encoded).url(this.persistAndGetURI(bytesBase64Encoded)).build();
}).collect(Collectors.toList());
- return (Response<List<Image>>)Response.from((Object)allImages);
+ final Response from = Response.from((Object)allImages);
+ return (Response<List<Image>>)from;
}
}
catch (final IOException e) {
throw new RuntimeException(e);
}
}
@@ -148,20 +149,20 @@
final Value.Builder instanceBuilder = Value.newBuilder();
JsonFormat.parser().merge(Json.toJson((Object)promptMap), (Message.Builder)instanceBuilder);
return Collections.singletonList(instanceBuilder.build());
}
public Response<Image> edit(final Image image, final String prompt) {
final Response<Image> generatedImageResponse = this.edit(image, null, prompt);
- return (Response<Image>)Response.from(generatedImageResponse.content(), generatedImageResponse.tokenUsage(), generatedImageResponse.finishReason());
+ return (Response<Image>)Response.from((Object)generatedImageResponse.content(), generatedImageResponse.tokenUsage(), generatedImageResponse.finishReason());
}
public Response<Image> edit(final Image image, final Image mask, final String prompt) {
final Response<List<Image>> generatedImageResponse = this.generate(prompt, image, mask, 1);
- return (Response<Image>)Response.from(((List)generatedImageResponse.content()).get(0), generatedImageResponse.tokenUsage(), generatedImageResponse.finishReason());
+ return (Response<Image>)Response.from((Object)(Image)((List)generatedImageResponse.content()).get(0), generatedImageResponse.tokenUsage(), generatedImageResponse.finishReason());
}
private URI persistAndGetURI(final String bytesBase64Encoded) {
if (this.withPersisting != null && this.withPersisting) {
try {
final Path tempFile = Files.createTempFile(this.tempDirectory, "imagen-image-", ".png", (FileAttribute<?>[])new FileAttribute[0]);
Files.write(tempFile, Base64.getDecoder().decode(bytesBase64Encoded), new OpenOption[0]);
@@ -18,10 +18,10 @@
public String getValue() {
return this.value;
}
static {
Types.TitanTg1Large = new Types("TitanTg1Large", 0, "amazon.titan-tg1-large");
Types.TitanTextExpressV1 = new Types("TitanTextExpressV1", 1, "amazon.titan-text-express-v1");
- Types.$VALUES = new Types[] { Types.TitanTg1Large, Types.TitanTextExpressV1 };
+ Types.$VALUES = $values();
}
}
@@ -39,15 +39,15 @@
public List<String> getMetadataValues() {
return this.metadataValues;
}
@Override
public String toString() {
- return "LangchainInfinispanItem{id='" + this.id + "', embedding=" + Arrays.toString(this.embedding) + ", text='" + this.text + "', metadataKeys=" + String.valueOf((Object)this.metadataKeys) + ", metadataValues=" + String.valueOf((Object)this.metadataValues);
+ return "LangchainInfinispanItem{id='" + this.id + "', embedding=" + Arrays.toString(this.embedding) + ", text='" + this.text + "', metadataKeys=" + this.metadataKeys + ", metadataValues=" + this.metadataValues;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
@@ -90,10 +90,10 @@
public Neo4jEmbeddingStore build() {
return new Neo4jEmbeddingStore(this.config, this.driver, this.dimension, this.label, this.embeddingProperty, this.idProperty, this.metadataPrefix, this.textProperty, this.indexName, this.databaseName, this.retrievalQuery, this.awaitIndexTimeout);
}
@Override
public String toString() {
- return "Neo4jEmbeddingStore.Neo4jEmbeddingStoreBuilder(config=" + String.valueOf((Object)this.config) + ", driver=" + String.valueOf((Object)this.driver) + ", dimension=" + this.dimension + ", label=" + this.label + ", embeddingProperty=" + this.embeddingProperty + ", idProperty=" + this.idProperty + ", metadataPrefix=" + this.metadataPrefix + ", textProperty=" + this.textProperty + ", indexName=" + this.indexName + ", databaseName=" + this.databaseName + ", retrievalQuery=" + this.retrievalQuery + ", awaitIndexTimeout=" + this.awaitIndexTimeout;
+ return "Neo4jEmbeddingStore.Neo4jEmbeddingStoreBuilder(config=" + this.config + ", driver=" + this.driver + ", dimension=" + this.dimension + ", label=" + this.label + ", embeddingProperty=" + this.embeddingProperty + ", idProperty=" + this.idProperty + ", metadataPrefix=" + this.metadataPrefix + ", textProperty=" + this.textProperty + ", indexName=" + this.indexName + ", databaseName=" + this.databaseName + ", retrievalQuery=" + this.retrievalQuery + ", awaitIndexTimeout=" + this.awaitIndexTimeout;
}
}
@@ -68,20 +68,20 @@
catch (final Exception e) {
LanguageModelQueryRouter.log.warn("Failed to route query '{}'", (Object)query.text(), (Object)e);
return this.fallback(query, e);
}
}
protected Collection<ContentRetriever> fallback(final Query query, final Exception e) {
- switch (this.fallbackStrategy.ordinal()) {
- case 0: {
+ switch (LanguageModelQueryRouter.LanguageModelQueryRouter$1.$SwitchMap$dev$langchain4j$rag$query$router$LanguageModelQueryRouter$FallbackStrategy[this.fallbackStrategy.ordinal()]) {
+ case 1: {
LanguageModelQueryRouter.log.debug("Fallback: query '{}' will not be routed", (Object)query.text());
return (Collection<ContentRetriever>)Collections.emptyList();
}
- case 1: {
+ case 2: {
LanguageModelQueryRouter.log.debug("Fallback: query '{}' will be routed to all available content retrievers", (Object)query.text());
return new ArrayList<ContentRetriever>(this.idToRetriever.values());
}
default: {
throw new RuntimeException(e);
}
}
@@ -39,15 +39,15 @@
public List<String> getMetadataValues() {
return this.metadataValues;
}
@Override
public String toString() {
- return "LangchainInfinispanItem{id='" + this.id + "', embedding=" + Arrays.toString(this.embedding) + ", text='" + this.text + "', metadataKeys=" + String.valueOf((Object)this.metadataKeys) + ", metadataValues=" + String.valueOf((Object)this.metadataValues);
+ return "LangchainInfinispanItem{id='" + this.id + "', embedding=" + Arrays.toString(this.embedding) + ", text='" + this.text + "', metadataKeys=" + this.metadataKeys + ", metadataValues=" + this.metadataValues;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
@@ -93,15 +93,15 @@
final Object $metadata = this.getMetadata();
result = result * 59 + (($metadata == null) ? 43 : $metadata.hashCode());
return result;
}
@Override
public String toString() {
- return "Document(vector=" + Arrays.toString(this.getVector()) + ", text=" + this.getText() + ", metadata=" + String.valueOf((Object)this.getMetadata());
+ return "Document(vector=" + Arrays.toString(this.getVector()) + ", text=" + this.getText() + ", metadata=" + this.getMetadata();
}
public Document() {
}
public Document(final float[] vector, final String text, final Map<String, String> metadata) {
this.vector = vector;
@@ -90,10 +90,10 @@
public Neo4jEmbeddingStore build() {
return new Neo4jEmbeddingStore(this.config, this.driver, this.dimension, this.label, this.embeddingProperty, this.idProperty, this.metadataPrefix, this.textProperty, this.indexName, this.databaseName, this.retrievalQuery, this.awaitIndexTimeout);
}
@Override
public String toString() {
- return "Neo4jEmbeddingStore.Neo4jEmbeddingStoreBuilder(config=" + String.valueOf((Object)this.config) + ", driver=" + String.valueOf((Object)this.driver) + ", dimension=" + this.dimension + ", label=" + this.label + ", embeddingProperty=" + this.embeddingProperty + ", idProperty=" + this.idProperty + ", metadataPrefix=" + this.metadataPrefix + ", textProperty=" + this.textProperty + ", indexName=" + this.indexName + ", databaseName=" + this.databaseName + ", retrievalQuery=" + this.retrievalQuery + ", awaitIndexTimeout=" + this.awaitIndexTimeout;
+ return "Neo4jEmbeddingStore.Neo4jEmbeddingStoreBuilder(config=" + this.config + ", driver=" + this.driver + ", dimension=" + this.dimension + ", label=" + this.label + ", embeddingProperty=" + this.embeddingProperty + ", idProperty=" + this.idProperty + ", metadataPrefix=" + this.metadataPrefix + ", textProperty=" + this.textProperty + ", indexName=" + this.indexName + ", databaseName=" + this.databaseName + ", retrievalQuery=" + this.retrievalQuery + ", awaitIndexTimeout=" + this.awaitIndexTimeout;
}
}
@@ -68,20 +68,20 @@
catch (final Exception e) {
LanguageModelQueryRouter.log.warn("Failed to route query '{}'", (Object)query.text(), (Object)e);
return this.fallback(query, e);
}
}
private Collection<ContentRetriever> fallback(final Query query, final Exception e) {
- switch (this.fallbackStrategy.ordinal()) {
- case 0: {
+ switch (LanguageModelQueryRouter.LanguageModelQueryRouter$1.$SwitchMap$dev$langchain4j$rag$query$router$LanguageModelQueryRouter$FallbackStrategy[this.fallbackStrategy.ordinal()]) {
+ case 1: {
LanguageModelQueryRouter.log.debug("Fallback: query '{}' will not be routed", (Object)query.text());
return (Collection<ContentRetriever>)Collections.emptyList();
}
- case 1: {
+ case 2: {
LanguageModelQueryRouter.log.debug("Fallback: query '{}' will be routed to all available content retrievers", (Object)query.text());
return new ArrayList<ContentRetriever>(this.idToRetriever.values());
}
default: {
throw new RuntimeException(e);
}
}
@@ -30,10 +30,10 @@
public Document build() {
return new Document(this.vector, this.text, this.metadata);
}
@Override
public String toString() {
- return "Document.DocumentBuilder(vector=" + Arrays.toString(this.vector) + ", text=" + this.text + ", metadata=" + String.valueOf((Object)this.metadata);
+ return "Document.DocumentBuilder(vector=" + Arrays.toString(this.vector) + ", text=" + this.text + ", metadata=" + this.metadata;
}
}
@@ -8,50 +8,50 @@
import io.quarkus.bootstrap.logging.InitialConfigurator;
import io.quarkus.runtime.PreventFurtherStepsException;
import io.quarkus.dev.console.QuarkusConsole;
import io.quarkus.deployment.steps.ConfigBuildStep$validateConfigValues1665125174;
import io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294;
import io.quarkus.deployment.steps.SmallRyeGraphQLClientProcessor$initializeConfigMergerBean577927781;
import io.quarkus.deployment.steps.ConfigBuildStep$registerConfigClasses1377682816;
-import io.quarkus.deployment.steps.InitializationTaskProcessor$startApplicationInitializer180820092;
import io.quarkus.deployment.steps.SmallRyeStorkProcessor$initializeStork1271227497;
+import io.quarkus.deployment.steps.InitializationTaskProcessor$startApplicationInitializer180820092;
import io.quarkus.deployment.steps.SyntheticBeansProcessor$initRuntime975230615;
import io.quarkus.deployment.steps.VertxProcessor$build609260703;
import io.quarkus.deployment.steps.SmallRyeGraphQLClientProcessor$initializeClientSupport723777359;
import io.quarkus.deployment.steps.ShutdownListenerBuildStep$setupShutdown1209845420;
import io.quarkus.deployment.steps.LoggingResourceProcessor$setupLoggingRuntimeInit1899082837;
-import io.quarkus.deployment.steps.BannerProcessor$recordBanner921118789;
-import io.quarkus.deployment.steps.SmallRyeGraphQLClientProcessor$setGlobalVertxInstance743058521;
import io.quarkus.deployment.steps.ArcProcessor$setupExecutor1831044820;
+import io.quarkus.deployment.steps.SmallRyeGraphQLClientProcessor$setGlobalVertxInstance743058521;
import io.quarkus.deployment.steps.SmallRyeContextPropagationProcessor$build1300494616;
import io.quarkus.deployment.steps.VertxCoreProcessor$build1776260624;
import io.quarkus.deployment.steps.MutinyProcessor$runtimeInit866247078;
import io.quarkus.deployment.steps.ThreadPoolSetup$createExecutor2117483448;
+import io.quarkus.deployment.steps.BannerProcessor$recordBanner921118789;
import io.quarkus.deployment.steps.VertxCoreProcessor$createVertxContextHandlers784870001;
-import io.quarkus.deployment.steps.VertxCoreProcessor$createVertxThreadFactory1036986175;
-import io.quarkus.deployment.steps.ConfigGenerationBuildStep$checkForBuildTimeConfigChange1532146938;
import io.quarkus.deployment.steps.VertxCoreProcessor$eventLoopCount1012482323;
-import io.quarkus.deployment.steps.RuntimeConfigSetup;
-import io.quarkus.deployment.steps.BootstrapConfigSetup;
+import io.quarkus.deployment.steps.ConfigGenerationBuildStep$checkForBuildTimeConfigChange1532146938;
+import io.quarkus.deployment.steps.VertxCoreProcessor$createVertxThreadFactory1036986175;
import io.quarkus.deployment.steps.NettyProcessor$eagerlyInitClass1832577802;
import io.quarkus.deployment.steps.DeprecatedRuntimePropertiesBuildStep$reportDeprecatedProperties2011807353;
+import io.quarkus.deployment.steps.RuntimeConfigSetup;
+import io.quarkus.deployment.steps.BootstrapConfigSetup;
import io.quarkus.runtime.configuration.ConfigUtils;
import io.quarkus.runtime.NativeImageRuntimePropertiesRecorder;
import io.quarkus.dev.appstate.ApplicationStateNotification;
import io.quarkus.deployment.steps.SmallRyeGraphQLClientProcessor$setTypesafeApiClasses279313394;
import io.quarkus.deployment.steps.ArcProcessor$generateResources844392269;
import io.quarkus.deployment.steps.SyntheticBeansProcessor$initStatic1190120725;
import io.quarkus.deployment.steps.JacksonProcessor$jacksonSupport1959914842;
import io.quarkus.deployment.steps.BlockingOperationControlBuildStep$blockingOP558072755;
-import io.quarkus.deployment.steps.VertxCoreProcessor$ioThreadDetector1463825589;
import io.quarkus.deployment.steps.SmallRyeContextPropagationProcessor$buildStatic677493008;
-import io.quarkus.deployment.steps.MutinyProcessor$buildTimeInit521613965;
import io.quarkus.deployment.steps.VertxProcessor$currentContextFactory1330623448;
-import io.quarkus.deployment.steps.NativeImageConfigBuildStep$build282698227;
+import io.quarkus.deployment.steps.VertxCoreProcessor$ioThreadDetector1463825589;
import io.quarkus.deployment.steps.LoggingResourceProcessor$setupLoggingStaticInit2062061316;
+import io.quarkus.deployment.steps.NativeImageConfigBuildStep$build282698227;
+import io.quarkus.deployment.steps.MutinyProcessor$buildTimeInit521613965;
import io.quarkus.runtime.StartupTask;
import io.quarkus.runtime.generated.Config;
import io.quarkus.bootstrap.runner.Timing;
import io.quarkus.runtime.util.StepTiming;
import io.quarkus.runtime.configuration.ProfileManager;
import io.quarkus.runtime.LaunchMode;
import io.quarkus.runtime.naming.DisabledInitialContextManager;
@@ -67,37 +67,37 @@
public ApplicationImpl() {
super(false);
}
static {
DisabledInitialContextManager.register();
System.setProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager");
+ System.setProperty("io.netty.machineId", "5f:8c:d3:95:5f:21:5f:88");
System.setProperty("java.util.concurrent.ForkJoinPool.common.threadFactory", "io.quarkus.bootstrap.forkjoin.QuarkusForkJoinWorkerThreadFactory");
- System.setProperty("io.netty.machineId", "86:3f:d6:c1:49:3f:15:eb");
System.setProperty("io.netty.allocator.maxOrder", "3");
System.setProperty("logging.initial-configurator.min-level", "500");
ProfileManager.setLaunchMode(LaunchMode.NORMAL);
StepTiming.configureEnabled();
Timing.staticInitStarted(false);
Config.ensureInitialized();
ApplicationImpl.LOG = Logger.getLogger("io.quarkus.application");
final StartupContext startupContext = ApplicationImpl.STARTUP_CONTEXT = new StartupContext();
try {
StepTiming.configureStart();
- ((StartupTask)new LoggingResourceProcessor$setupLoggingStaticInit2062061316()).deploy(startupContext);
+ ((StartupTask)new MutinyProcessor$buildTimeInit521613965()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
((StartupTask)new NativeImageConfigBuildStep$build282698227()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
- ((StartupTask)new VertxProcessor$currentContextFactory1330623448()).deploy(startupContext);
+ ((StartupTask)new LoggingResourceProcessor$setupLoggingStaticInit2062061316()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
- ((StartupTask)new MutinyProcessor$buildTimeInit521613965()).deploy(startupContext);
+ ((StartupTask)new VertxCoreProcessor$ioThreadDetector1463825589()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
- ((StartupTask)new SmallRyeContextPropagationProcessor$buildStatic677493008()).deploy(startupContext);
+ ((StartupTask)new VertxProcessor$currentContextFactory1330623448()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
- ((StartupTask)new VertxCoreProcessor$ioThreadDetector1463825589()).deploy(startupContext);
+ ((StartupTask)new SmallRyeContextPropagationProcessor$buildStatic677493008()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
((StartupTask)new BlockingOperationControlBuildStep$blockingOP558072755()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
((StartupTask)new JacksonProcessor$jacksonSupport1959914842()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
((StartupTask)new SyntheticBeansProcessor$initStatic1190120725()).deploy(startupContext);
StepTiming.printStepTime(startupContext);
@@ -111,70 +111,70 @@
startupContext.close();
throw (Throwable)new RuntimeException("Failed to start quarkus", cause);
}
}
protected final void doStart(final String[] commandLineArguments) {
System.setProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager");
+ System.setProperty("io.netty.machineId", "5f:8c:d3:95:5f:21:5f:88");
System.setProperty("java.util.concurrent.ForkJoinPool.common.threadFactory", "io.quarkus.bootstrap.forkjoin.QuarkusForkJoinWorkerThreadFactory");
- System.setProperty("io.netty.machineId", "86:3f:d6:c1:49:3f:15:eb");
System.setProperty("io.netty.allocator.maxOrder", "3");
System.setProperty("logging.initial-configurator.min-level", "500");
NativeImageRuntimePropertiesRecorder.doRuntime();
Timing.mainStarted();
final StartupContext startup_CONTEXT = ApplicationImpl.STARTUP_CONTEXT;
startup_CONTEXT.setCommandLineArguments(commandLineArguments);
StepTiming.configureEnabled();
final List profiles = ConfigUtils.getProfiles();
try {
StepTiming.configureStart();
- ((StartupTask)new DeprecatedRuntimePropertiesBuildStep$reportDeprecatedProperties2011807353()).deploy(startup_CONTEXT);
- StepTiming.printStepTime(startup_CONTEXT);
- ((StartupTask)new NettyProcessor$eagerlyInitClass1832577802()).deploy(startup_CONTEXT);
- StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new BootstrapConfigSetup()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new RuntimeConfigSetup()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
- ((StartupTask)new VertxCoreProcessor$eventLoopCount1012482323()).deploy(startup_CONTEXT);
+ ((StartupTask)new DeprecatedRuntimePropertiesBuildStep$reportDeprecatedProperties2011807353()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
- ((StartupTask)new ConfigGenerationBuildStep$checkForBuildTimeConfigChange1532146938()).deploy(startup_CONTEXT);
+ ((StartupTask)new NettyProcessor$eagerlyInitClass1832577802()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new VertxCoreProcessor$createVertxThreadFactory1036986175()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
+ ((StartupTask)new ConfigGenerationBuildStep$checkForBuildTimeConfigChange1532146938()).deploy(startup_CONTEXT);
+ StepTiming.printStepTime(startup_CONTEXT);
+ ((StartupTask)new VertxCoreProcessor$eventLoopCount1012482323()).deploy(startup_CONTEXT);
+ StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new VertxCoreProcessor$createVertxContextHandlers784870001()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
+ ((StartupTask)new BannerProcessor$recordBanner921118789()).deploy(startup_CONTEXT);
+ StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new ThreadPoolSetup$createExecutor2117483448()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new MutinyProcessor$runtimeInit866247078()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new VertxCoreProcessor$build1776260624()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new SmallRyeContextPropagationProcessor$build1300494616()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
- ((StartupTask)new ArcProcessor$setupExecutor1831044820()).deploy(startup_CONTEXT);
- StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new SmallRyeGraphQLClientProcessor$setGlobalVertxInstance743058521()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
- ((StartupTask)new BannerProcessor$recordBanner921118789()).deploy(startup_CONTEXT);
+ ((StartupTask)new ArcProcessor$setupExecutor1831044820()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new LoggingResourceProcessor$setupLoggingRuntimeInit1899082837()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new ShutdownListenerBuildStep$setupShutdown1209845420()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new SmallRyeGraphQLClientProcessor$initializeClientSupport723777359()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new VertxProcessor$build609260703()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new SyntheticBeansProcessor$initRuntime975230615()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
- ((StartupTask)new SmallRyeStorkProcessor$initializeStork1271227497()).deploy(startup_CONTEXT);
- StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new InitializationTaskProcessor$startApplicationInitializer180820092()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
+ ((StartupTask)new SmallRyeStorkProcessor$initializeStork1271227497()).deploy(startup_CONTEXT);
+ StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new ConfigBuildStep$registerConfigClasses1377682816()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new SmallRyeGraphQLClientProcessor$initializeConfigMergerBean577927781()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new LifecycleEventsBuildStep$startupEvent1144526294()).deploy(startup_CONTEXT);
StepTiming.printStepTime(startup_CONTEXT);
((StartupTask)new ConfigBuildStep$validateConfigValues1665125174()).deploy(startup_CONTEXT);
@@ -13,14 +13,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("SmallRyeGraphQLClientProcessor.initializeClientSupport");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey48", (Object)new SmallRyeGraphQLClientRecorder().clientSupport((Map)new HashMap(), (List)new ArrayList()));
+ startupContext.putValue("proxykey49", (Object)new SmallRyeGraphQLClientRecorder().clientSupport((Map)new HashMap(), (List)new ArrayList()));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -25,14 +25,14 @@
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final LoggingSetupRecorder loggingSetupRecorder = new LoggingSetupRecorder(new RuntimeValue((Object)Config.ConsoleRuntimeConfig));
final LogConfig logConfig = Config.LogConfig;
final LogBuildTimeConfig logBuildTimeConfig = Config.LogBuildTimeConfig;
final DiscoveredLogComponents discoveredLogComponents = new DiscoveredLogComponents();
discoveredLogComponents.setNameToFilterClass((Map)Collections.emptyMap());
- startupContext.putValue("proxykey42", (Object)loggingSetupRecorder.initializeLogging(logConfig, logBuildTimeConfig, discoveredLogComponents, (Map)new LinkedHashMap(), false, (RuntimeValue)null, (RuntimeValue)null, (List)new ArrayList(), (List)new ArrayList(), (List)new ArrayList(), (List)new ArrayList(), (List)new ArrayList(), (RuntimeValue)startupContext.getValue("proxykey39"), LaunchMode.valueOf("NORMAL"), true));
+ startupContext.putValue("proxykey44", (Object)loggingSetupRecorder.initializeLogging(logConfig, logBuildTimeConfig, discoveredLogComponents, (Map)new LinkedHashMap(), false, (RuntimeValue)null, (RuntimeValue)null, (List)new ArrayList(), (List)new ArrayList(), (List)new ArrayList(), (List)new ArrayList(), (List)new ArrayList(), (RuntimeValue)startupContext.getValue("proxykey30"), LaunchMode.valueOf("NORMAL"), true));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -10,14 +10,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("VertxCoreProcessor.eventLoopCount");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey20", (Object)new VertxCoreRecorder().calculateEventLoopThreads(Config.VertxConfiguration));
+ startupContext.putValue("proxykey25", (Object)new VertxCoreRecorder().calculateEventLoopThreads(Config.VertxConfiguration));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -14,14 +14,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("ThreadPoolSetup.createExecutor");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey28", (Object)new ExecutorRecorder(Config.ThreadPoolConfig).setupRunTime((ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), LaunchMode.valueOf("NORMAL"), (ThreadFactory)startupContext.getValue("proxykey24"), (ContextHandler)startupContext.getValue("proxykey14")));
+ startupContext.putValue("proxykey32", (Object)new ExecutorRecorder(Config.ThreadPoolConfig).setupRunTime((ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), LaunchMode.valueOf("NORMAL"), (ThreadFactory)startupContext.getValue("proxykey19"), (ContextHandler)startupContext.getValue("proxykey26")));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -10,14 +10,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("SmallRyeGraphQLClientProcessor.setGlobalVertxInstance");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- new SmallRyeGraphQLClientRecorder().setGlobalVertxInstance((Supplier)startupContext.getValue("proxykey31"));
+ new SmallRyeGraphQLClientRecorder().setGlobalVertxInstance((Supplier)startupContext.getValue("proxykey35"));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -14,29 +14,29 @@
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("SyntheticBeansProcessor.initRuntime");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final ArcRecorder arcRecorder = new ArcRecorder();
- startupContext.putValue("proxykey54", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("io.quarkus.runtime.StartupContext.raw-command-line-args")));
- startupContext.putValue("proxykey55", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey31")));
- startupContext.putValue("proxykey56", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey33")));
- startupContext.putValue("proxykey57", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey32")));
- startupContext.putValue("proxykey58", (Object)arcRecorder.createFunction(startupContext.getValue("proxykey28")));
- startupContext.putValue("proxykey59", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey36")));
- startupContext.putValue("proxykey60", (Object)arcRecorder.createFunction((RuntimeValue)startupContext.getValue("proxykey48")));
+ startupContext.putValue("proxykey52", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("io.quarkus.runtime.StartupContext.raw-command-line-args")));
+ startupContext.putValue("proxykey56", (Object)arcRecorder.createFunction(startupContext.getValue("proxykey32")));
+ startupContext.putValue("proxykey57", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey35")));
+ startupContext.putValue("proxykey58", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey39")));
+ startupContext.putValue("proxykey59", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey37")));
+ startupContext.putValue("proxykey60", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey38")));
+ startupContext.putValue("proxykey61", (Object)arcRecorder.createFunction((RuntimeValue)startupContext.getValue("proxykey49")));
final HashMap hashMap = new HashMap();
- ((Map)hashMap).put("io_netty_channel_EventLoopGroup_06abb04b8d3bf6733527a55687d18606021e7fd3", startupContext.getValue("proxykey56"));
+ ((Map)hashMap).put("io_netty_channel_EventLoopGroup_06abb04b8d3bf6733527a55687d18606021e7fd3", startupContext.getValue("proxykey58"));
((Map)hashMap).put("io_smallrye_context_SmallRyeManagedExecutor_c8a6ee336643116a9fee059a268fd28fbb8024a8", startupContext.getValue("proxykey59"));
- ((Map)hashMap).put("io_netty_channel_EventLoopGroup_67c518110073b27accf75cf9340a9d4b218043d8", startupContext.getValue("proxykey57"));
- ((Map)hashMap).put("java_lang_Object_b49eef409da9bd88621c260e1a58c4aaaa2f771a", startupContext.getValue("proxykey54"));
- ((Map)hashMap).put("java_util_concurrent_ScheduledExecutorService_1b99e1c346b34659814e428c17b35c11784b2a51", startupContext.getValue("proxykey58"));
- ((Map)hashMap).put("io_quarkus_smallrye_graphql_client_runtime_GraphQLClientSupport_6a26c0efdfe9b8611bbbaf0adc4e7e5b64d87c8c", startupContext.getValue("proxykey60"));
- ((Map)hashMap).put("io_vertx_core_Vertx_74affa450965de1cd6a7217ce7ce0dbad2c16185", startupContext.getValue("proxykey55"));
+ ((Map)hashMap).put("io_netty_channel_EventLoopGroup_67c518110073b27accf75cf9340a9d4b218043d8", startupContext.getValue("proxykey60"));
+ ((Map)hashMap).put("java_lang_Object_b49eef409da9bd88621c260e1a58c4aaaa2f771a", startupContext.getValue("proxykey52"));
+ ((Map)hashMap).put("java_util_concurrent_ScheduledExecutorService_1b99e1c346b34659814e428c17b35c11784b2a51", startupContext.getValue("proxykey56"));
+ ((Map)hashMap).put("io_quarkus_smallrye_graphql_client_runtime_GraphQLClientSupport_6a26c0efdfe9b8611bbbaf0adc4e7e5b64d87c8c", startupContext.getValue("proxykey61"));
+ ((Map)hashMap).put("io_vertx_core_Vertx_74affa450965de1cd6a7217ce7ce0dbad2c16185", startupContext.getValue("proxykey57"));
arcRecorder.initRuntimeSupplierBeans((Map)hashMap);
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -12,14 +12,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("MutinyProcessor.runtimeInit");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- new MutinyInfrastructure().configureMutinyInfrastructure((ScheduledExecutorService)startupContext.getValue("proxykey28"), (ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (ContextHandler)startupContext.getValue("proxykey14"));
+ new MutinyInfrastructure().configureMutinyInfrastructure((ScheduledExecutorService)startupContext.getValue("proxykey32"), (ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (ContextHandler)startupContext.getValue("proxykey26"));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -13,17 +13,17 @@
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("SyntheticBeansProcessor.initStatic");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final ArcRecorder arcRecorder = new ArcRecorder();
- startupContext.putValue("proxykey52", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey44")));
+ startupContext.putValue("proxykey53", (Object)arcRecorder.createFunction((Supplier)startupContext.getValue("proxykey46")));
final HashMap hashMap = new HashMap();
- ((Map)hashMap).put("io_quarkus_jackson_runtime_JacksonSupport_56c398dc3fd5ab91aef6017dac718758e82b45da", startupContext.getValue("proxykey52"));
+ ((Map)hashMap).put("io_quarkus_jackson_runtime_JacksonSupport_56c398dc3fd5ab91aef6017dac718758e82b45da", startupContext.getValue("proxykey53"));
arcRecorder.initStaticSupplierBeans((Map)hashMap);
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -1,41 +1,41 @@
package io.quarkus.arc.setup;
import io.quarkus.arc.log.LoggerName_ArcAnnotationLiteral;
import java.util.OptionalLong;
import java.util.OptionalDouble;
-import java.util.OptionalInt;
import jakarta.enterprise.inject.Default$Literal;
+import java.util.OptionalInt;
import io.quarkus.arc.impl.TypeVariableImpl;
import org.eclipse.microprofile.config.inject.ConfigProperty_ArcAnnotationLiteral;
import io.quarkus.arc.impl.ParameterizedTypeImpl;
import java.lang.reflect.Type;
import java.io.Serializable;
import io.quarkus.arc.impl.RemovedBeanImpl;
import io.quarkus.arc.InjectableBean$Kind;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executor;
import io.quarkus.vertx.runtime.VertxProducer_Observer_undeployVerticles_cd61570c529f4f70bf1e54f20403d3c90e4bbc75;
import io.github.chains_project.maven_lockfile.GithubAction_Multiplexer_Observer_run_10e4fab489c5baa897ea9b4d6b0a2302f36c3340_2becc8ab276cce758a8c2c4203956187bda3c641;
-import io.smallrye.context.SmallRyeManagedExecutor_37cd00d79f6817c9ac6f4041646d6c5b8c1d4c69_Synthetic_Bean;
import io.netty.channel.EventLoopGroup_6b76fd1b9374ca425834afc8e18924f04ca49d32_Synthetic_Bean;
+import io.smallrye.context.SmallRyeManagedExecutor_37cd00d79f6817c9ac6f4041646d6c5b8c1d4c69_Synthetic_Bean;
import io.netty.channel.EventLoopGroup_92f1c3a38cd361eb7ad27a9fe6324edba5748ae1_Synthetic_Bean;
import io.quarkus.arc.generator.Object_73b2414a4b90d42d8cda9cf468132840fb4e4396_Synthetic_Bean;
-import io.quarkiverse.githubaction.runtime.UtilsProducer_ProducerMethod_yamlObjectMapper_53de47d02dbef7457e6bf5612f9b001baa13052c_Bean;
import io.quarkus.smallrye.context.runtime.SmallRyeContextPropagationProvider_ProducerMethod_getAllThreadContext_0976a7142503aa8fe2c89bb7ef3f2613a1f1e921_Bean;
+import io.quarkiverse.githubaction.runtime.UtilsProducer_ProducerMethod_yamlObjectMapper_53de47d02dbef7457e6bf5612f9b001baa13052c_Bean;
import io.quarkus.vertx.runtime.VertxProducer_ProducerMethod_eventbus_92174a3813c41f170602a2a19998deea8f7eeb18_Bean;
import io.quarkus.vertx.runtime.VertxProducer_ProducerMethod_mutinyEventBus_65fcf7e1f3e3ede9a22f691ca70366b9564c7aad_Bean;
-import io.github.chains_project.maven_lockfile.GithubAction_Multiplexer_Bean;
import io.quarkus.jackson.customizer.RegisterSerializersAndDeserializersCustomizer_Bean;
-import io.quarkus.arc.impl.DefaultAsyncObserverExceptionHandler_Bean;
-import io.quarkus.smallrye.graphql.client.runtime.GraphQLClientConfigurationMergerBean_Bean;
import io.quarkiverse.githubaction.runtime.ActionMain_Bean;
import io.smallrye.stork.impl.RoundRobinLoadBalancerProviderLoader_Bean;
+import io.quarkus.smallrye.graphql.client.runtime.GraphQLClientConfigurationMergerBean_Bean;
+import io.github.chains_project.maven_lockfile.GithubAction_Multiplexer_Bean;
+import io.quarkus.arc.impl.DefaultAsyncObserverExceptionHandler_Bean;
import io.quarkiverse.githubaction.runtime.InputsInitializerImpl_Bean;
import io.quarkus.vertx.runtime.VertxProducer_ProducerMethod_mutiny_d5befbd244a8a884fd08fff108d174c7e738c2d3_Bean;
import io.quarkus.jackson.runtime.ObjectMapperProducer_ProducerMethod_objectMapper_d2925203309586fa5cde23a83b2025591c2d3832_Bean;
import io.smallrye.config.inject.ConfigProducer_ProducerMethod_produceStringConfigProperty_4a56f5f833b805b4318038e33b0d81b8dbf5dbe2_Bean;
import io.quarkus.vertx.runtime.VertxProducer_Bean;
import io.quarkus.jackson.runtime.JacksonBuildTimeConfig_53f5cad458c5a3db7e7554df6f161d89ff446d45_Synthetic_Bean;
import io.quarkiverse.githubaction.runtime.PayloadTypeResolverImpl_Bean;
@@ -246,31 +246,31 @@
map.put("be7135eb29802a4f22a9b452733e8b234873330a", new PayloadTypeResolverImpl_Bean());
map.put("53f5cad458c5a3db7e7554df6f161d89ff446d45", new JacksonBuildTimeConfig_53f5cad458c5a3db7e7554df6f161d89ff446d45_Synthetic_Bean());
map.put("be9dbbe5967118a9b69a61bdedd364bf4d3b60c2", new VertxProducer_Bean());
map.put("0fe08552a178a543bf6b34647226cf6de5aa5826", new ConfigProducer_ProducerMethod_produceStringConfigProperty_4a56f5f833b805b4318038e33b0d81b8dbf5dbe2_Bean((Supplier)map.get("41d660d5c5ecdf874f4621bc533ee5c940ee765a")));
map.put("f520ee895f2ff3b2766548ba82826eb8a35a9f59", new ObjectMapperProducer_ProducerMethod_objectMapper_d2925203309586fa5cde23a83b2025591c2d3832_Bean((Supplier)map.get("7773acce6b5871f24482efc4a9bb22cad8198392"), (Supplier)map.get("53f5cad458c5a3db7e7554df6f161d89ff446d45"), (Supplier)map.get("7d1a8ed34eefa156e547f068424005a5a18f1ed2")));
map.put("1bc718403d18eda0dff05491134f98e4d7416dd8", new VertxProducer_ProducerMethod_mutiny_d5befbd244a8a884fd08fff108d174c7e738c2d3_Bean((Supplier)map.get("be9dbbe5967118a9b69a61bdedd364bf4d3b60c2"), (Supplier)map.get("2d6aec61168fd09bfddb12d2d84a7c6aacdd2759")));
map.put("fe7d2ad814bc445ad6337ef8bff956810e6a8fcb", new InputsInitializerImpl_Bean((Supplier)map.get("f520ee895f2ff3b2766548ba82826eb8a35a9f59")));
+ map.put("be6955ad27defd149de26205bd8af788eaea5f95", new DefaultAsyncObserverExceptionHandler_Bean());
+ map.put("fdb7af6b2ee872755a3a6027fbbc739ae9aab9db", new GithubAction_Multiplexer_Bean((Supplier)map.get("0fe08552a178a543bf6b34647226cf6de5aa5826")));
+ map.put("44fb4f269fadde186eefeca4374013de84070ec5", new GraphQLClientConfigurationMergerBean_Bean((Supplier)map.get("1d3a9a20dc3e0726e08bbd4acd1d71aa0bd47777"), (Supplier)map.get("5a4eabe8a985fc7e5080c5e6925e884e83be6ba4")));
map.put("b9c4ce67f6f3da1d906f67e799cec91cfe8b3603", new RoundRobinLoadBalancerProviderLoader_Bean());
map.put("915372d5939ddf65c87a35c4d56489a3c9c350b9", new ActionMain_Bean((Supplier)map.get("3cc277ee33de9ef18dc34921466609bbe1a68dca"), (Supplier)map.get("40e29e9c711d44e82fe5fa91b595b56dbc8a04d5"), (Supplier)map.get("319f6786720ce8ba2aefc94673e8f70f090acd47"), (Supplier)map.get("fe7d2ad814bc445ad6337ef8bff956810e6a8fcb"), (Supplier)map.get("f520ee895f2ff3b2766548ba82826eb8a35a9f59"), (Supplier)map.get("be7135eb29802a4f22a9b452733e8b234873330a")));
- map.put("44fb4f269fadde186eefeca4374013de84070ec5", new GraphQLClientConfigurationMergerBean_Bean((Supplier)map.get("1d3a9a20dc3e0726e08bbd4acd1d71aa0bd47777"), (Supplier)map.get("5a4eabe8a985fc7e5080c5e6925e884e83be6ba4")));
- map.put("be6955ad27defd149de26205bd8af788eaea5f95", new DefaultAsyncObserverExceptionHandler_Bean());
map.put("8bee2b62fd4fca1e99a5cb4d4d87e32086fe3328", new RegisterSerializersAndDeserializersCustomizer_Bean());
- map.put("fdb7af6b2ee872755a3a6027fbbc739ae9aab9db", new GithubAction_Multiplexer_Bean((Supplier)map.get("0fe08552a178a543bf6b34647226cf6de5aa5826")));
map.put("7953502a278fa6c39557a67efcc2aed1bc44ead6", new VertxProducer_ProducerMethod_mutinyEventBus_65fcf7e1f3e3ede9a22f691ca70366b9564c7aad_Bean((Supplier)map.get("be9dbbe5967118a9b69a61bdedd364bf4d3b60c2"), (Supplier)map.get("1bc718403d18eda0dff05491134f98e4d7416dd8")));
map.put("2906c741825f2ca74f751a675b2ee26219a201a9", new VertxProducer_ProducerMethod_eventbus_92174a3813c41f170602a2a19998deea8f7eeb18_Bean((Supplier)map.get("be9dbbe5967118a9b69a61bdedd364bf4d3b60c2"), (Supplier)map.get("2d6aec61168fd09bfddb12d2d84a7c6aacdd2759")));
- map.put("f61743cf79a79aa30bcf0a67a180469dad3260ab", new SmallRyeContextPropagationProvider_ProducerMethod_getAllThreadContext_0976a7142503aa8fe2c89bb7ef3f2613a1f1e921_Bean((Supplier)map.get("1418637606c064580f76ee86000a56a9cd740ad5")));
map.put("5ca2e6a890d52d320cd1a0d0bd132e624e61ab36", new UtilsProducer_ProducerMethod_yamlObjectMapper_53de47d02dbef7457e6bf5612f9b001baa13052c_Bean((Supplier)map.get("d689ffeab2e646c82d5c51af48eed97fa1d6c9f4")));
+ map.put("f61743cf79a79aa30bcf0a67a180469dad3260ab", new SmallRyeContextPropagationProvider_ProducerMethod_getAllThreadContext_0976a7142503aa8fe2c89bb7ef3f2613a1f1e921_Bean((Supplier)map.get("1418637606c064580f76ee86000a56a9cd740ad5")));
map.put("73b2414a4b90d42d8cda9cf468132840fb4e4396", new Object_73b2414a4b90d42d8cda9cf468132840fb4e4396_Synthetic_Bean());
map.put("92f1c3a38cd361eb7ad27a9fe6324edba5748ae1", new EventLoopGroup_92f1c3a38cd361eb7ad27a9fe6324edba5748ae1_Synthetic_Bean());
}
private void addBeans2(final Map map) {
- map.put("6b76fd1b9374ca425834afc8e18924f04ca49d32", new EventLoopGroup_6b76fd1b9374ca425834afc8e18924f04ca49d32_Synthetic_Bean());
map.put("37cd00d79f6817c9ac6f4041646d6c5b8c1d4c69", new SmallRyeManagedExecutor_37cd00d79f6817c9ac6f4041646d6c5b8c1d4c69_Synthetic_Bean());
+ map.put("6b76fd1b9374ca425834afc8e18924f04ca49d32", new EventLoopGroup_6b76fd1b9374ca425834afc8e18924f04ca49d32_Synthetic_Bean());
}
private void addObservers1(final Map map, final List list) {
list.add(new GithubAction_Multiplexer_Observer_run_10e4fab489c5baa897ea9b4d6b0a2302f36c3340_2becc8ab276cce758a8c2c4203956187bda3c641((Supplier)map.get("fdb7af6b2ee872755a3a6027fbbc739ae9aab9db")));
list.add(new VertxProducer_Observer_undeployVerticles_cd61570c529f4f70bf1e54f20403d3c90e4bbc75((Supplier)map.get("be9dbbe5967118a9b69a61bdedd364bf4d3b60c2")));
}
@@ -791,66 +791,66 @@
}
catch (final Throwable t) {
ComponentsProvider.unableToLoadRemovedBeanType("io.quarkus.arc.runtime.LoggerProducer", t);
}
list.add(new RemovedBeanImpl((InjectableBean$Kind)null, (String)null, (Set)set, (Set)null));
final HashSet<Object> set2 = new HashSet<Object>();
try {
- final Object value2 = map.get("java.lang.AutoCloseable");
+ final Object value2 = map.get("java.util.OptionalInt");
Object o2;
if (value2 != null) {
o2 = value2;
}
else {
- map.put("java.lang.AutoCloseable", AutoCloseable.class);
- o2 = AutoCloseable.class;
+ map.put("java.util.OptionalInt", OptionalInt.class);
+ o2 = OptionalInt.class;
}
((Set<Object>)set2).add(o2);
}
catch (final Throwable t2) {
- ComponentsProvider.unableToLoadRemovedBeanType("java.lang.AutoCloseable", t2);
+ ComponentsProvider.unableToLoadRemovedBeanType("java.util.OptionalInt", t2);
}
+ final HashSet set3 = new HashSet();
+ ((Set)set3).add(new ConfigProperty_ArcAnnotationLiteral("", "org.eclipse.microprofile.config.configproperty.unconfigureddvalue"));
+ list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceOptionalIntConfigProperty()", (Set)set2, (Set)set3));
+ final HashSet<Object> set4 = new HashSet<Object>();
try {
- final Object value3 = map.get("io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient");
+ final Object value3 = map.get("java.lang.AutoCloseable");
Object o3;
if (value3 != null) {
o3 = value3;
}
else {
- final Class<?> forName2 = Class.forName("io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient", false, contextClassLoader);
- map.put("io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient", forName2);
- o3 = forName2;
+ map.put("java.lang.AutoCloseable", AutoCloseable.class);
+ o3 = AutoCloseable.class;
}
- ((Set<Object>)set2).add(o3);
+ ((Set<Object>)set4).add(o3);
}
catch (final Throwable t3) {
- ComponentsProvider.unableToLoadRemovedBeanType("io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient", t3);
+ ComponentsProvider.unableToLoadRemovedBeanType("java.lang.AutoCloseable", t3);
}
- final HashSet set3 = new HashSet();
- ((Set)set3).add(Default$Literal.INSTANCE);
- list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.graphql.client.impl.dynamic.cdi.NamedDynamicClients#getClient()", (Set)set2, (Set)set3));
- final HashSet<Object> set4 = new HashSet<Object>();
try {
- final Object value4 = map.get("java.util.OptionalInt");
+ final Object value4 = map.get("io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient");
Object o4;
if (value4 != null) {
o4 = value4;
}
else {
- map.put("java.util.OptionalInt", OptionalInt.class);
- o4 = OptionalInt.class;
+ final Class<?> forName2 = Class.forName("io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient", false, contextClassLoader);
+ map.put("io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient", forName2);
+ o4 = forName2;
}
((Set<Object>)set4).add(o4);
}
catch (final Throwable t4) {
- ComponentsProvider.unableToLoadRemovedBeanType("java.util.OptionalInt", t4);
+ ComponentsProvider.unableToLoadRemovedBeanType("io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient", t4);
}
final HashSet set5 = new HashSet();
- ((Set)set5).add(new ConfigProperty_ArcAnnotationLiteral("", "org.eclipse.microprofile.config.configproperty.unconfigureddvalue"));
- list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceOptionalIntConfigProperty()", (Set)set4, (Set)set5));
+ ((Set)set5).add(Default$Literal.INSTANCE);
+ list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.graphql.client.impl.dynamic.cdi.NamedDynamicClients#getClient()", (Set)set4, (Set)set5));
final HashSet<Object> set6 = new HashSet<Object>();
try {
final Object value5 = map.get("io.smallrye.graphql.client.impl.dynamic.cdi.NamedDynamicClients");
Object o5;
if (value5 != null) {
o5 = value5;
}
@@ -1569,63 +1569,75 @@
}
catch (final Throwable t6) {
ComponentsProvider.unableToLoadRemovedBeanType("java.lang.Character", t6);
}
final HashSet<ConfigProperty_ArcAnnotationLiteral> set6 = new HashSet<ConfigProperty_ArcAnnotationLiteral>();
((Set<ConfigProperty_ArcAnnotationLiteral>)set6).add(configProperty_ArcAnnotationLiteral);
list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceCharacterConfigProperty()", (Set)set5, (Set)set6));
- final HashSet<Object> set7 = new HashSet<Object>();
+ final HashSet set7 = new HashSet();
try {
final Object value8 = map.get("java.io.Serializable");
Object o7;
if (value8 != null) {
o7 = value8;
}
else {
map.put("java.io.Serializable", Serializable.class);
o7 = Serializable.class;
}
- ((Set<Object>)set7).add(o7);
+ ((Set)set7).add(o7);
}
catch (final Throwable t7) {
ComponentsProvider.unableToLoadRemovedBeanType("java.io.Serializable", t7);
}
try {
- final Object value9 = map.get("org.jboss.logging.BasicLogger");
+ final Object value9 = map.get("java.lang.Boolean");
Object o8;
if (value9 != null) {
o8 = value9;
}
else {
- final Class<?> forName3 = Class.forName("org.jboss.logging.BasicLogger", false, contextClassLoader);
- map.put("org.jboss.logging.BasicLogger", forName3);
- o8 = forName3;
+ map.put("java.lang.Boolean", Boolean.class);
+ o8 = Boolean.class;
}
- ((Set<Object>)set7).add(o8);
+ ((Set)set7).add(o8);
}
catch (final Throwable t8) {
- ComponentsProvider.unableToLoadRemovedBeanType("org.jboss.logging.BasicLogger", t8);
+ ComponentsProvider.unableToLoadRemovedBeanType("java.lang.Boolean", t8);
}
try {
- final Object value10 = map.get("org.jboss.logging.Logger");
+ final Object value10 = map.get("java.lang.Comparable<java.lang.Boolean>");
Object o9;
if (value10 != null) {
o9 = value10;
}
else {
- final Class<?> forName4 = Class.forName("org.jboss.logging.Logger", false, contextClassLoader);
- map.put("org.jboss.logging.Logger", forName4);
- o9 = forName4;
+ final Type[] array2 = { null };
+ final Type value11 = map.get("java.lang.Boolean");
+ Type type2;
+ if (value11 != null) {
+ type2 = value11;
+ }
+ else {
+ map.put("java.lang.Boolean", Boolean.class);
+ type2 = Boolean.class;
+ }
+ array2[0] = type2;
+ final ParameterizedTypeImpl parameterizedTypeImpl2 = new ParameterizedTypeImpl((Type)map.get("java.lang.Comparable"), array2);
+ map.put("java.lang.Comparable<java.lang.Boolean>", parameterizedTypeImpl2);
+ o9 = parameterizedTypeImpl2;
}
- ((Set<Object>)set7).add(o9);
+ ((Set)set7).add(o9);
}
catch (final Throwable t9) {
- ComponentsProvider.unableToLoadRemovedBeanType("org.jboss.logging.Logger", t9);
+ ComponentsProvider.unableToLoadRemovedBeanType("java.lang.Comparable<java.lang.Boolean>", t9);
}
- list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.quarkus.arc.runtime.LoggerProducer#getSimpleLogger()", (Set)set7, (Set)null));
+ final HashSet<ConfigProperty_ArcAnnotationLiteral> set8 = new HashSet<ConfigProperty_ArcAnnotationLiteral>();
+ ((Set<ConfigProperty_ArcAnnotationLiteral>)set8).add(configProperty_ArcAnnotationLiteral);
+ list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceBooleanConfigProperty()", (Set)set7, (Set)set8));
}
static void addRemovedBeans8(final List list, final Map map) {
final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
final HashSet set = new HashSet();
try {
final Object value = map.get("java.io.Serializable");
@@ -1639,214 +1651,202 @@
}
((Set)set).add(o);
}
catch (final Throwable t) {
ComponentsProvider.unableToLoadRemovedBeanType("java.io.Serializable", t);
}
try {
- final Object value2 = map.get("java.lang.Boolean");
+ final Object value2 = map.get("org.jboss.logging.BasicLogger");
Object o2;
if (value2 != null) {
o2 = value2;
}
else {
- map.put("java.lang.Boolean", Boolean.class);
- o2 = Boolean.class;
+ final Class<?> forName = Class.forName("org.jboss.logging.BasicLogger", false, contextClassLoader);
+ map.put("org.jboss.logging.BasicLogger", forName);
+ o2 = forName;
}
((Set)set).add(o2);
}
catch (final Throwable t2) {
- ComponentsProvider.unableToLoadRemovedBeanType("java.lang.Boolean", t2);
+ ComponentsProvider.unableToLoadRemovedBeanType("org.jboss.logging.BasicLogger", t2);
}
try {
- final Object value3 = map.get("java.lang.Comparable<java.lang.Boolean>");
+ final Object value3 = map.get("org.jboss.logging.Logger");
Object o3;
if (value3 != null) {
o3 = value3;
}
else {
- final Type[] array = { null };
- final Type value4 = map.get("java.lang.Boolean");
- Type type;
- if (value4 != null) {
- type = value4;
- }
- else {
- map.put("java.lang.Boolean", Boolean.class);
- type = Boolean.class;
- }
- array[0] = type;
- final ParameterizedTypeImpl parameterizedTypeImpl = new ParameterizedTypeImpl((Type)map.get("java.lang.Comparable"), array);
- map.put("java.lang.Comparable<java.lang.Boolean>", parameterizedTypeImpl);
- o3 = parameterizedTypeImpl;
+ final Class<?> forName2 = Class.forName("org.jboss.logging.Logger", false, contextClassLoader);
+ map.put("org.jboss.logging.Logger", forName2);
+ o3 = forName2;
}
((Set)set).add(o3);
}
catch (final Throwable t3) {
- ComponentsProvider.unableToLoadRemovedBeanType("java.lang.Comparable<java.lang.Boolean>", t3);
+ ComponentsProvider.unableToLoadRemovedBeanType("org.jboss.logging.Logger", t3);
}
- final HashSet<ConfigProperty_ArcAnnotationLiteral> set2 = new HashSet<ConfigProperty_ArcAnnotationLiteral>();
- final ConfigProperty_ArcAnnotationLiteral configProperty_ArcAnnotationLiteral = new ConfigProperty_ArcAnnotationLiteral("", "org.eclipse.microprofile.config.configproperty.unconfigureddvalue");
- ((Set<ConfigProperty_ArcAnnotationLiteral>)set2).add(configProperty_ArcAnnotationLiteral);
- list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceBooleanConfigProperty()", (Set)set, (Set)set2));
- final HashSet set3 = new HashSet();
+ list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.quarkus.arc.runtime.LoggerProducer#getSimpleLogger()", (Set)set, (Set)null));
+ final HashSet<Object> set2 = new HashSet<Object>();
try {
- final Object value5 = map.get("java.lang.Number");
+ final Object value4 = map.get("java.lang.Number");
Object o4;
- if (value5 != null) {
- o4 = value5;
+ if (value4 != null) {
+ o4 = value4;
}
else {
map.put("java.lang.Number", Number.class);
o4 = Number.class;
}
- ((Set)set3).add(o4);
+ ((Set<Object>)set2).add(o4);
}
catch (final Throwable t4) {
ComponentsProvider.unableToLoadRemovedBeanType("java.lang.Number", t4);
}
try {
- final Object value6 = map.get("java.io.Serializable");
+ final Object value5 = map.get("java.io.Serializable");
Object o5;
- if (value6 != null) {
- o5 = value6;
+ if (value5 != null) {
+ o5 = value5;
}
else {
map.put("java.io.Serializable", Serializable.class);
o5 = Serializable.class;
}
- ((Set)set3).add(o5);
+ ((Set<Object>)set2).add(o5);
}
catch (final Throwable t5) {
ComponentsProvider.unableToLoadRemovedBeanType("java.io.Serializable", t5);
}
try {
- final Object value7 = map.get("java.lang.Short");
+ final Object value6 = map.get("java.lang.Short");
Object o6;
- if (value7 != null) {
- o6 = value7;
+ if (value6 != null) {
+ o6 = value6;
}
else {
map.put("java.lang.Short", Short.class);
o6 = Short.class;
}
- ((Set)set3).add(o6);
+ ((Set<Object>)set2).add(o6);
}
catch (final Throwable t6) {
ComponentsProvider.unableToLoadRemovedBeanType("java.lang.Short", t6);
}
try {
- final Object value8 = map.get("java.lang.Comparable<java.lang.Short>");
+ final Object value7 = map.get("java.lang.Comparable<java.lang.Short>");
Object o7;
- if (value8 != null) {
- o7 = value8;
+ if (value7 != null) {
+ o7 = value7;
}
else {
- final Type[] array2 = { null };
- final Type value9 = map.get("java.lang.Short");
- Type type2;
- if (value9 != null) {
- type2 = value9;
+ final Type[] array = { null };
+ final Type value8 = map.get("java.lang.Short");
+ Type type;
+ if (value8 != null) {
+ type = value8;
}
else {
map.put("java.lang.Short", Short.class);
- type2 = Short.class;
+ type = Short.class;
}
- array2[0] = type2;
- final ParameterizedTypeImpl parameterizedTypeImpl2 = new ParameterizedTypeImpl((Type)map.get("java.lang.Comparable"), array2);
- map.put("java.lang.Comparable<java.lang.Short>", parameterizedTypeImpl2);
- o7 = parameterizedTypeImpl2;
+ array[0] = type;
+ final ParameterizedTypeImpl parameterizedTypeImpl = new ParameterizedTypeImpl((Type)map.get("java.lang.Comparable"), array);
+ map.put("java.lang.Comparable<java.lang.Short>", parameterizedTypeImpl);
+ o7 = parameterizedTypeImpl;
}
- ((Set)set3).add(o7);
+ ((Set<Object>)set2).add(o7);
}
catch (final Throwable t7) {
ComponentsProvider.unableToLoadRemovedBeanType("java.lang.Comparable<java.lang.Short>", t7);
}
- final HashSet<ConfigProperty_ArcAnnotationLiteral> set4 = new HashSet<ConfigProperty_ArcAnnotationLiteral>();
- ((Set<ConfigProperty_ArcAnnotationLiteral>)set4).add(configProperty_ArcAnnotationLiteral);
- list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceShortConfigProperty()", (Set)set3, (Set)set4));
- final HashSet<Object> set5 = new HashSet<Object>();
+ final HashSet set3 = new HashSet();
+ final ConfigProperty_ArcAnnotationLiteral configProperty_ArcAnnotationLiteral = new ConfigProperty_ArcAnnotationLiteral("", "org.eclipse.microprofile.config.configproperty.unconfigureddvalue");
+ ((Set)set3).add(configProperty_ArcAnnotationLiteral);
+ list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceShortConfigProperty()", (Set)set2, (Set)set3));
+ final HashSet<Object> set4 = new HashSet<Object>();
try {
- final Object value10 = map.get("io.quarkus.vertx.core.runtime.config.VertxConfiguration");
+ final Object value9 = map.get("io.quarkus.vertx.core.runtime.config.VertxConfiguration");
Object o8;
- if (value10 != null) {
- o8 = value10;
+ if (value9 != null) {
+ o8 = value9;
}
else {
- final Class<?> forName = Class.forName("io.quarkus.vertx.core.runtime.config.VertxConfiguration", false, contextClassLoader);
- map.put("io.quarkus.vertx.core.runtime.config.VertxConfiguration", forName);
- o8 = forName;
+ final Class<?> forName3 = Class.forName("io.quarkus.vertx.core.runtime.config.VertxConfiguration", false, contextClassLoader);
+ map.put("io.quarkus.vertx.core.runtime.config.VertxConfiguration", forName3);
+ o8 = forName3;
}
- ((Set<Object>)set5).add(o8);
+ ((Set<Object>)set4).add(o8);
}
catch (final Throwable t8) {
ComponentsProvider.unableToLoadRemovedBeanType("io.quarkus.vertx.core.runtime.config.VertxConfiguration", t8);
}
- list.add(new RemovedBeanImpl(InjectableBean$Kind.SYNTHETIC, (String)null, (Set)set5, (Set)null));
- final HashSet<Object> set6 = new HashSet<Object>();
+ list.add(new RemovedBeanImpl(InjectableBean$Kind.SYNTHETIC, (String)null, (Set)set4, (Set)null));
+ final HashSet<Object> set5 = new HashSet<Object>();
try {
- final Object value11 = map.get("io.quarkus.runtime.ThreadPoolConfig");
+ final Object value10 = map.get("io.quarkus.runtime.ThreadPoolConfig");
Object o9;
- if (value11 != null) {
- o9 = value11;
+ if (value10 != null) {
+ o9 = value10;
}
else {
- final Class<?> forName2 = Class.forName("io.quarkus.runtime.ThreadPoolConfig", false, contextClassLoader);
- map.put("io.quarkus.runtime.ThreadPoolConfig", forName2);
- o9 = forName2;
+ final Class<?> forName4 = Class.forName("io.quarkus.runtime.ThreadPoolConfig", false, contextClassLoader);
+ map.put("io.quarkus.runtime.ThreadPoolConfig", forName4);
+ o9 = forName4;
}
- ((Set<Object>)set6).add(o9);
+ ((Set<Object>)set5).add(o9);
}
catch (final Throwable t9) {
ComponentsProvider.unableToLoadRemovedBeanType("io.quarkus.runtime.ThreadPoolConfig", t9);
}
- list.add(new RemovedBeanImpl(InjectableBean$Kind.SYNTHETIC, (String)null, (Set)set6, (Set)null));
- final HashSet set7 = new HashSet();
+ list.add(new RemovedBeanImpl(InjectableBean$Kind.SYNTHETIC, (String)null, (Set)set5, (Set)null));
+ final HashSet set6 = new HashSet();
try {
- final Object value12 = map.get("java.util.function.Supplier<T>");
+ final Object value11 = map.get("java.util.function.Supplier<T>");
Object o10;
- if (value12 != null) {
- o10 = value12;
+ if (value11 != null) {
+ o10 = value11;
}
else {
- final Type[] array3 = { null };
- final Type value13 = map.get("T");
+ final Type[] array2 = { null };
+ final Type value12 = map.get("T");
Object o11;
- if (value13 != null) {
- o11 = value13;
+ if (value12 != null) {
+ o11 = value12;
}
else {
- final Type[] array4 = { null };
- final Type value14 = map.get("java.lang.Object");
- Type type3;
- if (value14 != null) {
- type3 = value14;
+ final Type[] array3 = { null };
+ final Type value13 = map.get("java.lang.Object");
+ Type type2;
+ if (value13 != null) {
+ type2 = value13;
}
else {
map.put("java.lang.Object", Object.class);
- type3 = Object.class;
+ type2 = Object.class;
}
- array4[0] = type3;
- final TypeVariableImpl typeVariableImpl = new TypeVariableImpl("T", array4);
+ array3[0] = type2;
+ final TypeVariableImpl typeVariableImpl = new TypeVariableImpl("T", array3);
map.put("T", typeVariableImpl);
o11 = typeVariableImpl;
}
- array3[0] = (Type)o11;
- final ParameterizedTypeImpl parameterizedTypeImpl3 = new ParameterizedTypeImpl((Type)map.get("java.util.function.Supplier"), array3);
- map.put("java.util.function.Supplier<T>", parameterizedTypeImpl3);
- o10 = parameterizedTypeImpl3;
+ array2[0] = (Type)o11;
+ final ParameterizedTypeImpl parameterizedTypeImpl2 = new ParameterizedTypeImpl((Type)map.get("java.util.function.Supplier"), array2);
+ map.put("java.util.function.Supplier<T>", parameterizedTypeImpl2);
+ o10 = parameterizedTypeImpl2;
}
- ((Set)set7).add(o10);
+ ((Set)set6).add(o10);
}
catch (final Throwable t10) {
ComponentsProvider.unableToLoadRemovedBeanType("java.util.function.Supplier<T>", t10);
}
- final HashSet<ConfigProperty_ArcAnnotationLiteral> set8 = new HashSet<ConfigProperty_ArcAnnotationLiteral>();
- ((Set<ConfigProperty_ArcAnnotationLiteral>)set8).add(configProperty_ArcAnnotationLiteral);
- list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceSupplierConfigProperty()", (Set)set7, (Set)set8));
+ final HashSet<ConfigProperty_ArcAnnotationLiteral> set7 = new HashSet<ConfigProperty_ArcAnnotationLiteral>();
+ ((Set<ConfigProperty_ArcAnnotationLiteral>)set7).add(configProperty_ArcAnnotationLiteral);
+ list.add(new RemovedBeanImpl(InjectableBean$Kind.PRODUCER_METHOD, "io.smallrye.config.inject.ConfigProducer#produceSupplierConfigProperty()", (Set)set6, (Set)set7));
}
static void addRemovedBeans9(final List list, final Map map) {
final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
final HashSet set = new HashSet();
try {
final Object value = map.get("java.util.Optional<T>");
@@ -10,14 +10,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("VertxCoreProcessor.createVertxThreadFactory");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey24", (Object)new VertxCoreRecorder().createThreadFactory(LaunchMode.valueOf("NORMAL")));
+ startupContext.putValue("proxykey19", (Object)new VertxCoreRecorder().createThreadFactory(LaunchMode.valueOf("NORMAL")));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -11,14 +11,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("BannerProcessor.recordBanner");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey39", (Object)new BannerRecorder(new RuntimeValue((Object)Config.BannerRuntimeConfig)).provideBannerSupplier("__ ____ __ _____ ___ __ ____ ______ \n --/ __ \\/ / / / _ | / _ \\/ //_/ / / / __/ \n -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\\ \\ \n--\\___\\_\\____/_/ |_/_/|_/_/|_|\\____/___/ \n"));
+ startupContext.putValue("proxykey30", (Object)new BannerRecorder(new RuntimeValue((Object)Config.BannerRuntimeConfig)).provideBannerSupplier("__ ____ __ _____ ___ __ ____ ______ \n --/ __ \\/ / / / _ | / _ \\/ //_/ / / / __/ \n -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\\ \\ \n--\\___\\_\\____/_/ |_/_/|_/_/|_|\\____/___/ \n"));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -9,14 +9,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("VertxProcessor.currentContextFactory");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey16", (Object)new VertxRecorder().currentContextFactory());
+ startupContext.putValue("proxykey22", (Object)new VertxRecorder().currentContextFactory());
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -9,14 +9,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("VertxCoreProcessor.ioThreadDetector");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey22", (Object)new VertxCoreRecorder().detector());
+ startupContext.putValue("proxykey20", (Object)new VertxCoreRecorder().detector());
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -15,15 +15,15 @@
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("VertxProcessor.build");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final VertxRecorder vertxRecorder = new VertxRecorder();
- vertxRecorder.configureVertx((Supplier)startupContext.getValue("proxykey31"), (Map)new HashMap(), LaunchMode.valueOf("NORMAL"), (ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (Map)new HashMap());
- startupContext.putValue("proxykey50", (Object)vertxRecorder.forceStart((Supplier)startupContext.getValue("proxykey31")));
+ vertxRecorder.configureVertx((Supplier)startupContext.getValue("proxykey35"), (Map)new HashMap(), LaunchMode.valueOf("NORMAL"), (ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (Map)new HashMap());
+ startupContext.putValue("proxykey55", (Object)vertxRecorder.forceStart((Supplier)startupContext.getValue("proxykey35")));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -15,15 +15,15 @@
startupContext.setCurrentBuildStepName("ShutdownListenerBuildStep.setupShutdown");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final ShutdownRecorder shutdownRecorder = new ShutdownRecorder(Config.ShutdownConfig);
final ArrayList list = new ArrayList(1);
- ((Collection)list).add(startupContext.getValue("proxykey42"));
+ ((Collection)list).add(startupContext.getValue("proxykey44"));
shutdownRecorder.setListeners((List)list);
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -16,16 +16,16 @@
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("VertxCoreProcessor.build");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final VertxCoreRecorder vertxCoreRecorder = new VertxCoreRecorder();
- startupContext.putValue("proxykey31", (Object)vertxCoreRecorder.configureVertx(Config.VertxConfiguration, LaunchMode.valueOf("NORMAL"), (ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (List)new ArrayList(), (ExecutorService)startupContext.getValue("proxykey28")));
- startupContext.putValue("proxykey32", (Object)vertxCoreRecorder.mainSupplier());
- startupContext.putValue("proxykey33", (Object)vertxCoreRecorder.bossSupplier());
+ startupContext.putValue("proxykey35", (Object)vertxCoreRecorder.configureVertx(Config.VertxConfiguration, LaunchMode.valueOf("NORMAL"), (ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (List)new ArrayList(), (ExecutorService)startupContext.getValue("proxykey32")));
+ startupContext.putValue("proxykey38", (Object)vertxCoreRecorder.mainSupplier());
+ startupContext.putValue("proxykey39", (Object)vertxCoreRecorder.bossSupplier());
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -25,999 +25,999 @@
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final ConfigRecorder configRecorder = new ConfigRecorder(Config.ConfigurationRuntimeConfig);
final HashMap hashMap = new HashMap();
final QuarkusConfigValue quarkusConfigValue = new QuarkusConfigValue();
quarkusConfigValue.setRawValue("false");
quarkusConfigValue.setConfigSourceName("default values");
quarkusConfigValue.setConfigSourcePosition(4);
- quarkusConfigValue.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue.setName("quarkus.package.filter-optional-dependencies");
+ quarkusConfigValue.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue.setLineNumber(-1);
quarkusConfigValue.setValue("false");
((Map)hashMap).put("quarkus.package.filter-optional-dependencies", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue));
final QuarkusConfigValue quarkusConfigValue2 = new QuarkusConfigValue();
quarkusConfigValue2.setRawValue("true");
quarkusConfigValue2.setConfigSourceName("default values");
quarkusConfigValue2.setConfigSourcePosition(4);
- quarkusConfigValue2.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue2.setName("quarkus.arc.context-propagation.enabled");
+ quarkusConfigValue2.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue2.setLineNumber(-1);
quarkusConfigValue2.setValue("true");
((Map)hashMap).put("quarkus.arc.context-propagation.enabled", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue2));
final QuarkusConfigValue quarkusConfigValue3 = new QuarkusConfigValue();
quarkusConfigValue3.setRawValue("true");
quarkusConfigValue3.setConfigSourceName("default values");
quarkusConfigValue3.setConfigSourcePosition(4);
- quarkusConfigValue3.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue3.setName("quarkus.package.manifest.add-implementation-entries");
+ quarkusConfigValue3.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue3.setLineNumber(-1);
quarkusConfigValue3.setValue("true");
((Map)hashMap).put("quarkus.package.manifest.add-implementation-entries", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue3));
final QuarkusConfigValue quarkusConfigValue4 = new QuarkusConfigValue();
quarkusConfigValue4.setRawValue(".*\\.IT[^.]+|.*IT|.*ITCase");
quarkusConfigValue4.setConfigSourceName("default values");
quarkusConfigValue4.setConfigSourcePosition(4);
- quarkusConfigValue4.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue4.setName("quarkus.test.exclude-pattern");
+ quarkusConfigValue4.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue4.setLineNumber(-1);
quarkusConfigValue4.setValue(".*\\.IT[^.]+|.*IT|.*ITCase");
((Map)hashMap).put("quarkus.test.exclude-pattern", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue4));
final QuarkusConfigValue quarkusConfigValue5 = new QuarkusConfigValue();
quarkusConfigValue5.setRawValue("true");
quarkusConfigValue5.setConfigSourceName("default values");
quarkusConfigValue5.setConfigSourcePosition(4);
- quarkusConfigValue5.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue5.setName("quarkus.arc.transform-private-injected-fields");
+ quarkusConfigValue5.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue5.setLineNumber(-1);
quarkusConfigValue5.setValue("true");
((Map)hashMap).put("quarkus.arc.transform-private-injected-fields", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue5));
final QuarkusConfigValue quarkusConfigValue6 = new QuarkusConfigValue();
quarkusConfigValue6.setRawValue("true");
quarkusConfigValue6.setConfigSourceName("default values");
quarkusConfigValue6.setConfigSourcePosition(4);
- quarkusConfigValue6.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue6.setName("quarkus.snapstart.initialize-classes");
+ quarkusConfigValue6.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue6.setLineNumber(-1);
quarkusConfigValue6.setValue("true");
((Map)hashMap).put("quarkus.snapstart.initialize-classes", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue6));
final QuarkusConfigValue quarkusConfigValue7 = new QuarkusConfigValue();
quarkusConfigValue7.setRawValue("false");
quarkusConfigValue7.setConfigSourceName("default values");
quarkusConfigValue7.setConfigSourcePosition(4);
- quarkusConfigValue7.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue7.setName("quarkus.bootstrap.effective-model-builder");
+ quarkusConfigValue7.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue7.setLineNumber(-1);
quarkusConfigValue7.setValue("false");
((Map)hashMap).put("quarkus.bootstrap.effective-model-builder", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue7));
final QuarkusConfigValue quarkusConfigValue8 = new QuarkusConfigValue();
quarkusConfigValue8.setRawValue("");
quarkusConfigValue8.setConfigSourceName("default values");
quarkusConfigValue8.setConfigSourcePosition(4);
- quarkusConfigValue8.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue8.setName("quarkus.class-loading.reloadable-artifacts");
+ quarkusConfigValue8.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue8.setLineNumber(-1);
quarkusConfigValue8.setValue("");
((Map)hashMap).put("quarkus.class-loading.reloadable-artifacts", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue8));
final QuarkusConfigValue quarkusConfigValue9 = new QuarkusConfigValue();
quarkusConfigValue9.setRawValue("false");
quarkusConfigValue9.setConfigSourceName("default values");
quarkusConfigValue9.setConfigSourcePosition(4);
- quarkusConfigValue9.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue9.setName("quarkus.arc.strict-compatibility");
+ quarkusConfigValue9.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue9.setLineNumber(-1);
quarkusConfigValue9.setValue("false");
((Map)hashMap).put("quarkus.arc.strict-compatibility", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue9));
final QuarkusConfigValue quarkusConfigValue10 = new QuarkusConfigValue();
quarkusConfigValue10.setRawValue("true");
quarkusConfigValue10.setConfigSourceName("default values");
quarkusConfigValue10.setConfigSourcePosition(4);
- quarkusConfigValue10.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue10.setName("quarkus.package.include-dependency-list");
+ quarkusConfigValue10.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue10.setLineNumber(-1);
quarkusConfigValue10.setValue("true");
((Map)hashMap).put("quarkus.package.include-dependency-list", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue10));
final QuarkusConfigValue quarkusConfigValue11 = new QuarkusConfigValue();
quarkusConfigValue11.setRawValue("true");
quarkusConfigValue11.setConfigSourceName("default values");
quarkusConfigValue11.setConfigSourcePosition(5);
- quarkusConfigValue11.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue11.setName("quarkus.jackson.write-durations-as-timestamps");
+ quarkusConfigValue11.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue11.setLineNumber(-1);
quarkusConfigValue11.setValue("true");
((Map)hashMap).put("quarkus.jackson.write-durations-as-timestamps", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue11));
final QuarkusConfigValue quarkusConfigValue12 = new QuarkusConfigValue();
quarkusConfigValue12.setRawValue("true");
quarkusConfigValue12.setConfigSourceName("default values");
quarkusConfigValue12.setConfigSourcePosition(4);
- quarkusConfigValue12.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue12.setName("quarkus.package.appcds-use-container");
+ quarkusConfigValue12.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue12.setLineNumber(-1);
quarkusConfigValue12.setValue("true");
((Map)hashMap).put("quarkus.package.appcds-use-container", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue12));
final QuarkusConfigValue quarkusConfigValue13 = new QuarkusConfigValue();
quarkusConfigValue13.setRawValue("all");
quarkusConfigValue13.setConfigSourceName("default values");
quarkusConfigValue13.setConfigSourcePosition(4);
- quarkusConfigValue13.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue13.setName("quarkus.test.type");
+ quarkusConfigValue13.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue13.setLineNumber(-1);
quarkusConfigValue13.setValue("all");
((Map)hashMap).put("quarkus.test.type", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue13));
final QuarkusConfigValue quarkusConfigValue14 = new QuarkusConfigValue();
quarkusConfigValue14.setRawValue("true");
quarkusConfigValue14.setConfigSourceName("default values");
quarkusConfigValue14.setConfigSourcePosition(5);
- quarkusConfigValue14.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue14.setName("quarkus.jackson.fail-on-empty-beans");
+ quarkusConfigValue14.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue14.setLineNumber(-1);
quarkusConfigValue14.setValue("true");
((Map)hashMap).put("quarkus.jackson.fail-on-empty-beans", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue14));
final QuarkusConfigValue quarkusConfigValue15 = new QuarkusConfigValue();
quarkusConfigValue15.setRawValue("2s");
quarkusConfigValue15.setConfigSourceName("default values");
quarkusConfigValue15.setConfigSourcePosition(5);
- quarkusConfigValue15.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue15.setName("quarkus.live-reload.retry-interval");
+ quarkusConfigValue15.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue15.setLineNumber(-1);
quarkusConfigValue15.setValue("2s");
((Map)hashMap).put("quarkus.live-reload.retry-interval", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue15));
final QuarkusConfigValue quarkusConfigValue16 = new QuarkusConfigValue();
quarkusConfigValue16.setRawValue("false");
quarkusConfigValue16.setConfigSourceName("default values");
quarkusConfigValue16.setConfigSourcePosition(5);
- quarkusConfigValue16.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue16.setName("quarkus.log.metrics.enabled");
+ quarkusConfigValue16.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue16.setLineNumber(-1);
quarkusConfigValue16.setValue("false");
((Map)hashMap).put("quarkus.log.metrics.enabled", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue16));
final QuarkusConfigValue quarkusConfigValue17 = new QuarkusConfigValue();
quarkusConfigValue17.setRawValue("false");
quarkusConfigValue17.setConfigSourceName("default values");
quarkusConfigValue17.setConfigSourcePosition(4);
- quarkusConfigValue17.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue17.setName("quarkus.console.disable-input");
+ quarkusConfigValue17.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue17.setLineNumber(-1);
quarkusConfigValue17.setValue("false");
((Map)hashMap).put("quarkus.console.disable-input", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue17));
final QuarkusConfigValue quarkusConfigValue18 = new QuarkusConfigValue();
quarkusConfigValue18.setRawValue("false");
quarkusConfigValue18.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue18.setConfigSourcePosition(6);
- quarkusConfigValue18.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue18.setName("quarkus.native.enable-vm-inspection");
+ quarkusConfigValue18.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue18.setLineNumber(-1);
quarkusConfigValue18.setValue("false");
((Map)hashMap).put("quarkus.native.enable-vm-inspection", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue18));
final QuarkusConfigValue quarkusConfigValue19 = new QuarkusConfigValue();
quarkusConfigValue19.setRawValue("true");
quarkusConfigValue19.setConfigSourceName("default values");
quarkusConfigValue19.setConfigSourcePosition(4);
- quarkusConfigValue19.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue19.setName("quarkus.arc.auto-inject-fields");
+ quarkusConfigValue19.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue19.setLineNumber(-1);
quarkusConfigValue19.setValue("true");
((Map)hashMap).put("quarkus.arc.auto-inject-fields", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue19));
final QuarkusConfigValue quarkusConfigValue20 = new QuarkusConfigValue();
quarkusConfigValue20.setRawValue("true");
quarkusConfigValue20.setConfigSourceName("default values");
quarkusConfigValue20.setConfigSourcePosition(4);
- quarkusConfigValue20.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue20.setName("quarkus.arc.auto-producer-methods");
+ quarkusConfigValue20.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue20.setLineNumber(-1);
quarkusConfigValue20.setValue("true");
((Map)hashMap).put("quarkus.arc.auto-producer-methods", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue20));
final QuarkusConfigValue quarkusConfigValue21 = new QuarkusConfigValue();
quarkusConfigValue21.setRawValue("true");
quarkusConfigValue21.setConfigSourceName("default values");
quarkusConfigValue21.setConfigSourcePosition(4);
- quarkusConfigValue21.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue21.setName("quarkus.arc.detect-unused-false-positives");
+ quarkusConfigValue21.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue21.setLineNumber(-1);
quarkusConfigValue21.setValue("true");
((Map)hashMap).put("quarkus.arc.detect-unused-false-positives", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue21));
final QuarkusConfigValue quarkusConfigValue22 = new QuarkusConfigValue();
quarkusConfigValue22.setRawValue("false");
quarkusConfigValue22.setConfigSourceName("default values");
quarkusConfigValue22.setConfigSourcePosition(4);
- quarkusConfigValue22.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue22.setName("quarkus.test.only-test-application-module");
+ quarkusConfigValue22.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue22.setLineNumber(-1);
quarkusConfigValue22.setValue("false");
((Map)hashMap).put("quarkus.test.only-test-application-module", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue22));
final QuarkusConfigValue quarkusConfigValue23 = new QuarkusConfigValue();
quarkusConfigValue23.setRawValue("");
quarkusConfigValue23.setConfigSourceName("default values");
quarkusConfigValue23.setConfigSourcePosition(4);
- quarkusConfigValue23.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue23.setName("quarkus.class-loading.removed-artifacts");
+ quarkusConfigValue23.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue23.setLineNumber(-1);
quarkusConfigValue23.setValue("");
((Map)hashMap).put("quarkus.class-loading.removed-artifacts", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue23));
final QuarkusConfigValue quarkusConfigValue24 = new QuarkusConfigValue();
quarkusConfigValue24.setRawValue("false");
quarkusConfigValue24.setConfigSourceName("default values");
quarkusConfigValue24.setConfigSourcePosition(4);
- quarkusConfigValue24.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue24.setName("quarkus.naming.enable-jndi");
+ quarkusConfigValue24.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue24.setLineNumber(-1);
quarkusConfigValue24.setValue("false");
((Map)hashMap).put("quarkus.naming.enable-jndi", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue24));
final QuarkusConfigValue quarkusConfigValue25 = new QuarkusConfigValue();
quarkusConfigValue25.setRawValue("false");
quarkusConfigValue25.setConfigSourceName("PropertiesConfigSource[source=Build system]");
quarkusConfigValue25.setConfigSourcePosition(2);
- quarkusConfigValue25.setConfigSourceOrdinal(100);
quarkusConfigValue25.setName("quarkus.package.add-runner-suffix");
+ quarkusConfigValue25.setConfigSourceOrdinal(100);
quarkusConfigValue25.setLineNumber(-1);
quarkusConfigValue25.setValue("false");
((Map)hashMap).put("quarkus.package.add-runner-suffix", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue25));
final QuarkusConfigValue quarkusConfigValue26 = new QuarkusConfigValue();
quarkusConfigValue26.setRawValue("false");
quarkusConfigValue26.setConfigSourceName("default values");
quarkusConfigValue26.setConfigSourcePosition(4);
- quarkusConfigValue26.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue26.setName("quarkus.test.flat-class-path");
+ quarkusConfigValue26.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue26.setLineNumber(-1);
quarkusConfigValue26.setValue("false");
((Map)hashMap).put("quarkus.test.flat-class-path", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue26));
final QuarkusConfigValue quarkusConfigValue27 = new QuarkusConfigValue();
quarkusConfigValue27.setRawValue("default_banner.txt");
quarkusConfigValue27.setConfigSourceName("default values");
quarkusConfigValue27.setConfigSourcePosition(4);
- quarkusConfigValue27.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue27.setName("quarkus.banner.path");
+ quarkusConfigValue27.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue27.setLineNumber(-1);
quarkusConfigValue27.setValue("default_banner.txt");
((Map)hashMap).put("quarkus.banner.path", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue27));
array[0] = new QuarkusConfigValue();
array[1] = hashMap;
array[4] = configRecorder;
}
public void deploy_1(final StartupContext startupContext, final Object[] array) {
((QuarkusConfigValue)array[0]).setRawValue("false");
((QuarkusConfigValue)array[0]).setConfigSourceName("default values");
((QuarkusConfigValue)array[0]).setConfigSourcePosition(4);
- ((QuarkusConfigValue)array[0]).setConfigSourceOrdinal(Integer.MIN_VALUE);
((QuarkusConfigValue)array[0]).setName("quarkus.package.create-appcds");
+ ((QuarkusConfigValue)array[0]).setConfigSourceOrdinal(Integer.MIN_VALUE);
((QuarkusConfigValue)array[0]).setLineNumber(-1);
((QuarkusConfigValue)array[0]).setValue("false");
final Object deserialize = ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)array[0]);
final HashMap hashMap = (HashMap)array[1];
((Map)hashMap).put("quarkus.package.create-appcds", deserialize);
final QuarkusConfigValue quarkusConfigValue = new QuarkusConfigValue();
quarkusConfigValue.setRawValue("-runner");
quarkusConfigValue.setConfigSourceName("default values");
quarkusConfigValue.setConfigSourcePosition(4);
- quarkusConfigValue.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue.setName("quarkus.package.runner-suffix");
+ quarkusConfigValue.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue.setLineNumber(-1);
quarkusConfigValue.setValue("-runner");
((Map)hashMap).put("quarkus.package.runner-suffix", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue));
final QuarkusConfigValue quarkusConfigValue2 = new QuarkusConfigValue();
quarkusConfigValue2.setRawValue("true");
quarkusConfigValue2.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue2.setConfigSourcePosition(6);
- quarkusConfigValue2.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue2.setName("quarkus.native.report-exception-stack-traces");
+ quarkusConfigValue2.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue2.setLineNumber(-1);
quarkusConfigValue2.setValue("true");
((Map)hashMap).put("quarkus.native.report-exception-stack-traces", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue2));
final QuarkusConfigValue quarkusConfigValue3 = new QuarkusConfigValue();
quarkusConfigValue3.setRawValue("prod");
quarkusConfigValue3.setConfigSourceName("default values");
quarkusConfigValue3.setConfigSourcePosition(4);
- quarkusConfigValue3.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue3.setName("quarkus.test.native-image-profile");
+ quarkusConfigValue3.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue3.setLineNumber(-1);
quarkusConfigValue3.setValue("prod");
((Map)hashMap).put("quarkus.test.native-image-profile", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue3));
final QuarkusConfigValue quarkusConfigValue4 = new QuarkusConfigValue();
quarkusConfigValue4.setRawValue("test");
quarkusConfigValue4.setConfigSourceName("default values");
quarkusConfigValue4.setConfigSourcePosition(4);
- quarkusConfigValue4.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue4.setName("quarkus.test.profile");
+ quarkusConfigValue4.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue4.setLineNumber(-1);
quarkusConfigValue4.setValue("test");
((Map)hashMap).put("quarkus.test.profile", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue4));
final QuarkusConfigValue quarkusConfigValue5 = new QuarkusConfigValue();
quarkusConfigValue5.setRawValue("true");
quarkusConfigValue5.setConfigSourceName("default values");
quarkusConfigValue5.setConfigSourcePosition(4);
- quarkusConfigValue5.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue5.setName("quarkus.arc.detect-wrong-annotations");
+ quarkusConfigValue5.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue5.setLineNumber(-1);
quarkusConfigValue5.setValue("true");
((Map)hashMap).put("quarkus.arc.detect-wrong-annotations", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue5));
final QuarkusConfigValue quarkusConfigValue6 = new QuarkusConfigValue();
quarkusConfigValue6.setRawValue("false");
quarkusConfigValue6.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue6.setConfigSourcePosition(6);
- quarkusConfigValue6.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue6.setName("quarkus.native.add-all-charsets");
+ quarkusConfigValue6.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue6.setLineNumber(-1);
quarkusConfigValue6.setValue("false");
((Map)hashMap).put("quarkus.native.add-all-charsets", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue6));
final QuarkusConfigValue quarkusConfigValue7 = new QuarkusConfigValue();
quarkusConfigValue7.setRawValue("1.8.1");
quarkusConfigValue7.setConfigSourceName("default values");
quarkusConfigValue7.setConfigSourcePosition(4);
- quarkusConfigValue7.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue7.setName("quarkus.package.quiltflower.version");
+ quarkusConfigValue7.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue7.setLineNumber(-1);
quarkusConfigValue7.setValue("1.8.1");
((Map)hashMap).put("quarkus.package.quiltflower.version", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue7));
final QuarkusConfigValue quarkusConfigValue8 = new QuarkusConfigValue();
quarkusConfigValue8.setRawValue("true");
quarkusConfigValue8.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue8.setConfigSourcePosition(6);
- quarkusConfigValue8.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue8.setName("quarkus.native.enable-isolates");
+ quarkusConfigValue8.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue8.setLineNumber(-1);
quarkusConfigValue8.setValue("true");
((Map)hashMap).put("quarkus.native.enable-isolates", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue8));
final QuarkusConfigValue quarkusConfigValue9 = new QuarkusConfigValue();
quarkusConfigValue9.setRawValue("maven-lockfile-github-action");
quarkusConfigValue9.setConfigSourceName("PropertiesConfigSource[source=Build system]");
quarkusConfigValue9.setConfigSourcePosition(2);
- quarkusConfigValue9.setConfigSourceOrdinal(100);
quarkusConfigValue9.setName("quarkus.application.name");
+ quarkusConfigValue9.setConfigSourceOrdinal(100);
quarkusConfigValue9.setLineNumber(-1);
quarkusConfigValue9.setValue("maven-lockfile-github-action");
((Map)hashMap).put("quarkus.application.name", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue9));
final QuarkusConfigValue quarkusConfigValue10 = new QuarkusConfigValue();
quarkusConfigValue10.setRawValue("true");
quarkusConfigValue10.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue10.setConfigSourcePosition(6);
- quarkusConfigValue10.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue10.setName("quarkus.native.enable-http-url-handler");
+ quarkusConfigValue10.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue10.setLineNumber(-1);
quarkusConfigValue10.setValue("true");
((Map)hashMap).put("quarkus.native.enable-http-url-handler", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue10));
final QuarkusConfigValue quarkusConfigValue11 = new QuarkusConfigValue();
quarkusConfigValue11.setRawValue("false");
quarkusConfigValue11.setConfigSourceName("default values");
quarkusConfigValue11.setConfigSourcePosition(5);
- quarkusConfigValue11.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue11.setName("quarkus.tls.trust-all");
+ quarkusConfigValue11.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue11.setLineNumber(-1);
quarkusConfigValue11.setValue("false");
((Map)hashMap).put("quarkus.tls.trust-all", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue11));
final QuarkusConfigValue quarkusConfigValue12 = new QuarkusConfigValue();
quarkusConfigValue12.setRawValue("false");
quarkusConfigValue12.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue12.setConfigSourcePosition(6);
- quarkusConfigValue12.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue12.setName("quarkus.native.reuse-existing");
+ quarkusConfigValue12.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue12.setLineNumber(-1);
quarkusConfigValue12.setValue("false");
((Map)hashMap).put("quarkus.native.reuse-existing", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue12));
final QuarkusConfigValue quarkusConfigValue13 = new QuarkusConfigValue();
quarkusConfigValue13.setRawValue("");
quarkusConfigValue13.setConfigSourceName("default values");
quarkusConfigValue13.setConfigSourcePosition(4);
- quarkusConfigValue13.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue13.setName("quarkus.class-loading.parent-first-artifacts");
+ quarkusConfigValue13.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue13.setLineNumber(-1);
quarkusConfigValue13.setValue("");
((Map)hashMap).put("quarkus.class-loading.parent-first-artifacts", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue13));
final QuarkusConfigValue quarkusConfigValue14 = new QuarkusConfigValue();
quarkusConfigValue14.setRawValue("false");
quarkusConfigValue14.setConfigSourceName("default values");
quarkusConfigValue14.setConfigSourcePosition(5);
- quarkusConfigValue14.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue14.setName("quarkus.live-reload.instrumentation");
+ quarkusConfigValue14.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue14.setLineNumber(-1);
quarkusConfigValue14.setValue("false");
((Map)hashMap).put("quarkus.live-reload.instrumentation", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue14));
final QuarkusConfigValue quarkusConfigValue15 = new QuarkusConfigValue();
quarkusConfigValue15.setRawValue("true");
quarkusConfigValue15.setConfigSourceName("default values");
quarkusConfigValue15.setConfigSourcePosition(4);
- quarkusConfigValue15.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue15.setName("quarkus.devservices.enabled");
+ quarkusConfigValue15.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue15.setLineNumber(-1);
quarkusConfigValue15.setValue("true");
((Map)hashMap).put("quarkus.devservices.enabled", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue15));
final QuarkusConfigValue quarkusConfigValue16 = new QuarkusConfigValue();
quarkusConfigValue16.setRawValue("true");
quarkusConfigValue16.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue16.setConfigSourcePosition(6);
- quarkusConfigValue16.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue16.setName("quarkus.native.headless");
+ quarkusConfigValue16.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue16.setLineNumber(-1);
quarkusConfigValue16.setValue("true");
((Map)hashMap).put("quarkus.native.headless", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue16));
final QuarkusConfigValue quarkusConfigValue17 = new QuarkusConfigValue();
quarkusConfigValue17.setRawValue("false");
quarkusConfigValue17.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue17.setConfigSourcePosition(6);
- quarkusConfigValue17.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue17.setName("quarkus.native.enable-fallback-images");
+ quarkusConfigValue17.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue17.setLineNumber(-1);
quarkusConfigValue17.setValue("false");
((Map)hashMap).put("quarkus.native.enable-fallback-images", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue17));
final QuarkusConfigValue quarkusConfigValue18 = new QuarkusConfigValue();
quarkusConfigValue18.setRawValue("${java.home}");
quarkusConfigValue18.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue18.setConfigSourcePosition(6);
- quarkusConfigValue18.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue18.setName("quarkus.native.java-home");
+ quarkusConfigValue18.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue18.setLineNumber(-1);
- quarkusConfigValue18.setValue("/usr/lib/jvm/temurin-11-jdk-amd64");
+ quarkusConfigValue18.setValue("/usr/lib/jvm/java-11-openjdk-amd64");
((Map)hashMap).put("quarkus.native.java-home", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue18));
final QuarkusConfigValue quarkusConfigValue19 = new QuarkusConfigValue();
quarkusConfigValue19.setRawValue("30s");
quarkusConfigValue19.setConfigSourceName("default values");
quarkusConfigValue19.setConfigSourcePosition(5);
- quarkusConfigValue19.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue19.setName("quarkus.live-reload.connect-timeout");
+ quarkusConfigValue19.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue19.setLineNumber(-1);
quarkusConfigValue19.setValue("30s");
((Map)hashMap).put("quarkus.live-reload.connect-timeout", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue19));
final QuarkusConfigValue quarkusConfigValue20 = new QuarkusConfigValue();
quarkusConfigValue20.setRawValue("false");
quarkusConfigValue20.setConfigSourceName("default values");
quarkusConfigValue20.setConfigSourcePosition(5);
- quarkusConfigValue20.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue20.setName("quarkus.jackson.fail-on-unknown-properties");
+ quarkusConfigValue20.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue20.setLineNumber(-1);
quarkusConfigValue20.setValue("false");
((Map)hashMap).put("quarkus.jackson.fail-on-unknown-properties", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue20));
final QuarkusConfigValue quarkusConfigValue21 = new QuarkusConfigValue();
quarkusConfigValue21.setRawValue("true");
quarkusConfigValue21.setConfigSourceName("default values");
quarkusConfigValue21.setConfigSourcePosition(4);
- quarkusConfigValue21.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue21.setName("quarkus.snapstart.full-warmup");
+ quarkusConfigValue21.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue21.setLineNumber(-1);
quarkusConfigValue21.setValue("true");
((Map)hashMap).put("quarkus.snapstart.full-warmup", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue21));
final QuarkusConfigValue quarkusConfigValue22 = new QuarkusConfigValue();
quarkusConfigValue22.setRawValue("true");
quarkusConfigValue22.setConfigSourceName("default values");
quarkusConfigValue22.setConfigSourcePosition(4);
- quarkusConfigValue22.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue22.setName("quarkus.snapstart.preload-classes");
+ quarkusConfigValue22.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue22.setLineNumber(-1);
quarkusConfigValue22.setValue("true");
((Map)hashMap).put("quarkus.snapstart.preload-classes", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue22));
final QuarkusConfigValue quarkusConfigValue23 = new QuarkusConfigValue();
quarkusConfigValue23.setRawValue("true");
quarkusConfigValue23.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue23.setConfigSourcePosition(6);
- quarkusConfigValue23.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue23.setName("quarkus.native.publish-debug-build-process-port");
+ quarkusConfigValue23.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue23.setLineNumber(-1);
quarkusConfigValue23.setValue("true");
((Map)hashMap).put("quarkus.native.publish-debug-build-process-port", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue23));
final QuarkusConfigValue quarkusConfigValue24 = new QuarkusConfigValue();
quarkusConfigValue24.setRawValue("10m");
quarkusConfigValue24.setConfigSourceName("default values");
quarkusConfigValue24.setConfigSourcePosition(4);
- quarkusConfigValue24.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue24.setName("quarkus.test.hang-detection-timeout");
+ quarkusConfigValue24.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue24.setLineNumber(-1);
quarkusConfigValue24.setValue("10m");
((Map)hashMap).put("quarkus.test.hang-detection-timeout", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue24));
final QuarkusConfigValue quarkusConfigValue25 = new QuarkusConfigValue();
quarkusConfigValue25.setRawValue("DEBUG");
quarkusConfigValue25.setConfigSourceName("default values");
quarkusConfigValue25.setConfigSourcePosition(5);
- quarkusConfigValue25.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue25.setName("quarkus.log.min-level");
+ quarkusConfigValue25.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue25.setLineNumber(-1);
quarkusConfigValue25.setValue("DEBUG");
((Map)hashMap).put("quarkus.log.min-level", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue25));
final QuarkusConfigValue quarkusConfigValue26 = new QuarkusConfigValue();
quarkusConfigValue26.setRawValue("inherit");
quarkusConfigValue26.setConfigSourceName("default values");
quarkusConfigValue26.setConfigSourcePosition(5);
- quarkusConfigValue26.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue26.setName("quarkus.log.category.*.min-level");
+ quarkusConfigValue26.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue26.setLineNumber(-1);
quarkusConfigValue26.setValue("inherit");
((Map)hashMap).put("quarkus.log.category.*.min-level", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue26));
final QuarkusConfigValue quarkusConfigValue27 = new QuarkusConfigValue();
quarkusConfigValue27.setRawValue("3.4.0");
quarkusConfigValue27.setConfigSourceName("PropertiesConfigSource[source=Build system]");
quarkusConfigValue27.setConfigSourcePosition(2);
- quarkusConfigValue27.setConfigSourceOrdinal(100);
+ quarkusConfigValue27.setName("quarkus.application.version");
array[2] = quarkusConfigValue27;
}
public void deploy_2(final StartupContext startupContext, final Object[] array) {
final QuarkusConfigValue quarkusConfigValue = (QuarkusConfigValue)array[2];
- quarkusConfigValue.setName("quarkus.application.version");
+ quarkusConfigValue.setConfigSourceOrdinal(100);
quarkusConfigValue.setLineNumber(-1);
quarkusConfigValue.setValue("3.4.0");
final Object deserialize = ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue);
final HashMap hashMap = (HashMap)array[1];
((Map)hashMap).put("quarkus.application.version", deserialize);
final QuarkusConfigValue quarkusConfigValue2 = new QuarkusConfigValue();
quarkusConfigValue2.setRawValue("${platform.quarkus.native.builder-image}");
quarkusConfigValue2.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue2.setConfigSourcePosition(6);
- quarkusConfigValue2.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue2.setName("quarkus.native.builder-image");
+ quarkusConfigValue2.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue2.setLineNumber(-1);
quarkusConfigValue2.setValue("mandrel");
((Map)hashMap).put("quarkus.native.builder-image", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue2));
final QuarkusConfigValue quarkusConfigValue3 = new QuarkusConfigValue();
quarkusConfigValue3.setRawValue("10");
quarkusConfigValue3.setConfigSourceName("default values");
quarkusConfigValue3.setConfigSourcePosition(5);
- quarkusConfigValue3.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue3.setName("quarkus.live-reload.retry-max-attempts");
+ quarkusConfigValue3.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue3.setLineNumber(-1);
quarkusConfigValue3.setValue("10");
((Map)hashMap).put("quarkus.live-reload.retry-max-attempts", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue3));
final QuarkusConfigValue quarkusConfigValue4 = new QuarkusConfigValue();
quarkusConfigValue4.setRawValue("true");
quarkusConfigValue4.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue4.setConfigSourcePosition(6);
- quarkusConfigValue4.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue4.setName("quarkus.native.full-stack-traces");
+ quarkusConfigValue4.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue4.setLineNumber(-1);
quarkusConfigValue4.setValue("true");
((Map)hashMap).put("quarkus.native.full-stack-traces", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue4));
final QuarkusConfigValue quarkusConfigValue5 = new QuarkusConfigValue();
quarkusConfigValue5.setRawValue("3.1.1.Final");
quarkusConfigValue5.setConfigSourceName("PropertiesConfigSource[source=Build system]");
quarkusConfigValue5.setConfigSourcePosition(2);
- quarkusConfigValue5.setConfigSourceOrdinal(100);
quarkusConfigValue5.setName("quarkus.platform.version");
+ quarkusConfigValue5.setConfigSourceOrdinal(100);
quarkusConfigValue5.setLineNumber(-1);
quarkusConfigValue5.setValue("3.1.1.Final");
((Map)hashMap).put("quarkus.platform.version", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue5));
final QuarkusConfigValue quarkusConfigValue6 = new QuarkusConfigValue();
quarkusConfigValue6.setRawValue("false");
quarkusConfigValue6.setConfigSourceName("default values");
quarkusConfigValue6.setConfigSourcePosition(4);
- quarkusConfigValue6.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue6.setName("quarkus.test.enable-callbacks-for-integration-tests");
+ quarkusConfigValue6.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue6.setLineNumber(-1);
quarkusConfigValue6.setValue("false");
((Map)hashMap).put("quarkus.test.enable-callbacks-for-integration-tests", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue6));
final QuarkusConfigValue quarkusConfigValue7 = new QuarkusConfigValue();
quarkusConfigValue7.setRawValue("true");
quarkusConfigValue7.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue7.setConfigSourcePosition(6);
- quarkusConfigValue7.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue7.setName("quarkus.native.inline-before-analysis");
+ quarkusConfigValue7.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue7.setLineNumber(-1);
quarkusConfigValue7.setValue("true");
((Map)hashMap).put("quarkus.native.inline-before-analysis", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue7));
final QuarkusConfigValue quarkusConfigValue8 = new QuarkusConfigValue();
quarkusConfigValue8.setRawValue("quarkus-bom");
quarkusConfigValue8.setConfigSourceName("PropertiesConfigSource[source=Build system]");
quarkusConfigValue8.setConfigSourcePosition(2);
- quarkusConfigValue8.setConfigSourceOrdinal(100);
quarkusConfigValue8.setName("quarkus.platform.artifact-id");
+ quarkusConfigValue8.setConfigSourceOrdinal(100);
quarkusConfigValue8.setLineNumber(-1);
quarkusConfigValue8.setValue("quarkus-bom");
((Map)hashMap).put("quarkus.platform.artifact-id", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue8));
final QuarkusConfigValue quarkusConfigValue9 = new QuarkusConfigValue();
quarkusConfigValue9.setRawValue("false");
quarkusConfigValue9.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue9.setConfigSourcePosition(6);
- quarkusConfigValue9.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue9.setName("quarkus.native.debug-build-process");
+ quarkusConfigValue9.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue9.setLineNumber(-1);
quarkusConfigValue9.setValue("false");
((Map)hashMap).put("quarkus.native.debug-build-process", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue9));
final QuarkusConfigValue quarkusConfigValue10 = new QuarkusConfigValue();
quarkusConfigValue10.setRawValue("false");
quarkusConfigValue10.setConfigSourceName("default values");
quarkusConfigValue10.setConfigSourcePosition(4);
- quarkusConfigValue10.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue10.setName("quarkus.package.quiltflower.enabled");
+ quarkusConfigValue10.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue10.setLineNumber(-1);
quarkusConfigValue10.setValue("false");
((Map)hashMap).put("quarkus.package.quiltflower.enabled", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue10));
final QuarkusConfigValue quarkusConfigValue11 = new QuarkusConfigValue();
quarkusConfigValue11.setRawValue("false");
quarkusConfigValue11.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue11.setConfigSourcePosition(6);
- quarkusConfigValue11.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue11.setName("quarkus.native.dump-proxies");
+ quarkusConfigValue11.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue11.setLineNumber(-1);
quarkusConfigValue11.setValue("false");
((Map)hashMap).put("quarkus.native.dump-proxies", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue11));
final QuarkusConfigValue quarkusConfigValue12 = new QuarkusConfigValue();
quarkusConfigValue12.setRawValue("${user.home}/.quarkus");
quarkusConfigValue12.setConfigSourceName("default values");
quarkusConfigValue12.setConfigSourcePosition(4);
- quarkusConfigValue12.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue12.setName("quarkus.package.quiltflower.jar-directory");
+ quarkusConfigValue12.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue12.setLineNumber(-1);
- quarkusConfigValue12.setValue("/home/runner/.quarkus");
+ quarkusConfigValue12.setValue("/var/maven/.quarkus");
((Map)hashMap).put("quarkus.package.quiltflower.jar-directory", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue12));
final QuarkusConfigValue quarkusConfigValue13 = new QuarkusConfigValue();
quarkusConfigValue13.setRawValue("PT1M");
quarkusConfigValue13.setConfigSourceName("default values");
quarkusConfigValue13.setConfigSourcePosition(4);
- quarkusConfigValue13.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue13.setName("quarkus.test.wait-time");
+ quarkusConfigValue13.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue13.setLineNumber(-1);
quarkusConfigValue13.setValue("PT1M");
((Map)hashMap).put("quarkus.test.wait-time", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue13));
final QuarkusConfigValue quarkusConfigValue14 = new QuarkusConfigValue();
quarkusConfigValue14.setRawValue("error");
quarkusConfigValue14.setConfigSourceName("default values");
quarkusConfigValue14.setConfigSourcePosition(4);
- quarkusConfigValue14.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue14.setName("quarkus.bootstrap.misaligned-platform-imports");
+ quarkusConfigValue14.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue14.setLineNumber(-1);
quarkusConfigValue14.setValue("error");
((Map)hashMap).put("quarkus.bootstrap.misaligned-platform-imports", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue14));
final QuarkusConfigValue quarkusConfigValue15 = new QuarkusConfigValue();
quarkusConfigValue15.setRawValue("prod");
quarkusConfigValue15.setConfigSourceName("default values");
quarkusConfigValue15.setConfigSourcePosition(4);
- quarkusConfigValue15.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue15.setName("quarkus.test.integration-test-profile");
+ quarkusConfigValue15.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue15.setLineNumber(-1);
quarkusConfigValue15.setValue("prod");
((Map)hashMap).put("quarkus.test.integration-test-profile", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue15));
final QuarkusConfigValue quarkusConfigValue16 = new QuarkusConfigValue();
quarkusConfigValue16.setRawValue("false");
quarkusConfigValue16.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue16.setConfigSourcePosition(6);
- quarkusConfigValue16.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue16.setName("quarkus.native.enable-server");
+ quarkusConfigValue16.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue16.setLineNumber(-1);
quarkusConfigValue16.setValue("false");
((Map)hashMap).put("quarkus.native.enable-server", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue16));
final QuarkusConfigValue quarkusConfigValue17 = new QuarkusConfigValue();
quarkusConfigValue17.setRawValue("false");
quarkusConfigValue17.setConfigSourceName("default values");
quarkusConfigValue17.setConfigSourcePosition(4);
- quarkusConfigValue17.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue17.setName("quarkus.console.basic");
+ quarkusConfigValue17.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue17.setLineNumber(-1);
quarkusConfigValue17.setValue("false");
((Map)hashMap).put("quarkus.console.basic", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue17));
final QuarkusConfigValue quarkusConfigValue18 = new QuarkusConfigValue();
quarkusConfigValue18.setRawValue("false");
quarkusConfigValue18.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue18.setConfigSourcePosition(6);
- quarkusConfigValue18.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue18.setName("quarkus.native.auto-service-loader-registration");
+ quarkusConfigValue18.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue18.setLineNumber(-1);
quarkusConfigValue18.setValue("false");
((Map)hashMap).put("quarkus.native.auto-service-loader-registration", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue18));
final QuarkusConfigValue quarkusConfigValue19 = new QuarkusConfigValue();
quarkusConfigValue19.setRawValue("true");
quarkusConfigValue19.setConfigSourceName("default values");
quarkusConfigValue19.setConfigSourcePosition(4);
- quarkusConfigValue19.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue19.setName("quarkus.snapstart.generate-application-class-list");
+ quarkusConfigValue19.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue19.setLineNumber(-1);
quarkusConfigValue19.setValue("true");
((Map)hashMap).put("quarkus.snapstart.generate-application-class-list", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue19));
final QuarkusConfigValue quarkusConfigValue20 = new QuarkusConfigValue();
quarkusConfigValue20.setRawValue("all");
quarkusConfigValue20.setConfigSourceName("default values");
quarkusConfigValue20.setConfigSourcePosition(4);
- quarkusConfigValue20.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue20.setName("quarkus.arc.remove-unused-beans");
+ quarkusConfigValue20.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue20.setLineNumber(-1);
quarkusConfigValue20.setValue("all");
((Map)hashMap).put("quarkus.arc.remove-unused-beans", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue20));
final QuarkusConfigValue quarkusConfigValue21 = new QuarkusConfigValue();
quarkusConfigValue21.setRawValue("false");
quarkusConfigValue21.setConfigSourceName("default values");
quarkusConfigValue21.setConfigSourcePosition(4);
- quarkusConfigValue21.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue21.setName("quarkus.bootstrap.workspace-discovery");
+ quarkusConfigValue21.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue21.setLineNumber(-1);
quarkusConfigValue21.setValue("false");
((Map)hashMap).put("quarkus.bootstrap.workspace-discovery", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue21));
final QuarkusConfigValue quarkusConfigValue22 = new QuarkusConfigValue();
quarkusConfigValue22.setRawValue("auto");
quarkusConfigValue22.setConfigSourceName("default values");
quarkusConfigValue22.setConfigSourcePosition(4);
- quarkusConfigValue22.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue22.setName("quarkus.ide.target");
+ quarkusConfigValue22.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue22.setLineNumber(-1);
quarkusConfigValue22.setValue("auto");
((Map)hashMap).put("quarkus.ide.target", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue22));
final QuarkusConfigValue quarkusConfigValue23 = new QuarkusConfigValue();
quarkusConfigValue23.setRawValue("true");
quarkusConfigValue23.setConfigSourceName("default values");
quarkusConfigValue23.setConfigSourcePosition(4);
- quarkusConfigValue23.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue23.setName("quarkus.vertx.customize-arc-context");
+ quarkusConfigValue23.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue23.setLineNumber(-1);
quarkusConfigValue23.setValue("true");
((Map)hashMap).put("quarkus.vertx.customize-arc-context", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue23));
final QuarkusConfigValue quarkusConfigValue24 = new QuarkusConfigValue();
quarkusConfigValue24.setRawValue("false");
quarkusConfigValue24.setConfigSourceName("default values");
quarkusConfigValue24.setConfigSourcePosition(4);
- quarkusConfigValue24.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue24.setName("quarkus.arc.dev-mode.monitoring-enabled");
+ quarkusConfigValue24.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue24.setLineNumber(-1);
quarkusConfigValue24.setValue("false");
((Map)hashMap).put("quarkus.arc.dev-mode.monitoring-enabled", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue24));
final QuarkusConfigValue quarkusConfigValue25 = new QuarkusConfigValue();
quarkusConfigValue25.setRawValue("true");
quarkusConfigValue25.setConfigSourceName("default values");
quarkusConfigValue25.setConfigSourcePosition(4);
- quarkusConfigValue25.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue25.setName("quarkus.console.enabled");
+ quarkusConfigValue25.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue25.setLineNumber(-1);
quarkusConfigValue25.setValue("true");
((Map)hashMap).put("quarkus.console.enabled", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue25));
final QuarkusConfigValue quarkusConfigValue26 = new QuarkusConfigValue();
quarkusConfigValue26.setRawValue("false");
quarkusConfigValue26.setConfigSourceName("default values");
quarkusConfigValue26.setConfigSourcePosition(4);
- quarkusConfigValue26.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue26.setName("quarkus.debug.reflection");
+ quarkusConfigValue26.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue26.setLineNumber(-1);
quarkusConfigValue26.setValue("false");
((Map)hashMap).put("quarkus.debug.reflection", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue26));
final QuarkusConfigValue quarkusConfigValue27 = new QuarkusConfigValue();
quarkusConfigValue27.setRawValue("false");
quarkusConfigValue27.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue27.setConfigSourcePosition(6);
- quarkusConfigValue27.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue27.setName("quarkus.native.enable-https-url-handler");
+ quarkusConfigValue27.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue27.setLineNumber(-1);
quarkusConfigValue27.setValue("false");
((Map)hashMap).put("quarkus.native.enable-https-url-handler", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue27));
final QuarkusConfigValue quarkusConfigValue28 = new QuarkusConfigValue();
quarkusConfigValue28.setRawValue("uber-jar");
quarkusConfigValue28.setConfigSourceName("PropertiesConfigSource[source=Build system]");
quarkusConfigValue28.setConfigSourcePosition(2);
- quarkusConfigValue28.setConfigSourceOrdinal(100);
quarkusConfigValue28.setName("quarkus.package.type");
+ quarkusConfigValue28.setConfigSourceOrdinal(100);
quarkusConfigValue28.setLineNumber(-1);
quarkusConfigValue28.setValue("uber-jar");
array[3] = quarkusConfigValue28;
}
public void deploy_3(final StartupContext startupContext, final Object[] array) {
final Object deserialize = ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)array[3]);
final HashMap hashMap = (HashMap)array[1];
((Map)hashMap).put("quarkus.package.type", deserialize);
final QuarkusConfigValue quarkusConfigValue = new QuarkusConfigValue();
quarkusConfigValue.setRawValue("{applicationName} (powered by Quarkus)");
quarkusConfigValue.setConfigSourceName("default values");
quarkusConfigValue.setConfigSourcePosition(5);
- quarkusConfigValue.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue.setName("quarkus.application.ui-header");
+ quarkusConfigValue.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue.setLineNumber(-1);
quarkusConfigValue.setValue("{applicationName} (powered by Quarkus)");
((Map)hashMap).put("quarkus.application.ui-header", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue));
final QuarkusConfigValue quarkusConfigValue2 = new QuarkusConfigValue();
quarkusConfigValue2.setRawValue("false");
quarkusConfigValue2.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue2.setConfigSourcePosition(6);
- quarkusConfigValue2.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue2.setName("quarkus.native.enable-all-security-services");
+ quarkusConfigValue2.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue2.setLineNumber(-1);
quarkusConfigValue2.setValue("false");
((Map)hashMap).put("quarkus.native.enable-all-security-services", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue2));
final QuarkusConfigValue quarkusConfigValue3 = new QuarkusConfigValue();
quarkusConfigValue3.setRawValue("false");
quarkusConfigValue3.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue3.setConfigSourcePosition(6);
- quarkusConfigValue3.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue3.setName("quarkus.native.report-errors-at-runtime");
+ quarkusConfigValue3.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue3.setLineNumber(-1);
quarkusConfigValue3.setValue("false");
((Map)hashMap).put("quarkus.native.report-errors-at-runtime", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue3));
final QuarkusConfigValue quarkusConfigValue4 = new QuarkusConfigValue();
quarkusConfigValue4.setRawValue("java\\..*");
quarkusConfigValue4.setConfigSourceName("default values");
quarkusConfigValue4.setConfigSourcePosition(4);
- quarkusConfigValue4.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue4.setName("quarkus.test.class-clone-pattern");
+ quarkusConfigValue4.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue4.setLineNumber(-1);
quarkusConfigValue4.setValue("java\\..*");
((Map)hashMap).put("quarkus.test.class-clone-pattern", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue4));
final QuarkusConfigValue quarkusConfigValue5 = new QuarkusConfigValue();
quarkusConfigValue5.setRawValue("false");
quarkusConfigValue5.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue5.setConfigSourcePosition(6);
- quarkusConfigValue5.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue5.setName("quarkus.native.enable-reports");
+ quarkusConfigValue5.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue5.setLineNumber(-1);
quarkusConfigValue5.setValue("false");
((Map)hashMap).put("quarkus.native.enable-reports", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue5));
final QuarkusConfigValue quarkusConfigValue6 = new QuarkusConfigValue();
quarkusConfigValue6.setRawValue("false");
quarkusConfigValue6.setConfigSourceName("default values");
quarkusConfigValue6.setConfigSourcePosition(4);
- quarkusConfigValue6.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue6.setName("quarkus.package.write-transformed-bytecode-to-build-output");
+ quarkusConfigValue6.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue6.setLineNumber(-1);
quarkusConfigValue6.setValue("false");
((Map)hashMap).put("quarkus.package.write-transformed-bytecode-to-build-output", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue6));
final QuarkusConfigValue quarkusConfigValue7 = new QuarkusConfigValue();
quarkusConfigValue7.setRawValue("false");
quarkusConfigValue7.setConfigSourceName("default values");
quarkusConfigValue7.setConfigSourcePosition(5);
- quarkusConfigValue7.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue7.setName("quarkus.jackson.write-dates-as-timestamps");
+ quarkusConfigValue7.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue7.setLineNumber(-1);
quarkusConfigValue7.setValue("false");
((Map)hashMap).put("quarkus.jackson.write-dates-as-timestamps", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue7));
final QuarkusConfigValue quarkusConfigValue8 = new QuarkusConfigValue();
quarkusConfigValue8.setRawValue("false");
quarkusConfigValue8.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue8.setConfigSourcePosition(6);
- quarkusConfigValue8.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue8.setName("quarkus.native.remote-container-build");
+ quarkusConfigValue8.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue8.setLineNumber(-1);
quarkusConfigValue8.setValue("false");
((Map)hashMap).put("quarkus.native.remote-container-build", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue8));
final QuarkusConfigValue quarkusConfigValue9 = new QuarkusConfigValue();
quarkusConfigValue9.setRawValue("false");
quarkusConfigValue9.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue9.setConfigSourcePosition(6);
- quarkusConfigValue9.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue9.setName("quarkus.native.cleanup-server");
+ quarkusConfigValue9.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue9.setLineNumber(-1);
quarkusConfigValue9.setValue("false");
((Map)hashMap).put("quarkus.native.cleanup-server", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue9));
final QuarkusConfigValue quarkusConfigValue10 = new QuarkusConfigValue();
quarkusConfigValue10.setRawValue("UTC");
quarkusConfigValue10.setConfigSourceName("default values");
quarkusConfigValue10.setConfigSourcePosition(5);
- quarkusConfigValue10.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue10.setName("quarkus.jackson.timezone");
+ quarkusConfigValue10.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue10.setLineNumber(-1);
quarkusConfigValue10.setValue("UTC");
((Map)hashMap).put("quarkus.jackson.timezone", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue10));
final QuarkusConfigValue quarkusConfigValue11 = new QuarkusConfigValue();
quarkusConfigValue11.setRawValue("false");
quarkusConfigValue11.setConfigSourceName("default values");
quarkusConfigValue11.setConfigSourcePosition(4);
- quarkusConfigValue11.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue11.setName("quarkus.config.sources.system-only");
+ quarkusConfigValue11.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue11.setLineNumber(-1);
quarkusConfigValue11.setValue("false");
((Map)hashMap).put("quarkus.config.sources.system-only", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue11));
final QuarkusConfigValue quarkusConfigValue12 = new QuarkusConfigValue();
quarkusConfigValue12.setRawValue("false");
quarkusConfigValue12.setConfigSourceName("default values");
quarkusConfigValue12.setConfigSourcePosition(4);
- quarkusConfigValue12.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue12.setName("quarkus.test.display-test-output");
+ quarkusConfigValue12.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue12.setLineNumber(-1);
quarkusConfigValue12.setValue("false");
((Map)hashMap).put("quarkus.test.display-test-output", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue12));
final QuarkusConfigValue quarkusConfigValue13 = new QuarkusConfigValue();
quarkusConfigValue13.setRawValue("true");
quarkusConfigValue13.setConfigSourceName("default values");
quarkusConfigValue13.setConfigSourcePosition(4);
- quarkusConfigValue13.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue13.setName("quarkus.jni.enable");
+ quarkusConfigValue13.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue13.setLineNumber(-1);
quarkusConfigValue13.setValue("true");
((Map)hashMap).put("quarkus.jni.enable", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue13));
final QuarkusConfigValue quarkusConfigValue14 = new QuarkusConfigValue();
quarkusConfigValue14.setRawValue("false");
quarkusConfigValue14.setConfigSourceName("default values");
quarkusConfigValue14.setConfigSourcePosition(5);
- quarkusConfigValue14.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue14.setName("quarkus.jackson.accept-case-insensitive-enums");
+ quarkusConfigValue14.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue14.setLineNumber(-1);
quarkusConfigValue14.setValue("false");
((Map)hashMap).put("quarkus.jackson.accept-case-insensitive-enums", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue14));
final QuarkusConfigValue quarkusConfigValue15 = new QuarkusConfigValue();
quarkusConfigValue15.setRawValue("${GRAALVM_HOME:}");
quarkusConfigValue15.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue15.setConfigSourcePosition(6);
- quarkusConfigValue15.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue15.setName("quarkus.native.graalvm-home");
+ quarkusConfigValue15.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue15.setLineNumber(-1);
quarkusConfigValue15.setValue("");
((Map)hashMap).put("quarkus.native.graalvm-home", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue15));
final QuarkusConfigValue quarkusConfigValue16 = new QuarkusConfigValue();
quarkusConfigValue16.setRawValue("UTF-8");
quarkusConfigValue16.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue16.setConfigSourcePosition(6);
- quarkusConfigValue16.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue16.setName("quarkus.native.file-encoding");
+ quarkusConfigValue16.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue16.setLineNumber(-1);
quarkusConfigValue16.setValue("UTF-8");
((Map)hashMap).put("quarkus.native.file-encoding", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue16));
final QuarkusConfigValue quarkusConfigValue17 = new QuarkusConfigValue();
quarkusConfigValue17.setRawValue("");
quarkusConfigValue17.setConfigSourceName("default values");
quarkusConfigValue17.setConfigSourcePosition(4);
- quarkusConfigValue17.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue17.setName("quarkus.test.profile.tags");
+ quarkusConfigValue17.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue17.setLineNumber(-1);
quarkusConfigValue17.setValue("");
((Map)hashMap).put("quarkus.test.profile.tags", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue17));
final QuarkusConfigValue quarkusConfigValue18 = new QuarkusConfigValue();
quarkusConfigValue18.setRawValue("false");
quarkusConfigValue18.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue18.setConfigSourcePosition(6);
- quarkusConfigValue18.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue18.setName("quarkus.native.debug.enabled");
+ quarkusConfigValue18.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue18.setLineNumber(-1);
quarkusConfigValue18.setValue("false");
((Map)hashMap).put("quarkus.native.debug.enabled", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue18));
final QuarkusConfigValue quarkusConfigValue19 = new QuarkusConfigValue();
quarkusConfigValue19.setRawValue("paused");
quarkusConfigValue19.setConfigSourceName("default values");
quarkusConfigValue19.setConfigSourcePosition(4);
- quarkusConfigValue19.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue19.setName("quarkus.test.continuous-testing");
+ quarkusConfigValue19.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue19.setLineNumber(-1);
quarkusConfigValue19.setValue("paused");
((Map)hashMap).put("quarkus.test.continuous-testing", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue19));
final QuarkusConfigValue quarkusConfigValue20 = new QuarkusConfigValue();
quarkusConfigValue20.setRawValue("false");
quarkusConfigValue20.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue20.setConfigSourcePosition(6);
- quarkusConfigValue20.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue20.setName("quarkus.native.enable-dashboard-dump");
+ quarkusConfigValue20.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue20.setLineNumber(-1);
quarkusConfigValue20.setValue("false");
((Map)hashMap).put("quarkus.native.enable-dashboard-dump", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue20));
final QuarkusConfigValue quarkusConfigValue21 = new QuarkusConfigValue();
quarkusConfigValue21.setRawValue("true");
quarkusConfigValue21.setConfigSourceName("default values");
quarkusConfigValue21.setConfigSourcePosition(4);
- quarkusConfigValue21.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue21.setName("quarkus.arc.fail-on-intercepted-private-method");
+ quarkusConfigValue21.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue21.setLineNumber(-1);
quarkusConfigValue21.setValue("true");
((Map)hashMap).put("quarkus.arc.fail-on-intercepted-private-method", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue21));
final QuarkusConfigValue quarkusConfigValue22 = new QuarkusConfigValue();
quarkusConfigValue22.setRawValue("slow");
quarkusConfigValue22.setConfigSourceName("default values");
quarkusConfigValue22.setConfigSourcePosition(4);
- quarkusConfigValue22.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue22.setName("quarkus.test.exclude-tags");
+ quarkusConfigValue22.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue22.setLineNumber(-1);
quarkusConfigValue22.setValue("slow");
((Map)hashMap).put("quarkus.test.exclude-tags", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue22));
final QuarkusConfigValue quarkusConfigValue23 = new QuarkusConfigValue();
quarkusConfigValue23.setRawValue("true");
quarkusConfigValue23.setConfigSourceName("default values");
quarkusConfigValue23.setConfigSourcePosition(4);
- quarkusConfigValue23.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue23.setName("quarkus.arc.transform-unproxyable-classes");
+ quarkusConfigValue23.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue23.setLineNumber(-1);
quarkusConfigValue23.setValue("true");
((Map)hashMap).put("quarkus.arc.transform-unproxyable-classes", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue23));
final QuarkusConfigValue quarkusConfigValue24 = new QuarkusConfigValue();
quarkusConfigValue24.setRawValue("true");
quarkusConfigValue24.setConfigSourceName("DefaultValuesConfigSource");
quarkusConfigValue24.setConfigSourcePosition(6);
- quarkusConfigValue24.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue24.setName("quarkus.native.enable-jni");
+ quarkusConfigValue24.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue24.setLineNumber(-1);
quarkusConfigValue24.setValue("true");
((Map)hashMap).put("quarkus.native.enable-jni", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue24));
final QuarkusConfigValue quarkusConfigValue25 = new QuarkusConfigValue();
quarkusConfigValue25.setRawValue("false");
quarkusConfigValue25.setConfigSourceName("default values");
quarkusConfigValue25.setConfigSourcePosition(4);
- quarkusConfigValue25.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue25.setName("quarkus.arc.test.disable-application-lifecycle-observers");
+ quarkusConfigValue25.setConfigSourceOrdinal(Integer.MIN_VALUE);
quarkusConfigValue25.setLineNumber(-1);
quarkusConfigValue25.setValue("false");
((Map)hashMap).put("quarkus.arc.test.disable-application-lifecycle-observers", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue25));
final QuarkusConfigValue quarkusConfigValue26 = new QuarkusConfigValue();
quarkusConfigValue26.setRawValue("io.quarkus.platform");
quarkusConfigValue26.setConfigSourceName("PropertiesConfigSource[source=Build system]");
quarkusConfigValue26.setConfigSourcePosition(2);
- quarkusConfigValue26.setConfigSourceOrdinal(100);
quarkusConfigValue26.setName("quarkus.platform.group-id");
+ quarkusConfigValue26.setConfigSourceOrdinal(100);
quarkusConfigValue26.setLineNumber(-1);
quarkusConfigValue26.setValue("io.quarkus.platform");
((Map)hashMap).put("quarkus.platform.group-id", ((ObjectSubstitution)new QuarkusConfigValue$Substitution()).deserialize((Object)quarkusConfigValue26));
((ConfigRecorder)array[4]).handleConfigChange((Map)hashMap);
}
public Object[] $quarkus$createArray() {
@@ -9,14 +9,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("VertxCoreProcessor.createVertxContextHandlers");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey14", (Object)new VertxCoreRecorder().executionContextHandler());
+ startupContext.putValue("proxykey26", (Object)new VertxCoreRecorder().executionContextHandler());
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -15,15 +15,15 @@
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("ArcProcessor.generateResources");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final ArcRecorder arcRecorder = new ArcRecorder();
- startupContext.putValue("proxykey65", (Object)arcRecorder.initContainer((ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (RuntimeValue)startupContext.getValue("proxykey16"), false));
- startupContext.putValue("proxykey67", (Object)arcRecorder.initBeanContainer((ArcContainer)startupContext.getValue("proxykey65"), (List)new ArrayList()));
+ startupContext.putValue("proxykey66", (Object)arcRecorder.initContainer((ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (RuntimeValue)startupContext.getValue("proxykey22"), false));
+ startupContext.putValue("proxykey68", (Object)arcRecorder.initBeanContainer((ArcContainer)startupContext.getValue("proxykey66"), (List)new ArrayList()));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -16,20 +16,20 @@
import java.util.function.Supplier;
import io.quarkus.arc.InjectableBean;
public synthetic class ActionMain_Bean implements InjectableBean, Supplier
{
private final Set types;
private volatile ActionMain_ClientProxy proxy;
- private final Supplier injectProviderSupplier2;
private final Supplier injectProviderSupplier5;
private final Supplier injectProviderSupplier1;
+ private final Supplier injectProviderSupplier4;
private final Supplier injectProviderSupplier3;
private final Supplier injectProviderSupplier6;
- private final Supplier injectProviderSupplier4;
+ private final Supplier injectProviderSupplier2;
private ActionMain_ClientProxy proxy() {
ActionMain_ClientProxy proxy = this.proxy;
if (proxy == null) {
proxy = new ActionMain_ClientProxy("915372d5939ddf65c87a35c4d56489a3c9c350b9");
this.proxy = proxy;
}
@@ -161,17 +161,17 @@
final KeyMap keyMap = new KeyMap();
keyMap.findOrAdd("quarkus.native.monitoring").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.full-stack-traces").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.report-exception-stack-traces").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.resources.includes[*]").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.compression.additional-args").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.enable-reports").putRootValue((Object)Boolean.valueOf(true));
- keyMap.findOrAdd("quarkus.native.inline-before-analysis").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.resources.excludes").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.resources.includes").putRootValue((Object)Boolean.valueOf(true));
+ keyMap.findOrAdd("quarkus.native.inline-before-analysis").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.add-all-charsets").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.debug-build-process").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.remote-container-build").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.enable-isolates").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.container-build").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.cleanup-server").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.container-runtime-options[*]").putRootValue((Object)Boolean.valueOf(true));
@@ -182,26 +182,26 @@
keyMap.findOrAdd("quarkus.native.reuse-existing").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.container-runtime-options").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.enable-server").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.headless").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.auto-service-loader-registration").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.enable-vm-inspection").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.graalvm-home").putRootValue((Object)Boolean.valueOf(true));
- keyMap.findOrAdd("quarkus.native.enable-fallback-images").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.resources.excludes[*]").putRootValue((Object)Boolean.valueOf(true));
+ keyMap.findOrAdd("quarkus.native.enable-fallback-images").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.java-home").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.file-encoding").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.debug.enabled").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.compression.additional-args[*]").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.enable-https-url-handler").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.additional-build-args").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.additional-build-args[*]").putRootValue((Object)Boolean.valueOf(true));
- keyMap.findOrAdd("quarkus.native.compression.level").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.user-country").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.publish-debug-build-process-port").putRootValue((Object)Boolean.valueOf(true));
+ keyMap.findOrAdd("quarkus.native.compression.level").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.enable-dashboard-dump").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.container-runtime").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.enable-all-security-services").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.enable-jni").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.builder-image").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.native-image-xmx").putRootValue((Object)Boolean.valueOf(true));
keyMap.findOrAdd("quarkus.native.report-errors-at-runtime").putRootValue((Object)Boolean.valueOf(true));
@@ -11,26 +11,26 @@
static {
properties = new HashMap();
final Map properties2 = BuildTimeRunTimeFixedConfigSource.properties;
properties2.put("quarkus.application.name", "maven-lockfile-github-action");
properties2.put("quarkus.application.ui-header", "{applicationName} (powered by Quarkus)");
properties2.put("quarkus.application.version", "3.4.0");
- properties2.put("quarkus.default-locale", "en-");
+ properties2.put("quarkus.default-locale", "en-US");
properties2.put("quarkus.jackson.accept-case-insensitive-enums", "false");
properties2.put("quarkus.jackson.fail-on-empty-beans", "true");
properties2.put("quarkus.jackson.fail-on-unknown-properties", "false");
properties2.put("quarkus.jackson.timezone", "UTC");
properties2.put("quarkus.jackson.write-dates-as-timestamps", "false");
properties2.put("quarkus.jackson.write-durations-as-timestamps", "true");
properties2.put("quarkus.live-reload.connect-timeout", "30s");
properties2.put("quarkus.live-reload.instrumentation", "false");
properties2.put("quarkus.live-reload.retry-interval", "2s");
properties2.put("quarkus.live-reload.retry-max-attempts", "10");
- properties2.put("quarkus.locales", "en-");
+ properties2.put("quarkus.locales", "en-US");
properties2.put("quarkus.log.category.*.min-level", "inherit");
properties2.put("quarkus.log.metrics.enabled", "false");
properties2.put("quarkus.log.min-level", "DEBUG");
properties2.put("quarkus.tls.trust-all", "false");
}
public BuildTimeRunTimeFixedConfigSource() {
@@ -10,14 +10,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("ArcProcessor.setupExecutor");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- new ArcRecorder().initExecutor((ExecutorService)startupContext.getValue("proxykey28"));
+ new ArcRecorder().initExecutor((ExecutorService)startupContext.getValue("proxykey32"));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -12,15 +12,15 @@
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("SmallRyeContextPropagationProcessor.build");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final SmallRyeContextPropagationRecorder smallRyeContextPropagationRecorder = new SmallRyeContextPropagationRecorder();
- smallRyeContextPropagationRecorder.configureRuntime((ExecutorService)startupContext.getValue("proxykey28"), (ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"));
- startupContext.putValue("proxykey36", (Object)smallRyeContextPropagationRecorder.initializeManagedExecutor((ExecutorService)startupContext.getValue("proxykey28")));
+ smallRyeContextPropagationRecorder.configureRuntime((ExecutorService)startupContext.getValue("proxykey32"), (ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"));
+ startupContext.putValue("proxykey37", (Object)smallRyeContextPropagationRecorder.initializeManagedExecutor((ExecutorService)startupContext.getValue("proxykey32")));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -12,14 +12,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("SmallRyeStorkProcessor.initializeStork");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- new SmallRyeStorkRecorder().initialize((ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (RuntimeValue)startupContext.getValue("proxykey50"), Config.StorkConfiguration);
+ new SmallRyeStorkRecorder().initialize((ShutdownContext)startupContext.getValue("io.quarkus.runtime.ShutdownContext"), (RuntimeValue)startupContext.getValue("proxykey55"), Config.StorkConfiguration);
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -8,139 +8,50 @@
public final synthetic class RunTimeDefaultsConfigSource extends DefaultsConfigSource
{
static final Map properties;
static {
properties = new HashMap();
final Map properties2 = RunTimeDefaultsConfigSource.properties;
- properties2.put("android.ndk.root", "/usr/local/lib/android/sdk/ndk/25.2.9519653");
- properties2.put("xdg.runtime.dir", "/run/user/1001");
+ properties2.put("debian.frontend", "noninteractive");
+ properties2.put("maven.config", "/var/maven/.m2");
+ properties2.put("quarkus.log.console.darken", "0");
+ properties2.put("tz", "UTC");
properties2.put("quarkus.banner.enabled", "false");
- properties2.put("github.actor.id", "25300639");
- properties2.put("azure.extension.dir", "/opt/az/azcliextensions");
- properties2.put("java.home[11]x64", "/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.19-7/x64");
- properties2.put("github.repository.owner.id", "104410944");
+ properties2.put("language", "en_US");
properties2.put("quarkus.log.filter.\"io.netty.resolver.HostsFileParser\".if-starts-with", "Failed to load and parse hosts file");
- properties2.put("android.ndk.home", "/usr/local/lib/android/sdk/ndk/25.2.9519653");
- properties2.put("goroot[1]18.x64", "/opt/hostedtoolcache/go/1.18.10/x64");
- properties2.put("java.home[8]x64", "/usr/lib/jvm/temurin-8-jdk-amd64");
- properties2.put("path", "/opt/hostedtoolcache/maven/3.8.2/x64/bin:/home/runner/go/bin:/opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.19-7/x64/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin");
- properties2.put("github.head.ref", "");
- properties2.put("maven.cmd.line.args", " --no-transfer-progress --batch-mode -Ppublication clean deploy -DaltDeploymentRepository=local::file:./target/staging-deploy");
+ properties2.put("path", "/usr/local/bin/:/usr/local/apache-maven/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin");
+ properties2.put("hostname", "1cdc90a64eb7");
+ properties2.put("debconf.terse", "true");
+ properties2.put("m2.home", "/usr/local/apache-maven");
+ properties2.put("maven.cmd.line.args", "/var/maven/.m2 -Ppublication clean package -DskipTests -Dmaven.javadoc.skip -Dgpg.skip -Dcyclonedx.skip -V -e org.apache.maven.plugins:maven-artifact-plugin:3.5.1:compare -Dbuildinfo.reproducible -Dcompare.fail=false --no-transfer-progress -Dstyle.color=always");
+ properties2.put("inside.docker", "Yes");
+ properties2.put("lang", "en_US.UTF-8");
properties2.put("platform.quarkus.native.builder-image", "mandrel");
+ properties2.put("quarkus.log.category.\"io.vertx.core.impl.ContextImpl\".level", "ERROR");
+ properties2.put("build.umask", "022");
properties2.put("quarkus.log.filter.\"io.vertx.core.impl.ContextImpl\".if-starts-with", "You have disabled TCCL checks");
- properties2.put("runner.name", "GitHub Actions 5");
+ properties2.put("quarkus.log.filter.\"io.netty.resolver.dns.DnsServerAddressStreamProviders\".target-level", "WARN");
properties2.put("quarkus.log.filter.\"io.netty.resolver.dns.DnsServerAddressStreamProviders\".if-starts-with", "Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider in the classpath");
- properties2.put("%", "/opt/hostedtoolcache/maven/3.8.2/x64/bin/mvn");
- properties2.put("shlvl", "1");
- properties2.put("bootstrap.haskell.noninteractive", "1");
- properties2.put("github.ref.name", "main");
- properties2.put("github.env", "/home/runner/work/_temp/_runner_file_commands/set_env_1602f331-2621-4124-b923-6f8319d980cc");
- properties2.put("maven.projectbasedir", "/home/runner/work/maven-lockfile/maven-lockfile");
- properties2.put("systemd.exec.pid", "665");
- properties2.put("sgx.aesm.addr", "1");
- properties2.put("github.retention.days", "90");
- properties2.put("quarkus.log.filter.\"io.netty.util.internal.PlatformDependent0\".if-starts-with", "direct buffer constructor,jdk.internal.misc.Unsafe,sun.misc.Unsafe");
- properties2.put("github.workspace", "/home/runner/work/maven-lockfile/maven-lockfile");
- properties2.put("quarkus.log.filter.\"org.jboss.threads\".if-starts-with", "JBoss Threads version");
- properties2.put("github.action.ref", "");
- properties2.put("github.repository.id", "575350863");
- properties2.put("oldpwd", "/home/runner/work/maven-lockfile/maven-lockfile");
- properties2.put("pwd", "/home/runner/work/maven-lockfile/maven-lockfile");
- properties2.put("vcpkg.installation.root", "/usr/local/share/vcpkg");
- properties2.put("dotnet.skip.first.time.experience", "1");
- properties2.put("github.actor", "MartinWitt");
- properties2.put("github.event.path", "/home/runner/work/_temp/_github_workflow/event.json");
- properties2.put("selenium.jar.path", "/usr/share/java/selenium-server.jar");
- properties2.put("github.api.url", "https://api.github.com");
- properties2.put("github.workflow.ref", "chains-project/maven-lockfile/.github/workflows/jreleaser.yml@refs/heads/main");
- properties2.put("github.repository.owner", "chains-project");
- properties2.put("journal.stream", "8:16860");
- properties2.put("runner.perflog", "/home/runner/perflog");
- properties2.put("github.ref.protected", "true");
- properties2.put("github.ref", "refs/heads/main");
- properties2.put("runner.workspace", "/home/runner/work/maven-lockfile");
- properties2.put("dotnet.multilevel.lookup", "0");
- properties2.put("pipx.bin.dir", "/opt/pipx_bin");
- properties2.put("android.ndk.latest.home", "/usr/local/lib/android/sdk/ndk/25.2.9519653");
- properties2.put("chrome.bin", "/usr/bin/google-chrome");
- properties2.put("github.job", "build");
- properties2.put("github.workflow.sha", "097babe27ea937a25c73f2a999b51c57f239681a");
- properties2.put("ci", "true");
- properties2.put("runner.user", "runner");
- properties2.put("deployment.basepath", "/opt/runner");
- properties2.put("pipx.home", "/opt/pipx");
- properties2.put("ant.home", "/usr/share/ant");
+ properties2.put("build.timezone", "UTC");
+ properties2.put("maven.version", "3.6.3");
+ properties2.put("mvn.umask", "022");
+ properties2.put("maven.opts", " -Duser.timezone=UTC");
+ properties2.put("shlvl", "0");
properties2.put("quarkus.profile", "prod");
- properties2.put("github.sha", "097babe27ea937a25c73f2a999b51c57f239681a");
- properties2.put("android.sdk.root", "/usr/local/lib/android/sdk");
- properties2.put("homebrew.cleanup.periodic.full.days", "3650");
- properties2.put("current.version.with.snapshot", "3.3.1-SNAPSHOT");
- properties2.put("branch.name", "release/3.4.0");
- properties2.put("github.action.repository", "");
- properties2.put("perflog.location.setting", "RUNNER_PERFLOG");
- properties2.put("runner.temp", "/home/runner/work/_temp");
- properties2.put("github.path", "/home/runner/work/_temp/_runner_file_commands/add_path_1602f331-2621-4124-b923-6f8319d980cc");
- properties2.put("current.version", "3.3.1");
- properties2.put("debian.frontend", "noninteractive");
- properties2.put("stats.trp", "true");
- properties2.put("quarkus.log.console.darken", "0");
- properties2.put("accept.eula", "Y");
- properties2.put("stats.rdcl", "true");
- properties2.put("github.output", "/home/runner/work/_temp/_runner_file_commands/set_output_1602f331-2621-4124-b923-6f8319d980cc");
- properties2.put("agent.toolsdirectory", "/opt/hostedtoolcache");
- properties2.put("nvm.dir", "/home/runner/.nvm");
- properties2.put("pom.changed", "false");
- properties2.put("github.triggering.actor", "MartinWitt");
- properties2.put("runner.tracking.id", "github_e9fcf4ab-c89f-4ff8-9e8a-5f43e058fa0f");
- properties2.put("edgewebdriver", "/usr/local/share/edge_driver");
- properties2.put("goroot[1]19.x64", "/opt/hostedtoolcache/go/1.19.10/x64");
- properties2.put("github.actions", "true");
- properties2.put("dotnet.nologo", "1");
- properties2.put("github.base.ref", "");
- properties2.put("runner.os", "Linux");
- properties2.put("lein.jar", "/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar");
- properties2.put("stats.tis", "mining");
- properties2.put("github.action", "__run_11");
- properties2.put("swift.path", "/usr/share/swift/usr/bin");
- properties2.put("runner.tool.cache", "/opt/hostedtoolcache");
- properties2.put("github.state", "/home/runner/work/_temp/_runner_file_commands/save_state_1602f331-2621-4124-b923-6f8319d980cc");
- properties2.put("next.version", "3.4.0");
- properties2.put("homebrew.no.auto.update", "1");
- properties2.put("android.ndk", "/usr/local/lib/android/sdk/ndk/25.2.9519653");
- properties2.put("github.workflow", "Release");
- properties2.put("github.ref.type", "branch");
- properties2.put("github.repository", "chains-project/maven-lockfile");
- properties2.put("github.step.summary", "/home/runner/work/_temp/_runner_file_commands/step_summary_1602f331-2621-4124-b923-6f8319d980cc");
- properties2.put("goroot[1]20.x64", "/opt/hostedtoolcache/go/1.20.5/x64");
- properties2.put("github.graphql.url", "https://api.github.com/graphql");
- properties2.put("github.run.id", "5279553384");
- properties2.put("geckowebdriver", "/usr/local/share/gecko_driver");
- properties2.put("github.run.attempt", "1");
- properties2.put("chromewebdriver", "/usr/local/share/chrome_driver");
- properties2.put("android.home", "/usr/local/lib/android/sdk");
- properties2.put("invocation.id", "b9f9f4a0c08d41d4ac21856447217a81");
- properties2.put("github.run.number", "88");
- properties2.put("conda", "/usr/share/miniconda");
- properties2.put("java.home[17]x64", "/usr/lib/jvm/temurin-17-jdk-amd64");
- properties2.put("lang", "C.UTF-8");
- properties2.put("powershell.distribution.channel", "GitHub-Actions-ubuntu22");
- properties2.put("quarkus.log.category.\"io.vertx.core.impl.ContextImpl\".level", "ERROR");
- properties2.put("stats.vmd", "true");
- properties2.put("quarkus.log.filter.\"io.netty.resolver.dns.DnsServerAddressStreamProviders\".target-level", "WARN");
- properties2.put("github.server.url", "https://github.com");
- properties2.put("gradle.home", "/usr/share/gradle-8.1.1");
- properties2.put("xdg.config.home", "/home/runner/.config");
- properties2.put("ghcup.install.base.prefix", "/usr/local");
- properties2.put("github.event.name", "workflow_dispatch");
- properties2.put("home", "/home/runner");
+ properties2.put("home", "/var/maven");
properties2.put("quarkus.log.filter.\"io.netty.util.internal.PlatformDependent0\".target-level", "TRACE");
- properties2.put("runner.arch", "X64");
+ properties2.put("maven.projectbasedir", "/var/maven/app");
properties2.put("quarkus.log.level", "WARNING");
- properties2.put("lein.home", "/usr/local/lib/lein");
- properties2.put("user", "runner");
+ properties2.put("build.locale", "en_US");
+ properties2.put("quarkus.log.filter.\"io.netty.util.internal.PlatformDependent0\".if-starts-with", "direct buffer constructor,jdk.internal.misc.Unsafe,sun.misc.Unsafe");
+ properties2.put("maven.major", "3");
+ properties2.put("quarkus.log.filter.\"org.jboss.threads\".if-starts-with", "JBoss Threads version");
+ properties2.put("oldpwd", "/var/maven/app");
+ properties2.put("pwd", "/var/maven/app");
+ properties2.put("lc.all", "en_US.UTF-8");
}
public RunTimeDefaultsConfigSource() {
super(RunTimeDefaultsConfigSource.properties, "RunTime Defaults", -2147483548);
}
}
@@ -10,14 +10,14 @@
{
public void deploy(final StartupContext startupContext) {
startupContext.setCurrentBuildStepName("JacksonProcessor.jacksonSupport");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
- startupContext.putValue("proxykey44", (Object)new JacksonSupportRecorder().supplier((Optional)Optional.empty()));
+ startupContext.putValue("proxykey46", (Object)new JacksonSupportRecorder().supplier((Optional)Optional.empty()));
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -14,15 +14,15 @@
startupContext.setCurrentBuildStepName("BlockingOperationControlBuildStep.blockingOP");
this.deploy_0(startupContext, this.$quarkus$createArray());
}
public void deploy_0(final StartupContext startupContext, final Object[] array) {
final BlockingOperationRecorder blockingOperationRecorder = new BlockingOperationRecorder();
final ArrayList list = new ArrayList(1);
- ((Collection)list).add(startupContext.getValue("proxykey22"));
+ ((Collection)list).add(startupContext.getValue("proxykey20"));
blockingOperationRecorder.control((List)list);
}
public Object[] $quarkus$createArray() {
return new Object[0];
}
}
@@ -22,16 +22,16 @@
import java.util.Set;
import java.util.function.Supplier;
import io.quarkus.arc.InjectableBean;
public synthetic class GraphQLClientConfigurationMergerBean_Bean implements InjectableBean, Supplier
{
private final Set types;
- private final Supplier injectProviderSupplier1;
private final Supplier injectProviderSupplier2;
+ private final Supplier injectProviderSupplier1;
public GraphQLClientConfigurationMergerBean_Bean(final Supplier supplier, final Supplier injectProviderSupplier2) {
final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
final Set ip_DEFAULT_QUALIFIERS = Qualifiers.IP_DEFAULT_QUALIFIERS;
final HashSet set = new HashSet();
((Set)set).add(InjectLiteral.INSTANCE);
this.injectProviderSupplier1 = (Supplier)new FixedValueSupplier((Object)new CurrentInjectionPointProvider((InjectableBean)this, supplier, (Type)Class.forName("io.quarkus.smallrye.graphql.client.runtime.GraphQLClientsConfig", false, contextClassLoader), ip_DEFAULT_QUALIFIERS, (Set)set, (Member)Reflections.findField((Class)GraphQLClientConfigurationMergerBean.class, "quarkusConfiguration"), -1, false));
procyon
org.apache.activemq:activemq-parent:5.16.4
Response: {"message":"Validation Failed","errors":[{"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body is too long (maximum is 65536 characters)"}],"documentation_url":"https://docs.github.com/rest/issues/comments#create-an-issue-comment","status":"422"
org.apache.activemq:activemq-parent:5.16.5
Failed to create comment. Status code: 422 Response: {"message":"Validation Failed","errors":[{"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body is too long (maximum is 65536 characters)"}],"documentation_url":"https://docs.github.com/rest/issues/comments#create-an-issue-comment","status":"422"}
org.apache.isis:isis-parent:2.0.0-M7
org.apache.synapse:Apache-Synapse:3.0.2
dev.langchain4j:langchain4j:0.27.1
dev.langchain4j:langchain4j:0.26.0
dev.langchain4j:langchain4j:0.28.0
dev.langchain4j:langchain4j:0.27.0
io.github.chains-project:maven-lockfile:3.4.0
javap
org.apache.jackrabbit.vault:jackrabbit-filevault:3.7.2
org.mybatis.dynamic-sql:mybatis-dynamic-sql:1.4.1
io.smallrye:jandex-parent:3.1.0
org.eclipse.transformer:org.eclipse.transformer.parent:0.5.0
org.apache.synapse:Apache-Synapse:3.0.2
dev.langchain4j:langchain4j:0.27.1
dev.langchain4j:langchain4j:0.26.0
dev.langchain4j:langchain4j:0.28.0
dev.langchain4j:langchain4j:0.27.0