buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void testInsertionOrder() {
if (isPutAddSupported() == false || isPutChangeSupported() == false) {
return;
}
final K[] keys = getSampleKeys();
final V[] values = getSampleValues();
Iterator<K> keyIter;
Iterator<V> valueIter;
resetEmpty();
... | public void testInsertionOrder() {
if (!isPutAddSupported() || !isPutChangeSupported()) {
return;
}
final K[] keys = getSampleKeys();
final V[] values = getSampleValues();
Iterator<K> keyIter;
Iterator<V> valueIter;
resetEmpty();
map.put(k... |
public static void main(String[] args) throws Exception {
ModelControllerClient client = null;
try {
System.out.println("Connecting");
client = ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999);
System.out.println("Connected");
... | public static void main(String[] args) throws Exception {
ModelControllerClient client = null;
try {
System.out.println("Connecting");
client = ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999);
System.out.println("Connected");
... |
public NoBracketingException(Localizable specific,
double lo, double hi,
double fLo, double fHi,
Object ... args) {
super(specific, lo, hi, fLo, fHi, args);
this.lo = lo;
this.hi = hi;
... | public NoBracketingException(Localizable specific,
double lo, double hi,
double fLo, double fHi,
Object ... args) {
super(specific, Double.valueOf(lo), Double.valueOf(hi), Double.valueOf(fLo), Double.valueOf(f... |
protected void disconnect(CloseStatus status) throws IOException {
if (this.webSocketSession != null) {
this.webSocketSession.close(status);
}
}
| protected void disconnect(CloseStatus status) throws IOException {
if (isActive()) {
this.webSocketSession.close(status);
}
}
|
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
final ModelNode address = new ModelNode();
address.add(ModelDescriptionConstants.SUBSYSTEM, MailSubsystemExtension.SUBSYSTEM_NAME);
address.protect();
final ModelNode subsystem... | public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
final ModelNode address = new ModelNode();
address.add(ModelDescriptionConstants.SUBSYSTEM, MailExtension.SUBSYSTEM_NAME);
address.protect();
final ModelNode subsystem = new Mo... |
protected Token nextToken(Token tkn) throws IOException {
wsBuf.clear(); // resuse
// get the last read char (required for empty line detection)
int lastChar = in.readAgain();
// read the next char and set eol
/* note: unfourtunately isEndOfLine may consumes a character silently.
*... | protected Token nextToken(Token tkn) throws IOException {
wsBuf.clear(); // resuse
// get the last read char (required for empty line detection)
int lastChar = in.readAgain();
// read the next char and set eol
/* note: unfourtunately isEndOfLine may consumes a character silently.
*... |
public Object onInvoke(InvocationContext ctx) throws Exception {
return ctx.proceed();
}
| public Object onInvoke(InvocationContext ctx) throws Exception {
return getClass().getName() + "#" + ctx.proceed();
}
|
private static URL makeURL(String urlspec) throws MalformedURLException {
urlspec = urlspec.trim();
URL url;
try {
url = new URL(urlspec);
if (url.getProtocol().equals("file")) {
// make sure the file is absolute & canonical file url
... | private static URL makeURL(String urlspec) throws MalformedURLException {
urlspec = urlspec.trim();
URL url;
try {
url = new URL(urlspec);
if (url.getProtocol().equals("file")) {
// make sure the file is absolute & canonical file url
... |
package org.jboss.as.testsuite.integration.spec.ear.classpath.ejb;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* Thi... | package org.jboss.as.testsuite.integration.spec.ear.classpath.ejb;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* Thi... |
package org.jboss.as.testsuite.integration.spec.ejb3;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free sof... | package org.jboss.as.testsuite.integration.spec.ejb3;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free sof... |
package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... | package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... |
package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... | package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... |
package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... | package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... |
package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... | package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... |
package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... | package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... |
package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... | package org.jboss.as.testsuite.integration.spec.ejb3.beanclass.validity;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... |
package org.jboss.as.testsuite.integration.spec.ejb3.common;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This ... | package org.jboss.as.testsuite.integration.spec.ejb3.common;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This ... |
package org.jboss.as.testsuite.integration.spec.ejb3.exception;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* Th... | package org.jboss.as.testsuite.integration.spec.ejb3.exception;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* Th... |
package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... | package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... |
package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... | package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... |
package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... | package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... |
package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... | package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... |
package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... | package org.jboss.as.testsuite.integration.spec.ejb3.packaging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This i... |
package org.jboss.as.testsuite.integration.spec.ejb3.security;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* Thi... | package org.jboss.as.testsuite.integration.spec.ejb3.security;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* Thi... |
package org.jboss.as.testsuite.integration.spec.ejb3.security;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* Thi... | package org.jboss.as.testsuite.integration.spec.ejb3.security;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* Thi... |
package org.jboss.as.testsuite.integration.spec.ejb3.security.lifecycle;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... | package org.jboss.as.testsuite.integration.spec.ejb3.security.lifecycle;
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... |
package org.jboss.as.testsuite.integration.spec.ejb3.stateful;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is... | package org.jboss.as.testsuite.integration.spec.ejb3.stateful;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is... |
package org.jboss.as.testsuite.integration.spec.injection;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is fre... | package org.jboss.as.testsuite.integration.spec.injection;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is fre... |
private void registerTransformers(SubsystemRegistration subsystemRegistration) {
ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance();
ResourceTransformationDescriptionBuilder securityDomain = builder.addChildResource(SECURITY_DOMAIN_P... | private void registerTransformers(SubsystemRegistration subsystemRegistration) {
ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance();
ResourceTransformationDescriptionBuilder securityDomain = builder.addChildResource(SECURITY_DOMAIN_P... |
private TypeDescriptor getElementType(Collection collection) {
for (Object element : collection) {
if (element != null) {
return TypeDescriptor.valueOf(element.getClass());
}
}
return null;
}
| private TypeDescriptor getElementType(Collection collection) {
for (Object element : collection) {
if (element != null) {
return TypeDescriptor.valueOf(element.getClass());
}
}
return TypeDescriptor.NULL;
}
|
public Object extract(Object target, Method method, Object... params) {
if (params.length == 1) {
return (params[0] == null ? NULL_PARAM_KEY : params[0]);
}
if (params.length == 0) {
return NO_PARAM_KEY;
}
int hashCode = 17;
for (Object object : params) {
hashCode = 31 * hashCode + (object == null... | public Object generate(Object target, Method method, Object... params) {
if (params.length == 1) {
return (params[0] == null ? NULL_PARAM_KEY : params[0]);
}
if (params.length == 0) {
return NO_PARAM_KEY;
}
int hashCode = 17;
for (Object object : params) {
hashCode = 31 * hashCode + (object == nul... |
public static final AttributeDefinition SESSION_COOKIE_NAMES = new SimpleAttributeDefinitionBuilder(Constants.SESSION_COOKIE_NAMES, ModelType.STRING)
.setAllowNull(false)
.setAllowExpression(true)
| public static final AttributeDefinition SESSION_COOKIE_NAMES = new SimpleAttributeDefinitionBuilder(Constants.SESSION_COOKIE_NAMES, ModelType.STRING)
.setAllowNull(true)
.setAllowExpression(true)
|
String startLevelServiceNotAvailable();
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... | String startLevelServiceNotAvailable();
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... |
public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
node.get(ModelDescriptionConstants.OPERATION_NAME).set(ModelDescriptionConstants.REMOVE);
node.get(ModelDescriptionConstants.DESCRIPTION).set(OSGiSubsystemProviders.getResourceBundle(local... | public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
node.get(ModelDescriptionConstants.OPERATION_NAME).set(ModelDescriptionConstants.REMOVE);
node.get(ModelDescriptionConstants.DESCRIPTION).set(OSGiDescriptionProviders.getResourceBundle(loc... |
public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
ResourceBundle resbundle = OSGiSubsystemProviders.getResourceBundle(locale);
node.get(ModelDescriptionConstants.OPERATION_NAME).set(ModelDescriptionConstants.ADD);
node.get(Mod... | public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
ResourceBundle resbundle = OSGiDescriptionProviders.getResourceBundle(locale);
node.get(ModelDescriptionConstants.OPERATION_NAME).set(ModelDescriptionConstants.ADD);
node.get(M... |
public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
node.get(ModelDescriptionConstants.OPERATION_NAME).set(ModelDescriptionConstants.REMOVE);
node.get(ModelDescriptionConstants.DESCRIPTION).set(OSGiSubsystemProviders.getResourceBundle(local... | public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
node.get(ModelDescriptionConstants.OPERATION_NAME).set(ModelDescriptionConstants.REMOVE);
node.get(ModelDescriptionConstants.DESCRIPTION).set(OSGiDescriptionProviders.getResourceBundle(loc... |
public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
ResourceBundle resbundle = OSGiSubsystemProviders.getResourceBundle(locale);
node.get(ModelDescriptionConstants.OPERATION_NAME).set(ModelDescriptionConstants.WRITE_ATTRIBUTE_OPERATION);
... | public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
ResourceBundle resbundle = OSGiDescriptionProviders.getResourceBundle(locale);
node.get(ModelDescriptionConstants.OPERATION_NAME).set(ModelDescriptionConstants.WRITE_ATTRIBUTE_OPERATION);
... |
public RealPointValuePair doOptimize() throws OptimizationException {
final SimplexTableau tableau =
new SimplexTableau(function, linearConstraints, goal, nonNegative, epsilon);
solvePhase1(tableau);
tableau.discardArtificialVariables();
while (!tableau.isOptimal()) {
... | public RealPointValuePair doOptimize() throws OptimizationException {
final SimplexTableau tableau =
new SimplexTableau(function, linearConstraints, goal, nonNegative, epsilon);
solvePhase1(tableau);
tableau.dropPhase1Objective();
while (!tableau.isOptimal()) {
... |
public void initialize(ExtensionContext context) {
XtsAsLogger.ROOT_LOGGER.debug("Initializing XTS Extension");
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 0);
final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(XTSSub... | public void initialize(ExtensionContext context) {
XtsAsLogger.ROOT_LOGGER.debug("Initializing XTS Extension");
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, 1, 1);
final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(XTSSub... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validate(operation);
Subject subject = SecurityContext.getSubject();
if (subject == null) {
throw new OperationFailedException(new ModelNode().set(MESSAGES.noSecurityCo... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validate(operation);
Subject subject = SecurityActions.getSecurityContextSubject();
if (subject == null) {
throw new OperationFailedException(new ModelNode().set(MESSAG... |
public void addTransformer(ClassFileTransformer transformer) {
Assert.notNull(transformer, "ClassFileTransformer must not be null");
try {
OC4JClassPreProcessorAdapter adapter = new OC4JClassPreProcessorAdapter(transformer);
Object adapterInstance = Proxy.newProxyInstance(this.processorClass.getClassLoader()... | public void addTransformer(ClassFileTransformer transformer) {
Assert.notNull(transformer, "ClassFileTransformer must not be null");
try {
OC4JClassPreprocessorAdapter adapter = new OC4JClassPreprocessorAdapter(transformer);
Object adapterInstance = Proxy.newProxyInstance(this.processorClass.getClassLoader()... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
DeploymentUnit current = deploymentUnit;
final List<PropertyResolver> propertyResolvers = new ArrayList<PropertyResolver... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
DeploymentUnit current = deploymentUnit;
final List<PropertyResolver> propertyResolvers = new ArrayList<PropertyResolver... |
public int compare(KeyValue left, KeyValue right) {
return left.key.compareToIgnoreCase(right.key);
}
};
/**
* Get the short and long values displayed for a field
* @param field The field of interest
* @return A sorted array of the field key / value pairs
... | public int compare(KeyValue left, KeyValue right) {
return left.key.compareToIgnoreCase(right.key);
}
};
/**
* Get the short and long values displayed for a field
* @param field The field of interest
* @return A sorted array of the field key / value pairs
... |
public MutablePropertyValues() {
this.propertyValueList = new ArrayList<PropertyValue>();
}
| public MutablePropertyValues() {
this.propertyValueList = new ArrayList<PropertyValue>(0);
}
|
private final Map<String, AutowireCandidateQualifier> qualifiers =
new LinkedHashMap<String, AutowireCandidateQualifier>();
| private final Map<String, AutowireCandidateQualifier> qualifiers =
new LinkedHashMap<String, AutowireCandidateQualifier>(0);
|
public void enhanceConfigurationClasses(ConfigurableListableBeanFactory beanFactory) {
Map<String, AbstractBeanDefinition> configBeanDefs = new LinkedHashMap<String, AbstractBeanDefinition>();
for (String beanName : beanFactory.getBeanDefinitionNames()) {
BeanDefinition beanDef = beanFactory.getBeanDefinition(b... | public void enhanceConfigurationClasses(ConfigurableListableBeanFactory beanFactory) {
Map<String, AbstractBeanDefinition> configBeanDefs = new LinkedHashMap<String, AbstractBeanDefinition>();
for (String beanName : beanFactory.getBeanDefinitionNames()) {
BeanDefinition beanDef = beanFactory.getBeanDefinition(b... |
package test.mixin;
/*
* Copyright 2002-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | package test.mixin;
/*
* Copyright 2002-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
package test.util;
/*
* Copyright 2002-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | package test.util;
/*
* Copyright 2002-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
@Message(value = "Deployment %s contains CDI annotations but no bean archive was found (no beans.xml or class with bean defining annotations).", id = 16012)
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyrigh... | @Message(value = "Deployment %s contains CDI annotations but no bean archive was found (no beans.xml or class with bean defining annotations).", id = 16012)
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyrigh... |
package org.jboss.as.appclient.logging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... | package org.jboss.as.appclient.logging;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... |
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
ParseUtils.requireNoAttributes(reader);
ParseUtils.requireNoContent(reader);
final ModelNode subsystem = new ModelNode();
subsystem.get(OP).set(ADD);
... | public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
ParseUtils.requireNoAttributes(reader);
ParseUtils.requireNoContent(reader);
final ModelNode subsystem = new ModelNode();
subsystem.get(OP).set(ADD);
... |
public Cancellable execute(NewOperationContext context, ModelNode operation, ResultHandler resultHandler) {
// Initialize the scanner
context.getSubModel().get(CommonAttributes.DEPLOYMENT_SCANNER);
final ModelNode compensatingOperation = new ModelNode();
compensatingOperation.get(O... | public Cancellable execute(NewOperationContext context, ModelNode operation, ResultHandler resultHandler) {
// Initialize the scanner
context.getSubModel().get(CommonAttributes.DEPLOYMENT_SCANNER).setEmptyObject();
final ModelNode compensatingOperation = new ModelNode();
compensati... |
public Cancellable execute(final NewOperationContext context, final ModelNode operation, final ResultHandler resultHandler) {
final String handlerType = operation.require(HANDLER_TYPE).asString();
final LoggerHandlerType type = LoggerHandlerType.valueOf(handlerType);
switch(type) {
... | public Cancellable execute(final NewOperationContext context, final ModelNode operation, final ResultHandler resultHandler) {
final String handlerType = operation.require(HANDLER_TYPE).asString();
final LoggerHandlerType type = LoggerHandlerType.valueOf(handlerType);
switch(type) {
... |
public Cancellable execute(final NewOperationContext context, final ModelNode operation, final ResultHandler resultHandler) {
final ModelNode address = operation.get(OP_ADDR);
final String name = address.get(address.asInt() - 1).asString();
final ModelNode subModel = context.getSubModel();... | public Cancellable execute(final NewOperationContext context, final ModelNode operation, final ResultHandler resultHandler) {
final ModelNode address = operation.get(OP_ADDR);
final String name = address.get(address.asInt() - 1).asProperty().getValue().asString();
final ModelNode subModel ... |
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
ParseUtils.requireNoAttributes(reader);
ParseUtils.requireNoContent(reader);
final ModelNode subsystem = new ModelNode();
subsystem.get(OP).set(ADD);
... | public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
ParseUtils.requireNoAttributes(reader);
ParseUtils.requireNoContent(reader);
final ModelNode subsystem = new ModelNode();
subsystem.get(OP).set(ADD);
... |
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
// Require no content
ParseUtils.requireNoContent(reader);
final ModelNode subsystem = new ModelNode();
subsystem.get(OP).set(ADD);
subsystem.get... | public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
// Require no content
ParseUtils.requireNoContent(reader);
final ModelNode subsystem = new ModelNode();
subsystem.get(OP).set(ADD);
subsystem.get... |
public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException {
//TODO implement validateResolvedParameter
throw new UnsupportedOperationException();
}
});
static SimpleAttributeDefinition DATASOURCE_DRIVER = new SimpleAttri... | public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException {
//TODO implement validateResolvedParameter
throw new UnsupportedOperationException();
}
});
static SimpleAttributeDefinition DATASOURCE_DRIVER = new SimpleAttri... |
public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription viewDescription, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException {
if (componentConfiguration.getComponentDescription() instanceof EJBComponentDescription == fal... | public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription viewDescription, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException {
if (componentConfiguration.getComponentDescription() instanceof EJBComponentDescription == fal... |
public void testBOM() throws IOException {
final URL url = ClassLoader.getSystemClassLoader().getResource("CSVFileParser/bom.csv");
final CSVParser parser = CSVParser.parse(url, null, CSVFormat.EXCEL.withHeader());
try {
for (final CSVRecord record : parser) {
fin... | public void testBOM() throws IOException {
final URL url = ClassLoader.getSystemClassLoader().getResource("CSVFileParser/bom.csv");
final CSVParser parser = CSVParser.parse(url, Charset.forName("UTF-8"), CSVFormat.EXCEL.withHeader());
try {
for (final CSVRecord record : parser) {... |
private void handleMessage(final Message<?> message, Map<MappingInfo, HandlerMethod> handlerMethods) {
PubSubHeaders headers = new PubSubHeaders(message.getHeaders(), true);
String destination = headers.getDestination();
HandlerMethod match = getHandlerMethod(destination, handlerMethods);
if (match == null) ... | private void handleMessage(final Message<?> message, Map<MappingInfo, HandlerMethod> handlerMethods) {
PubSubHeaders headers = PubSubHeaders.fromMessageHeaders(message.getHeaders());
String destination = headers.getDestination();
HandlerMethod match = getHandlerMethod(destination, handlerMethods);
if (match ... |
public void run() {
while(!closing) {
long flushCheckTime = flushCheckTimer.get();
long now = System.currentTimeMillis();
if (now > flushCheckTime) {
Channel channel = channelRef.get();
... | public void run() {
if(!closing) {
long flushCheckTime = flushCheckTimer.get();
long now = System.currentTimeMillis();
if (now > flushCheckTime) {
Channel channel = channelRef.get();
... |
public void testParseSubsystem() throws Exception {
// Parse the subsystem xml into operations
List<ModelNode> operations = super.parse(getSubsystemXml());
/*
// print the operations
System.out.println("List of operations");
for (ModelNode op : operations) {
Sys... | public void testParseSubsystem() throws Exception {
// Parse the subsystem xml into operations
List<ModelNode> operations = super.parse(getSubsystemXml());
/*
// print the operations
System.out.println("List of operations");
for (ModelNode op : operations) {
Sys... |
private void testUnarchive(StreamWrapper wrapper) throws Exception {
final File input = getFile("bla.tar.Z");
final File output = new File(dir, "bla.tar");
final InputStream is = new FileInputStream(input);
try {
final InputStream in = wrapper.wrap(is);
FileOu... | private void testUnarchive(StreamWrapper<CompressorInputStream> wrapper) throws Exception {
final File input = getFile("bla.tar.Z");
final File output = new File(dir, "bla.tar");
final InputStream is = new FileInputStream(input);
try {
final InputStream in = wrapper.wrap(... |
public SimpleNode readObject(ObjectInput input) throws IOException, ClassNotFoundException {
String name = input.readUTF();
byte[] address = new byte[input.readInt()];
input.readFully(address);
int port = input.readInt();
return new SimpleNode(name, new InetSocketAddress(Inet... | public SimpleNode readObject(ObjectInput input) throws IOException {
String name = input.readUTF();
byte[] address = new byte[input.readInt()];
input.readFully(address);
int port = input.readInt();
return new SimpleNode(name, new InetSocketAddress(InetAddress.getByAddress(add... |
public Buffer objectToBuffer(Object object) throws Exception {
try (ByteArrayOutputStream output = new ByteArrayOutputStream()) {
output.write(currentVersion);
try (Marshaller marshaller = this.context.createMarshaller(this.currentVersion)) {
marshaller.start(Marshall... | public Buffer objectToBuffer(Object object) throws Exception {
try (ByteArrayOutputStream output = new ByteArrayOutputStream()) {
output.write(this.currentVersion);
try (Marshaller marshaller = this.context.createMarshaller(this.currentVersion)) {
marshaller.start(Mar... |
public String execute(Node node) {
System.out.println("Executing command on " + node);
return node.getName();
}
| public String execute(Node node) {
System.out.println(String.format("Command.execute(%s)", node));
return node.getName();
}
|
protected void validateXml(String configId, String original, String marshalled) throws Exception {
//TODO remove this method so we get validation.
//The problem is that the parser goes via MailSessionConfig, so this:
// <mail-session jndi-name="java:/Mail\">
//gets marshalled as
... | protected void compareXml(String configId, String original, String marshalled) throws Exception {
//TODO remove this method so we get validation.
//The problem is that the parser goes via MailSessionConfig, so this:
// <mail-session jndi-name="java:/Mail\">
//gets marshalled as
... |
public void initialize(ExtensionContext context) {
// IMPORTANT: Management API version != xsd version! Not all Management API changes result in XSD changes
SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION,
MANAGEMENT_API_MINOR_... | public void initialize(ExtensionContext context) {
// IMPORTANT: Management API version != xsd version! Not all Management API changes result in XSD changes
SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION,
MANAGEMENT_API_MINOR_... |
public KafkaBolt<K,V> withTopicSelector(KafkaTopicSelector selector) {
this.topicSelector = topicSelector;
return this;
}
| public KafkaBolt<K,V> withTopicSelector(KafkaTopicSelector selector) {
this.topicSelector = selector;
return this;
}
|
protected void execute(DeploymentProcessorTarget processorTarget) {
processorTarget.addDeploymentProcessor(XTSExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_XTS_COMPONENT_INTERCEPTORS, new XTSInterceptorDeploymentProcessor());
processorTarget.addDeploymentProcessor(XTSExt... | protected void execute(DeploymentProcessorTarget processorTarget) {
processorTarget.addDeploymentProcessor(XTSExtension.SUBSYSTEM_NAME, Phase.PARSE, Phase.PARSE_XTS_COMPONENT_INTERCEPTORS, new XTSInterceptorDeploymentProcessor());
processorTarget.addDeploymentProcessor(XTSExt... |
public CSVLexer(final CSVFormat format, final ExtendedBufferedReader in) {
super(format, in);
}
/**
* Returns the next token.
* <p/>
* A token corresponds to a term, a record change or an end-of-file indicator.
*
* @param token
* an existing Token object to ... | public CSVLexer(final CSVFormat format, final ExtendedBufferedReader in) {
super(format, in);
}
/**
* Returns the next token.
* <p/>
* A token corresponds to a term, a record change or an end-of-file indicator.
*
* @param token
* an existing Token object to ... |
public void testPreconditions() throws MathException {
double[] xval = new double[] {3, 4, 5, 6.5};
double[] yval = new double[] {-4, -3, -1, 2.5};
double[][] zval = new double[xval.length][yval.length];
BivariateRealGridInterpolator interpolator = new SmoothingBicubicSplineInterpol... | public void testPreconditions() throws MathException {
double[] xval = new double[] {3, 4, 5, 6.5};
double[] yval = new double[] {-4, -3, -1, 2.5};
double[][] zval = new double[xval.length][yval.length];
BivariateRealGridInterpolator interpolator = new SmoothingBicubicSplineInterpol... |
public String rawElementText(XMLStreamReader reader) throws XMLStreamException {
String elementtext = reader.getElementText();
elementtext = elementtext == null ? null : elementtext.trim();
return elementtext;
}
| public String rawElementText(XMLStreamReader reader) throws XMLStreamException {
String elementtext = reader.getElementText();
elementtext = elementtext == null || elementtext.trim().length() == 0 ? null : elementtext.trim();
return elementtext;
}
|
public MissingServletRequestPartException(String partName) {
super("Request part '" + partName + "' not found.");
this.partName = partName;
}
| public MissingServletRequestPartException(String partName) {
super("Required request part '" + partName + "' is not present.");
this.partName = partName;
}
|
public static final String DEFAULT_DATABASE_NAME = "testdb";
private static Log logger = LogFactory.getLog(EmbeddedDatabaseFactory.class);
| public static final String DEFAULT_DATABASE_NAME = "testdb";
private static final Log logger = LogFactory.getLog(EmbeddedDatabaseFactory.class);
|
public TypedValue operate(Operation op, Object left, Object right) throws EvaluationException {
OperatorOverloader overloader = this.relatedContext.getOperatorOverloader();
if (overloader.overridesOperation(op, left, right)) {
Object returnValue = overloader.operate(op, left, right);
return new TypedValue(re... | public TypedValue operate(Operation op, Object left, Object right) throws EvaluationException {
OperatorOverloader overloader = this.relatedContext.getOperatorOverloader();
if (overloader.overridesOperation(op, left, right)) {
Object returnValue = overloader.operate(op, left, right);
return new TypedValue(re... |
public void testNonExistentType() {
evaluateAndCheckError("new FooBar()",SpelMessages.CONSTRUCTOR_INVOCATION_PROBLEM);
}
| public void testNonExistentType() {
evaluateAndCheckError("new FooBar()",SpelMessage.CONSTRUCTOR_INVOCATION_PROBLEM);
}
|
public void testConvertArguments2() throws EvaluationException {
StandardTypeConverter tc = new StandardTypeConverter();
// Simple conversion: int to string
Object[] args = new Object[]{3};
ReflectionHelper.convertAllArguments(new Class[]{String.class}, false, tc, args);
checkArguments(args,"3");
// vara... | public void testConvertArguments2() throws EvaluationException {
StandardTypeConverter tc = new StandardTypeConverter();
// Simple conversion: int to string
Object[] args = new Object[]{3};
ReflectionHelper.convertAllArguments(new Class[]{String.class}, false, tc, args);
checkArguments(args,"3");
// vara... |
public void testSimpleOperations() throws Exception {
// no built in support for this:
evaluateAndCheckError("'abc'+true",SpelMessages.OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES);
| public void testSimpleOperations() throws Exception {
// no built in support for this:
evaluateAndCheckError("'abc'+true",SpelMessage.OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES);
|
public void testSetElementOfNull() {
setValueExpectError("new org.springframework.expression.spel.testresources.Inventor().inventions[1]",SpelMessages.CANNOT_INDEX_INTO_NULL_VALUE);
}
| public void testSetElementOfNull() {
setValueExpectError("new org.springframework.expression.spel.testresources.Inventor().inventions[1]",SpelMessage.CANNOT_INDEX_INTO_NULL_VALUE);
}
|
public void testImports() throws EvaluationException {
StandardTypeLocator locator = new StandardTypeLocator();
Assert.assertEquals(Integer.class,locator.findType("java.lang.Integer"));
Assert.assertEquals(String.class,locator.findType("java.lang.String"));
List<String> prefixes = locator.getImportPrefixes(... | public void testImports() throws EvaluationException {
StandardTypeLocator locator = new StandardTypeLocator();
Assert.assertEquals(Integer.class,locator.findType("java.lang.Integer"));
Assert.assertEquals(String.class,locator.findType("java.lang.String"));
List<String> prefixes = locator.getImportPrefixes(... |
public void SPR11142() throws Exception {
SpelExpressionParser parser = new SpelExpressionParser();
StandardEvaluationContext context = new StandardEvaluationContext();
SPR11142 rootObject = new SPR11142();
Expression expression = parser.parseExpression("something");
thrown.expect(SpelEvaluationException.cla... | public void SPR11142() throws Exception {
SpelExpressionParser parser = new SpelExpressionParser();
StandardEvaluationContext context = new StandardEvaluationContext();
SPR11142 rootObject = new SPR11142();
Expression expression = parser.parseExpression("something");
thrown.expect(SpelEvaluationException.cla... |
private int readArgumentIndex(String pattern, ParsePosition pos) {
int start = pos.getIndex();
seekNonWs(pattern, pos);
StringBuffer result = new StringBuffer();
boolean error = false;
for (; !error && pos.getIndex() < pattern.length(); next(pos)) {
char c = patte... | private int readArgumentIndex(String pattern, ParsePosition pos) {
int start = pos.getIndex();
seekNonWs(pattern, pos);
StringBuilder result = new StringBuilder();
boolean error = false;
for (; !error && pos.getIndex() < pattern.length(); next(pos)) {
char c = pat... |
private void parseServersAttributes(final XMLExtendedStreamReader reader, final ModelNode parentAddress, final List<ModelNode> list) throws XMLStreamException {
// Handle attributes
final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value... | private void parseServersAttributes(final XMLExtendedStreamReader reader, final ModelNode parentAddress, final List<ModelNode> list) throws XMLStreamException {
// Handle attributes
final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value... |
protected void unregisterListener(AbstractListenerService<?> listener) {
listeners.add(listener);
if (listener.isSecure()) {
servletContainer.getValue().unregisterSecurePort(listener.getName());
}
}
| protected void unregisterListener(AbstractListenerService<?> listener) {
listeners.remove(listener);
if (listener.isSecure()) {
servletContainer.getValue().unregisterSecurePort(listener.getName());
}
}
|
public List<InputStream> getInputStreams() {
int count = context.getAttachmentStreamCount();
List<InputStream> result = new ArrayList<InputStream>(count);
for (int i = 0; i < count; i++) {
result.add(context.getAttachmentStream(count));
}
... | public List<InputStream> getInputStreams() {
int count = context.getAttachmentStreamCount();
List<InputStream> result = new ArrayList<InputStream>(count);
for (int i = 0; i < count; i++) {
result.add(context.getAttachmentStream(i));
}
r... |
public WeldDeployment(Set<BeanDeploymentArchiveImpl> beanDeploymentArchives, BeanDeploymentArchiveImpl rootBda,
Set<Metadata<Extension>> extensions,
Module module) {
this.additionalBeanDeploymentArchive = new BeanDeploymentArchiveImpl(Collections.<String> emptySet(),
... | public WeldDeployment(Set<BeanDeploymentArchiveImpl> beanDeploymentArchives, BeanDeploymentArchiveImpl rootBda,
Set<Metadata<Extension>> extensions,
Module module) {
this.additionalBeanDeploymentArchive = new BeanDeploymentArchiveImpl(Collections.<String> emptySet(),
... |
public void testUpdate() {
final FeatureInitializer init
= new OffsetFeatureInitializer(FeatureInitializerFactory.uniform(0, 0.1));
final FeatureInitializer[] initArray = { init };
final int netSize = 3;
final Network net = new NeuronString(netSize, false, initArray).get... | public void testUpdate() {
final FeatureInitializer init
= new OffsetFeatureInitializer(FeatureInitializerFactory.uniform(0, 0.1));
final FeatureInitializer[] initArray = { init };
final int netSize = 3;
final Network net = new NeuronString(netSize, false, initArray).get... |
public void testHighDegreeLegendre() {
PolynomialsUtils.createLegendrePolynomial(40);
double[] l40 = PolynomialsUtils.createLegendrePolynomial(40).getCoefficients();
double denominator = 274877906944.0;
double[] numerators = new double[] {
+34461632205.0, ... | public void testHighDegreeLegendre() {
PolynomialsUtils.createLegendrePolynomial(40);
double[] l40 = PolynomialsUtils.createLegendrePolynomial(40).getCoefficients();
double denominator = 274877906944.0;
double[] numerators = new double[] {
+34461632205.0, ... |
public int read(byte[] b, int off, int len) throws IOException {
return init().read();
}
| public int read(byte[] b, int off, int len) throws IOException {
return init().read(b, off, len);
}
|
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> serviceControllers) throws IllegalArgumentException, OperationFailedException {
int initialMaxSize = FilePassivationStoreResourceDefinition... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> serviceControllers) throws IllegalArgumentException, OperationFailedException {
int initialMaxSize = FilePassivationStoreResourceDefinition... |
public ModelNode fixModel(ModelNode modelNode) {
// Legacy parser stores incorrect type
ModelNode iiopEnabled = modelNode.get("service", "iiop", "enable-by-default");
if (iiopEnabled.getType() == ModelType.STRING) {
iiopEnabled.set(iiopEnabled.asBoolean());
... | public ModelNode fixModel(ModelNode modelNode) {
// Legacy parser stores incorrect type
ModelNode iiopEnabled = modelNode.get("service", "iiop", "enable-by-default");
if (iiopEnabled.getType() == ModelType.STRING) {
iiopEnabled.set(iiopEnabled.asBoolean());
... |
public static Archive createContainer2Deployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
ejbJar.addClasses(ClusteredStatefulNodeNameEcho.class, NonClusteredStatefulNodeNameEcho.class, NodeNameEcho.class, ApplicationSpecificClusterNodeSelector.class)... | public static Archive createContainer2Deployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
ejbJar.addClasses(ClusteredStatefulNodeNameEcho.class, CustomDeploymentNodeSelector.class, NonClusteredStatefulNodeNameEcho.class, NodeNameEcho.class, Applicati... |
public HttpsListenerService(final String name, String serverName, OptionMap listenerOptions) {
super(name, serverName, listenerOptions, false);
}
| public HttpsListenerService(final String name, String serverName, OptionMap listenerOptions) {
super(name, serverName, listenerOptions, false, -1);
}
|
private ModelNode executeOp(ModelNode op, boolean expectFailure) throws IOException {
ModelNode response = client.execute(op);
if (expectFailure) {
Assert.assertEquals(FAILED, response.get(OUTCOME).asString());
return response.get(FAILURE_DESCRIPTION);
} else {
... | private ModelNode executeOp(ModelNode op, boolean expectFailure) throws IOException {
ModelNode response = client.execute(op);
if (expectFailure) {
Assert.assertEquals(FAILED, response.get(OUTCOME).asString());
return response.get(FAILURE_DESCRIPTION);
} else {
... |
public void testGetModelDescription() throws Exception {
ModelNode operation = createOperation(READ_RESOURCE_DESCRIPTION_OPERATION, "profile", "test");
operation.get(RECURSIVE).set(true);
operation.get(OPERATIONS).set(true);
ModelNode result = executeForResult(operation);
Mo... | public void testGetModelDescription() throws Exception {
ModelNode operation = createOperation(READ_RESOURCE_DESCRIPTION_OPERATION, "profile", "test");
operation.get(RECURSIVE).set(true);
operation.get(OPERATIONS).set(true);
ModelNode result = executeForResult(operation);
Mo... |
public void tearDown() {
recursiveDelete(tempDir);
// reset the module.path sys prop
if (storedModulesPath != null) {
System.setProperty("module.path", storedModulesPath);
}
}
PatchingResult executePatch(final PatchInfo info, final File file) throws FileNotFoundE... | public void tearDown() {
recursiveDelete(tempDir);
// reset the module.path sys prop
if (storedModulesPath != null) {
System.setProperty("module.path", storedModulesPath);
}
}
PatchingResult executePatch(final PatchInfo info, final File file) throws FileNotFoundE... |
public static Map findAndReadConfigFile(String name, boolean mustExist) {
InputStream is = Object.class.getResourceAsStream("/" + name);
if(is==null) {
if(mustExist) throw new RuntimeException("Could not find config file on classpath " + name);
else return new HashMap();
... | public static Map findAndReadConfigFile(String name, boolean mustExist) {
InputStream is = Utils.class.getResourceAsStream("/" + name);
if(is==null) {
if(mustExist) throw new RuntimeException("Could not find config file on classpath " + name);
else return new HashMap();
... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
//Persistent is hidden from CLI users so let's set this to true here if it is not defined
if (!operation.hasDefined(PERSISTENT.getName())) {
operation.get(PERSISTENT.getName()).set(true)... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
//Persistent is hidden from CLI users so let's set this to true here if it is not defined
if (!operation.hasDefined(PERSISTENT.getName())) {
operation.get(PERSISTENT.getName()).set(true)... |
@Message(id = 10310, value = "Could not resolve destination address for outbound socket binding named '%s'")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full lis... | @Message(id = 10310, value = "Could not resolve destination address for outbound socket binding named '%s'")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full lis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.