buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ResourceRoot resourceRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT);
final VirtualFile deploymentRoot = resourceRoot.getRoot();
if (deploymentRoot == ... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ResourceRoot resourceRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT);
final VirtualFile deploymentRoot = resourceRoot.getRoot();
if (deploymentRoot == ... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ConnectorXmlDescriptor connectorXmlDescriptor = deploymentUnit.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ConnectorXmlDescriptor connectorXmlDescriptor = deploymentUnit.getAttachment(ConnectorXmlDescriptor.ATTACHMENT_KEY);
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final VirtualFile deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();
if(deploymentRoot == null || !deploymentRoot.exists())
return;
... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final VirtualFile deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();
if(deploymentRoot == null || !deploymentRoot.exists())
return;
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
final ServiceName moduleContextServiceName = ... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
final ServiceName moduleContextServiceName = ... |
public void testSimpleTypeExpressionList() throws Exception {
ModelNode description = createDescription(ModelType.LIST, ModelType.INT);
description.get(EXPRESSIONS_ALLOWED).set(true);
TypeConverter converter = getConverter(description);
ArrayType<?> arrayType = assertCast(ArrayType.c... | public void testSimpleTypeExpressionList() throws Exception {
ModelNode description = createDescription(ModelType.LIST, ModelType.INT);
description.get(EXPRESSIONS_ALLOWED).set(true);
TypeConverter converter = getConverter(description);
assertCast(ArrayType.class, converter.getOpenTy... |
private static void setNull(PreparedStatement ps, int paramIndex, int sqlType, String typeName)
throws SQLException {
if (sqlType == SqlTypeValue.TYPE_UNKNOWN) {
boolean useSetObject = false;
sqlType = Types.NULL;
try {
DatabaseMetaData dbmd = ps.getConnection().getMetaData();
String databasePro... | private static void setNull(PreparedStatement ps, int paramIndex, int sqlType, String typeName)
throws SQLException {
if (sqlType == SqlTypeValue.TYPE_UNKNOWN) {
boolean useSetObject = false;
sqlType = Types.NULL;
try {
DatabaseMetaData dbmd = ps.getConnection().getMetaData();
String databasePro... |
String VIRTUAL_HOST = "virtualhost";
/*
* 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 re... | String VIRTUAL_HOST = "virtualhost";
/*
* 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 re... |
public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(Namespace.CURRENT.getUriString(), false);
ModelNode node = context.getModelNode();
WebDefinition.DEFAULT_VIRTUAL_SERVER.marshallAsAttribut... | public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(Namespace.CURRENT.getUriString(), false);
ModelNode node = context.getModelNode();
WebDefinition.DEFAULT_VIRTUAL_SERVER.marshallAsAttribut... |
private static ModelNode convertSecurityRole(final ModelNode camelCase) {
final ModelNode result = new ModelNode();
result.setEmptyList();
if (camelCase.isDefined()) {
for (ModelNode role : camelCase.asList()) {
final ModelNode roleNode = result.add();
... | private ManagementUtil() {
}
/**
* Utility for converting camel case based HQ formats to AS standards.
*/
static ModelNode convertSecurityRole(final ModelNode camelCase) {
final ModelNode result = new ModelNode();
result.setEmptyList();
if (camelCase.isDefined()) {
... |
public void activate(final BootOperationContext updateContext) {
updateContext.addDeploymentProcessor(Phase.STRUCTURE, Phase.STRUCTURE_OSGI_MANIFEST, new OSGiManifestStructureProcessor());
updateContext.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_OSGI_BUNDLE_INFO, new OSGiBundleInfoParseProcesso... | public void activate(final BootOperationContext updateContext) {
updateContext.addDeploymentProcessor(Phase.STRUCTURE, Phase.STRUCTURE_OSGI_MANIFEST, new OSGiManifestStructureProcessor());
updateContext.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_OSGI_BUNDLE_INFO, new OSGiBundleInfoParseProcesso... |
public synchronized void stop(StopContext context) {
final JMSServerManager jmsManager = jmsServer.getValue();
try {
jmsManager.destroyQueue(queueName);
} catch (Exception e) {
MESSAGING_LOGGER.failedToDestroy(e, "queue", queueName);
}
}
| public synchronized void stop(StopContext context) {
final JMSServerManager jmsManager = jmsServer.getValue();
try {
jmsManager.removeQueueFromJNDI(queueName);
} catch (Exception e) {
MESSAGING_LOGGER.failedToDestroy(e, "queue", queueName);
}
}
|
public synchronized void stop(StopContext context) {
final JMSServerManager jmsManager = jmsServer.getValue();
try {
jmsManager.destroyTopic(name);
} catch (Exception e) {
MESSAGING_LOGGER.failedToDestroy(e, "jms topic", name);
}
}
| public synchronized void stop(StopContext context) {
final JMSServerManager jmsManager = jmsServer.getValue();
try {
jmsManager.removeTopicFromJNDI(name);
} catch (Exception e) {
MESSAGING_LOGGER.failedToDestroy(e, "jms topic", name);
}
}
|
public void testSinMinWithValueChecker() {
final UnivariateFunction f = new SinFunction();
final ConvergenceChecker checker = new SimpleUnivariateValueChecker(1e-5, 1e-14);
// The default stopping criterion of Brent's algorithm should not
// pass, but the search will stop at the give... | public void testSinMinWithValueChecker() {
final UnivariateFunction f = new SinFunction();
final ConvergenceChecker<UnivariatePointValuePair> checker = new SimpleUnivariateValueChecker(1e-5, 1e-14);
// The default stopping criterion of Brent's algorithm should not
// pass, but the se... |
public OperationResult execute(final OperationContext context, final ModelNode operation, final ResultHandler resultHandler) throws OperationFailedException {
try {
ModelNode compensating = ServerAddHandler.getAddServerOperation(operation.get(OP_ADDR), operation.get(NAME), operation.get(GROUP));... | public OperationResult execute(final OperationContext context, final ModelNode operation, final ResultHandler resultHandler) throws OperationFailedException {
try {
ModelNode compensating = ServerAddHandler.getAddServerOperation(operation.get(OP_ADDR), context.getSubModel());
resultH... |
public void testString() throws Exception {
this.mockServer.expect(requestTo("/person/1"))
.andExpect(header("Accept", "application/json"))
.andRespond(withSuccess(RESPONSE_BODY, MediaType.APPLICATION_JSON));
this.restTemplate.getForObject(new URI("/person/1"), Person.class);
this.mockServer.verify();
}... | public void testString() throws Exception {
this.mockServer.expect(requestTo("/person/1"))
.andExpect(header("Accept", "application/json, application/*+json"))
.andRespond(withSuccess(RESPONSE_BODY, MediaType.APPLICATION_JSON));
this.restTemplate.getForObject(new URI("/person/1"), Person.class);
this.moc... |
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
/*
* Copyright 2002-2014 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... | @Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
/*
* Copyright 2002-2014 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... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) {
return;
}
EEModuleDescription ... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) {
return;
}
EEModuleDescription ... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ServiceName serviceName = deploymentUnit.getServiceName().append(SERVICE_NAME);
final TransactionRollbackSetupActio... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ServiceName serviceName = deploymentUnit.getServiceName().append(SERVICE_NAME);
final TransactionRollbackSetupActio... |
protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit,
final ServiceTarget serviceTarget) throws DeploymentUnitProcessingException {
final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attac... | protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit,
final ServiceTarget serviceTarget) throws DeploymentUnitProcessingException {
final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attac... |
private RequestOptions createRequestOptions() {
return new RequestOptions(ResponseMode.GET_ALL, this.timeout, false, FILTER, Message.Flag.DONT_BUNDLE);
}
| private RequestOptions createRequestOptions() {
return new RequestOptions(ResponseMode.GET_ALL, this.timeout, false, FILTER);
}
|
protected void build(final Deployment dep, final DeploymentUnit unit) {
this.getAndPropagateAttachment(WSAttachmentKeys.WS_ENDPOINTS_KEY, DeploymentJaxws.class, unit, dep);
//this.getAndPropagateAttachment(JBossMetaData.class, unit, dep); // TODO: propagate?
final JBossWebMetaData webMetaDat... | protected void build(final Deployment dep, final DeploymentUnit unit) {
this.getAndPropagateAttachment(WSAttachmentKeys.JAXWS_ENDPOINTS_KEY, DeploymentJaxws.class, unit, dep);
//this.getAndPropagateAttachment(JBossMetaData.class, unit, dep); // TODO: propagate?
final JBossWebMetaData webMeta... |
public WSEndpointDeploymentUnit(ClassLoader loader, String context, Map<String,String> urlPatternToClassName) {
this.deploymentName = context + ".deployment";
JBossWebMetaData jbossWebMetaData = new JBossWebMetaData();
DeploymentJaxws jaxwsDeployment = new DeploymentJaxwsImpl();
jbo... | public WSEndpointDeploymentUnit(ClassLoader loader, String context, Map<String,String> urlPatternToClassName) {
this.deploymentName = context + ".deployment";
JBossWebMetaData jbossWebMetaData = new JBossWebMetaData();
DeploymentJaxws jaxwsDeployment = new DeploymentJaxwsImpl();
jbo... |
public void testDecreasingSteps()
{
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousValueError = Double.NaN;
double previousTimeError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbstract... | public void testDecreasingSteps()
{
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousValueError = Double.NaN;
double previousTimeError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbstract... |
public void testDecreasingSteps()
{
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousValueError = Double.NaN;
double previousTimeError = Double.NaN;
for (int i = 5; i < 10; ++i) {
TestProblemAbstract... | public void testDecreasingSteps()
{
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousValueError = Double.NaN;
double previousTimeError = Double.NaN;
for (int i = 5; i < 10; ++i) {
TestProblemAbstract... |
public void testDecreasingSteps()
{
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousValueError = Double.NaN;
double previousTimeError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbstract... | public void testDecreasingSteps()
{
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousValueError = Double.NaN;
double previousTimeError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbstract... |
public ModelNode getModel() {
return super.getModel();
}
| public ModelNode getModel() {
return super.getModel().clone();
}
|
public HostXml(final ModuleLoader loader, ExecutorService executorService) {
super(loader, executorService);
}
| public HostXml(final ModuleLoader loader, ExecutorService executorService) {
super();
}
|
protected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration) {
ServerControllerModelUtil.updateCoreModel(rootResource.getModel(), configuration.getServerEnvironment());
ServerControllerModelUtil.initOperations(rootRegistration, injectedContentRepository.getValue()... | protected void initModel(Resource rootResource, ManagementResourceRegistration rootRegistration) {
ServerControllerModelUtil.updateCoreModel(rootResource.getModel(), configuration.getServerEnvironment());
ServerControllerModelUtil.initOperations(rootRegistration, injectedContentRepository.getValue()... |
public void testViewResolution() throws Exception {
loadBeanDefinitions("mvc-config-view-resolution.xml", 6);
ViewResolverComposite compositeResolver = this.appContext.getBean(ViewResolverComposite.class);
assertNotNull(compositeResolver);
assertEquals("Actual: " + compositeResolver.getViewResolvers(), 8, com... | public void testViewResolution() throws Exception {
loadBeanDefinitions("mvc-config-view-resolution.xml", 6);
ViewResolverComposite compositeResolver = this.appContext.getBean(ViewResolverComposite.class);
assertNotNull(compositeResolver);
assertEquals("Actual: " + compositeResolver.getViewResolvers(), 8, com... |
public void execute(RuntimeTaskContext context) throws OperationFailedException {
final ConnectionFactoryConfiguration configuration = createConfiguration(name, operation);
final ConnectionFactoryService service = new ConnectionFactoryService(configuration);
... | public void execute(RuntimeTaskContext context) throws OperationFailedException {
final ConnectionFactoryConfiguration configuration = createConfiguration(name, operation);
final ConnectionFactoryService service = new ConnectionFactoryService(configuration);
... |
private static final MarshallingConfiguration CONFIG;
static {
CONFIG = new MarshallingConfiguration();
try {
final ClassLoader cl = Module.getModuleFromDefaultLoader(ModuleIdentifier.create("org.jboss.as.aggregate")).getClassLoader();
CONFIG.setClassResolver(new SimpleCl... | private static final MarshallingConfiguration CONFIG;
static {
CONFIG = new MarshallingConfiguration();
try {
final ClassLoader cl = Module.getModuleFromCurrentLoader(ModuleIdentifier.create("org.jboss.as.aggregate")).getClassLoader();
CONFIG.setClassResolver(new SimpleCl... |
public static void main(String[] args) throws Exception {
String version = System.getProperty("jboss.as.compare.version", null);
String diff = System.getProperty("jboss.as.compare.different.versions", null);
String type = System.getProperty("jboss.as.comare.type", null);
if (versio... | public static void main(String[] args) throws Exception {
String version = System.getProperty("jboss.as.compare.version", null);
String diff = System.getProperty("jboss.as.compare.different.versions", null);
String type = System.getProperty("jboss.as.compare.type", null);
if (versi... |
private void validateDescriptionProviders(TestModelType type, ModelTestKernelServices kernelServices) {
ModelNode op = new ModelNode();
op.get(OP).set("read-resource-description");
op.get(OP_ADDR).setEmptyList();
op.get("recursive").set(true);
op.get("inherited").set(false);
... | private void validateDescriptionProviders(TestModelType type, ModelTestKernelServices kernelServices) {
ModelNode op = new ModelNode();
op.get(OP).set("read-resource-description");
op.get(OP_ADDR).setEmptyList();
op.get("recursive").set(true);
op.get("inherited").set(false);
... |
protected void parseSystemProperties(final XMLExtendedStreamReader reader, final ModelNode address, final Namespace expectedNs,
final List<ModelNode> updates, boolean standalone) throws XMLStreamException {
while (reader.nextTag() != END_ELEMENT) {
requi... | protected void parseSystemProperties(final XMLExtendedStreamReader reader, final ModelNode address, final Namespace expectedNs,
final List<ModelNode> updates, boolean standalone) throws XMLStreamException {
while (reader.nextTag() != END_ELEMENT) {
requi... |
public void rollbackWriteAttribute(final String profileName) throws Exception {
final KernelServices kernelServices = boot();
// Save the current model
final ModelNode validSubsystemModel = getSubsystemModel(kernelServices);
// Add a handler to be removed
final PathAddress ... | public void rollbackWriteAttribute(final String profileName) throws Exception {
final KernelServices kernelServices = boot();
// Save the current model
final ModelNode validSubsystemModel = getSubsystemModel(kernelServices);
// Add a handler to be removed
final PathAddress ... |
private void parseTransport(XMLExtendedStreamReader reader, ModelNode containerAddress, List<ModelNode> operations) throws XMLStreamException {
// ModelNode for the transport add operation
ModelNode transport = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null);
for (int i = 0; i ... | private void parseTransport(XMLExtendedStreamReader reader, ModelNode containerAddress, List<ModelNode> operations) throws XMLStreamException {
// ModelNode for the transport add operation
ModelNode transport = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null);
for (int i = 0; i ... |
private void parseTransport(XMLExtendedStreamReader reader, ModelNode containerAddress, List<ModelNode> operations) throws XMLStreamException {
// ModelNode for the transport add operation
ModelNode transport = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null);
for (int i = 0; i ... | private void parseTransport(XMLExtendedStreamReader reader, ModelNode containerAddress, List<ModelNode> operations) throws XMLStreamException {
// ModelNode for the transport add operation
ModelNode transport = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null);
for (int i = 0; i ... |
public void setPrefixJson(boolean prefixJson) {
this.jsonPrefix = prefixJson ? "{} && " : "";
}
| public void setPrefixJson(boolean prefixJson) {
this.jsonPrefix = prefixJson ? "{} && " : null;
}
|
public BeanFactoryCacheOperationSourceAdvisor cacheAdvisor() {
BeanFactoryCacheOperationSourceAdvisor advisor =
new BeanFactoryCacheOperationSourceAdvisor();
advisor.setCacheOperationSource(cacheOperationSource());
advisor.setAdvice(cacheInterceptor());
advisor.setOrder(this.enableCaching.getInt("order"));
... | public BeanFactoryCacheOperationSourceAdvisor cacheAdvisor() {
BeanFactoryCacheOperationSourceAdvisor advisor =
new BeanFactoryCacheOperationSourceAdvisor();
advisor.setCacheOperationSource(cacheOperationSource());
advisor.setAdvice(cacheInterceptor());
advisor.setOrder(this.enableCaching.<Integer>getNumber... |
public ScopeMetadata resolveScopeMetadata(BeanDefinition definition) {
ScopeMetadata metadata = new ScopeMetadata();
if (definition instanceof AnnotatedBeanDefinition) {
AnnotatedBeanDefinition annDef = (AnnotatedBeanDefinition) definition;
AnnotationAttributes attributes =
attributesFor(annDef.getMetad... | public ScopeMetadata resolveScopeMetadata(BeanDefinition definition) {
ScopeMetadata metadata = new ScopeMetadata();
if (definition instanceof AnnotatedBeanDefinition) {
AnnotatedBeanDefinition annDef = (AnnotatedBeanDefinition) definition;
AnnotationAttributes attributes =
attributesFor(annDef.getMetad... |
public BeanFactoryTransactionAttributeSourceAdvisor transactionAdvisor() {
BeanFactoryTransactionAttributeSourceAdvisor advisor =
new BeanFactoryTransactionAttributeSourceAdvisor();
advisor.setTransactionAttributeSource(transactionAttributeSource());
advisor.setAdvice(transactionInterceptor());
advisor.setO... | public BeanFactoryTransactionAttributeSourceAdvisor transactionAdvisor() {
BeanFactoryTransactionAttributeSourceAdvisor advisor =
new BeanFactoryTransactionAttributeSourceAdvisor();
advisor.setTransactionAttributeSource(transactionAttributeSource());
advisor.setAdvice(transactionInterceptor());
advisor.setO... |
<T> T createBean(Class<T> beanClass) throws BeansException;
/*
* Copyright 2002-2009 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://ww... | <T> T createBean(Class<T> beanClass) throws BeansException;
/*
* Copyright 2002-2009 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://ww... |
protected Map<String, Object> readAttachments(final ObjectInput input) throws IOException, ClassNotFoundException {
final int numAttachments = input.readByte();
if (numAttachments == 0) {
return null;
}
final Map<String, Object> attachments = new HashMap<String, Object>(n... | protected Map<String, Object> readAttachments(final ObjectInput input) throws IOException, ClassNotFoundException {
final int numAttachments = input.readByte();
if (numAttachments == 0) {
return new HashMap<String, Object>();
}
final Map<String, Object> attachments = new ... |
public static <A extends Annotation, T> Set<Method> runtimeAnnotationPresent(final Class<?> componentClass, final EEApplicationClasses applicationClasses, final DeploymentReflectionIndex index, final Class<A> annotationType) {
RuntimeAnnotationInformation<Object> result = runtimeAnnotationInformation(compon... | public static <A extends Annotation, T> Set<Method> runtimeAnnotationPresent(final Class<?> componentClass, final EEApplicationClasses applicationClasses, final DeploymentReflectionIndex index, final Class<A> annotationType) {
RuntimeAnnotationInformation<Object> result = runtimeAnnotationInformation(compon... |
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
final ServiceController<?> configService = context.getServi... | protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
final ServiceController<?> configService = context.getServi... |
public String[] getParameterValues(String paramName) {
return (String[]) getExternalContext().getRequestParameterMap().get(paramName);
}
| public String[] getParameterValues(String paramName) {
return (String[]) getExternalContext().getRequestParameterValuesMap().get(paramName);
}
|
@Message(id = 14840, value = "Operation '%s' targeted at resource '%s' was directly invoked by a user. " +
/*
* 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 listi... | @Message(id = 14840, value = "Operation '%s' targeted at resource '%s' was directly invoked by a user. " +
/*
* 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 listi... |
private volatile ExecutorService executorService;
OperationCoordinatorStepHandler(final LocalHostControllerInfo localHostControllerInfo,
ContentRepository contentRepository,
final Map<String, ProxyController> hostProxies,
... | private volatile ExecutorService executorService;
OperationCoordinatorStepHandler(final LocalHostControllerInfo localHostControllerInfo,
ContentRepository contentRepository,
final Map<String, ProxyController> hostProxies,
... |
public void registerImport(String importPrefix) {
TypeLocator tLocator = typeUtils.getTypeLocator();
if (tLocator instanceof StandardTypeLocator) {
((StandardTypeLocator) tLocator).registerImport(importPrefix);
}
}
public void setClasspath(String classpath) {
StringTokenizer st = new StringTokenizer(clas... | public void registerImport(String importPrefix) {
TypeLocator tLocator = typeUtils.getTypeLocator();
if (tLocator instanceof StandardTypeLocator) {
((StandardTypeLocator) tLocator).registerImport(importPrefix);
}
}
public void setClasspath(String classpath) {
StringTokenizer st = new StringTokenizer(clas... |
private static void createTestClassloader(StandardEvaluationContext testContext) {
try {
ClassLoader cl = new URLClassLoader(new URL[] { new File("target/test-classes/testcode.jar").toURL() },
Thread.currentThread().getContextClassLoader());
testContext.setClassLoader(cl);
} catch (MalformedURLException... | private static void createTestClassloader(StandardEvaluationContext testContext) {
try {
ClassLoader cl = new URLClassLoader(new URL[] { new File("target/test-classes/testcode.jar").toURI().toURL() },
Thread.currentThread().getContextClassLoader());
testContext.setClassLoader(cl);
} catch (MalformedURLE... |
package org.springframework.core.type;
/*
* Copyright 2002-2009 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... | package org.springframework.core.type;
/*
* Copyright 2002-2009 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... |
public ModelNode fixModel(ModelNode modelNode) {
for (ModelFixer fixer : fixers) {
if (fixer != null) {
fixer.fixModel(modelNode);
}
}
return modelNode;
}
| public ModelNode fixModel(ModelNode modelNode) {
for (ModelFixer fixer : fixers) {
if (fixer != null) {
modelNode = fixer.fixModel(modelNode);
}
}
return modelNode;
}
|
private Map<Set<ServerIdentity>, ModelNode> getServerOperations(ModelNode domainOp, PathAddress domainOpAddress, ModelNode domainModel, ModelNode hostModel) {
Map<Set<ServerIdentity>, ModelNode> result = null;
final PathAddress relativeAddress = domainOpAddress.subAddress(originalAddress.size());
... | private Map<Set<ServerIdentity>, ModelNode> getServerOperations(ModelNode domainOp, PathAddress domainOpAddress, ModelNode domainModel, ModelNode hostModel) {
Map<Set<ServerIdentity>, ModelNode> result = null;
final PathAddress relativeAddress = domainOpAddress.subAddress(originalAddress.size());
... |
public static void createValve(ModelControllerClient client, String name, String filename) throws Exception {
List<ModelNode> updates = new ArrayList<ModelNode>();
ModelNode op = new ModelNode();
op.get(OP).set(ADD);
op.get(OP_ADDR).add(SUBSYSTEM, "web");
op.get(OP_ADDR).add... | public static void createValve(ModelControllerClient client, String name, String filename) throws Exception {
List<ModelNode> updates = new ArrayList<ModelNode>();
ModelNode op = new ModelNode();
op.get(OP).set(ADD);
op.get(OP_ADDR).add(SUBSYSTEM, "web");
op.get(OP_ADDR).add... |
public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) {
return true;
}
| public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) {
return this.helperConverter.matches(sourceType, targetType);
}
|
public TypedValue execute(EvaluationContext context, Object... arguments) throws AccessException {
try {
if (this.argsRequiringConversion != null && arguments != null) {
ReflectionHelper.convertArguments(context.getTypeConverter(), arguments,
this.ctor, this.argsRequiringConversion, this.varargsPosition... | public TypedValue execute(EvaluationContext context, Object... arguments) throws AccessException {
try {
if (arguments != null) {
ReflectionHelper.convertArguments(context.getTypeConverter(), arguments,
this.ctor, this.argsRequiringConversion, this.varargsPosition);
}
if (this.ctor.isVarArgs()) {
... |
public TypedValue execute(EvaluationContext context, Object target, Object... arguments) throws AccessException {
try {
if (this.argsRequiringConversion != null && arguments != null) {
ReflectionHelper.convertArguments(
context.getTypeConverter(), arguments, this.method,
this.argsRequiringConversi... | public TypedValue execute(EvaluationContext context, Object target, Object... arguments) throws AccessException {
try {
if (arguments != null) {
ReflectionHelper.convertArguments(
context.getTypeConverter(), arguments, this.method,
this.argsRequiringConversion, this.varargsPosition);
}
if (t... |
public String toString() {
return "A" + (colorName.startsWith("o") ? "n " : " ") + colorName + " " + name;
}
| public String toString() {
return "A" + (colorName != null && colorName.startsWith("o") ? "n " : " ") + colorName + " " + name;
}
|
public void testGetSigma() throws IOException {
final StatisticalReferenceDataset dataset;
dataset = StatisticalReferenceDatasetFactory.createKirby2();
final AbstractLeastSquaresOptimizer optimizer;
optimizer = createOptimizer();
final double[] a = dataset.getParameters();
... | public void testGetSigma() throws IOException {
final StatisticalReferenceDataset dataset;
dataset = StatisticalReferenceDatasetFactory.createKirby2();
final AbstractLeastSquaresOptimizer optimizer;
optimizer = createOptimizer();
final double[] a = dataset.getParameters();
... |
public HostControllerConfigurationPersister(final HostControllerEnvironment environment, final LocalHostControllerInfo localHostControllerInfo,
final ExecutorService executorService, final ExtensionRegistry extensionRegistry) {
this.environment = environment;
... | public HostControllerConfigurationPersister(final HostControllerEnvironment environment, final LocalHostControllerInfo localHostControllerInfo,
final ExecutorService executorService, final ExtensionRegistry extensionRegistry) {
this.environment = environment;
... |
public void testCachePut() throws Exception {
Object key = "enescu";
Object value = "george";
assertNull(cache.get(key));
cache.put(key, value);
assertEquals(value, cache.get(key));
}
| public void testCachePut() throws Exception {
Object key = "enescu";
Object value = "george";
assertNull(cache.get(key));
cache.put(key, value);
assertEquals(value, cache.get(key).get());
}
|
public void processContextConfiguration(ContextConfigurationAttributes configAttributes) {
final boolean originallyHadResources = configAttributes.hasResources();
for (SmartContextLoader loader : candidates) {
if (logger.isDebugEnabled()) {
logger.debug(String.format("Potentially delegating to %s to proce... | public void processContextConfiguration(ContextConfigurationAttributes configAttributes) {
final boolean originallyHadResources = configAttributes.hasResources();
for (SmartContextLoader loader : candidates) {
if (logger.isDebugEnabled()) {
logger.debug(String.format("Potentially delegating to %s to proce... |
public void register(TransformersSubRegistration parent) {
parent.registerSubResource(pathElement, resourceTransformer, operationTransformer);
}
};
}
| public void register(TransformersSubRegistration parent) {
parent.registerSubResource(pathElement, pathTransformation, resourceTransformer, operationTransformer);
}
};
}
|
public abstract TransformationDescriptionBuilder discardChildResource(PathElement pathElement);
} | public abstract DiscardTransformationDescriptionBuilder discardChildResource(PathElement pathElement);
} |
public static TransformationDescriptionBuilder createDiscardInstance(PathElement pathElement) {
return new DiscardTransformationDescriptionBuilder(pathElement);
}
}
} | public static DiscardTransformationDescriptionBuilder createDiscardInstance(PathElement pathElement) {
return new DiscardTransformationDescriptionBuilder(pathElement);
}
}
} |
public static Filter parseFilter(final OperationContext context, final ModelNode node) throws OperationFailedException {
if (node.hasDefined(CommonAttributes.ACCEPT.getName())) {
return AcceptAllFilter.getInstance();
} else if (node.hasDefined(CommonAttributes.ALL.getName())) {
... | public static Filter parseFilter(final OperationContext context, final ModelNode node) throws OperationFailedException {
if (node.hasDefined(CommonAttributes.ACCEPT.getName())) {
return AcceptAllFilter.getInstance();
} else if (node.hasDefined(CommonAttributes.ALL.getName())) {
... |
public void testWithConstantOnClassWithPackageLevelVisibility() throws Exception {
FieldRetrievingFactoryBean fr = new FieldRetrievingFactoryBean();
fr.setBeanName("org.springframework.beans.factory.PackageLevelVisibleBean.CONSTANT");
fr.afterPropertiesSet();
assertEquals("Wuby", fr.getObject());
}
| public void testWithConstantOnClassWithPackageLevelVisibility() throws Exception {
FieldRetrievingFactoryBean fr = new FieldRetrievingFactoryBean();
fr.setBeanName("test.beans.PackageLevelVisibleBean.CONSTANT");
fr.afterPropertiesSet();
assertEquals("Wuby", fr.getObject());
}
|
public PointCostPair minimizes(CostFunction f, int maxEvaluations,
ConvergenceChecker checker,
double[][] vertices,
int starts, long seed)
throws NotPositiveDefiniteMatrixException,
CostException, Conver... | public PointCostPair minimizes(CostFunction f, int maxEvaluations,
ConvergenceChecker checker,
double[][] vertices,
int starts, long seed)
throws NotPositiveDefiniteMatrixException,
CostException, Conver... |
public void testMeanAndCovariance() throws DimensionMismatchException {
VectorialMean meanStat = new VectorialMean(mean.length);
VectorialCovariance covStat = new VectorialCovariance(mean.length);
for (int i = 0; i < 5000; ++i) {
double[] v = generator.nextVector();
... | public void testMeanAndCovariance() throws DimensionMismatchException {
VectorialMean meanStat = new VectorialMean(mean.length);
VectorialCovariance covStat = new VectorialCovariance(mean.length, true);
for (int i = 0; i < 5000; ++i) {
double[] v = generator.nextVector();
... |
public void testMeanAndCorrelation() throws DimensionMismatchException {
VectorialMean meanStat = new VectorialMean(mean.length);
VectorialCovariance covStat = new VectorialCovariance(mean.length);
for (int i = 0; i < 10000; ++i) {
double[] v = generator.nextVector();
... | public void testMeanAndCorrelation() throws DimensionMismatchException {
VectorialMean meanStat = new VectorialMean(mean.length);
VectorialCovariance covStat = new VectorialCovariance(mean.length, true);
for (int i = 0; i < 10000; ++i) {
double[] v = generator.nextVector();
... |
public void testStatelessBean() throws Exception {
Archive<?> ejbArchive = provider.getClientDeployment("ejb3-osgi.jar");
String ejbName = deployer.deploy(ejbArchive);
try {
String jndiname = "java:global/ejb3-osgi/SimpleClientServlet!org.jboss.as.testsuite.integration.osgi.ejb3.... | public void testStatelessBean() throws Exception {
Archive<?> ejbArchive = provider.getClientDeployment("ejb3-osgi.jar");
String ejbName = deployer.deploy(ejbArchive);
try {
String jndiname = "java:global/ejb3-osgi/SimpleStatelessSessionBean!org.jboss.as.testsuite.integration.osg... |
public String get(Object key) {
Assert.isInstanceOf(String.class, key,
String.format("expected key [%s] to be of type String, got %s", key, key.getClass().getName()));
return this.getSystemAttribute((String) key);
}
| public String get(Object key) {
Assert.isInstanceOf(String.class, key,
String.format("Expected key [%s] to be of type String, got %s", key, key.getClass().getName()));
return this.getSystemAttribute((String) key);
}
|
public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration configuration) throws DeploymentUnitProcessingException {
EJBComponentDescription ejbComponentDescription = (EJBComponentDescription) componentC... | public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription description, ViewConfiguration configuration) throws DeploymentUnitProcessingException {
EJBComponentDescription ejbComponentDescription = (EJBComponentDescription) componentC... |
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException {
final ModelNode composite = new ModelNode();
composite.get(Util.OPERATION).set(Util.COMPOSITE);
composite.get(Util.ADDRESS).setEmptyList();
final ModelNode steps = composite.get(Util.STEP... | public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException {
final ModelNode composite = new ModelNode();
composite.get(Util.OPERATION).set(Util.COMPOSITE);
composite.get(Util.ADDRESS).setEmptyList();
final ModelNode steps = composite.get(Util.STEP... |
public void testParseLongShort() throws ParseException {
Calendar cal= Calendar.getInstance(NEW_YORK, Locale.US);
cal.clear();
cal.set(2003, 1, 10, 15, 33, 20);
cal.set(Calendar.MILLISECOND, 989);
cal.setTimeZone(NEW_YORK);
DateParser fdf = getInstanc... | public void testParseLongShort() throws ParseException {
Calendar cal= Calendar.getInstance(NEW_YORK, Locale.US);
cal.clear();
cal.set(2003, 1, 10, 15, 33, 20);
cal.set(Calendar.MILLISECOND, 989);
cal.setTimeZone(NEW_YORK);
DateParser fdf = getInstanc... |
public void start(StartContext context) throws StartException {
log.errorf("started ResourceAdapterService %s", context.getController().getName());
}
| public void start(StartContext context) throws StartException {
log.infof("started ResourceAdapterService %s", context.getController().getName());
}
|
public UserDestinationMessageHandler userDestinationMessageHandler() {
UserDestinationMessageHandler handler = new UserDestinationMessageHandler(
clientInboundChannel(), clientOutboundChannel(), brokerChannel(), userDestinationResolver());
return handler;
}
| public UserDestinationMessageHandler userDestinationMessageHandler() {
UserDestinationMessageHandler handler = new UserDestinationMessageHandler(
clientInboundChannel(), brokerChannel(), userDestinationResolver());
return handler;
}
|
public Integer build() {
return toComparison();
}
| public Integer build() {
return Integer.valueOf(toComparison());
}
|
public Integer build() {
return toHashCode();
}
| public Integer build() {
return Integer.valueOf(toHashCode());
}
|
public String toString() {
return String.format(FMT_TO_STRING, System.identityHashCode(this),
String.valueOf(getObject()));
}
| public String toString() {
return String.format(FMT_TO_STRING, Integer.valueOf(System.identityHashCode(this)),
String.valueOf(getObject()));
}
|
public static ServiceName serviceNameOfContext(String app, String module, String comp, String context) {
if (context.startsWith("java:")) {
final String namespace;
final int i = context.indexOf('/');
if (i == -1) {
namespace = context.substring(5);
... | public static ServiceName serviceNameOfContext(String app, String module, String comp, String context) {
if (context.startsWith("java:")) {
final String namespace;
final int i = context.indexOf('/');
if (i == -1) {
namespace = context.substring(5);
... |
public String toStringAST() {
StringBuilder sb = new StringBuilder();
return sb.append("!{").append(getChild(0).toStringAST()).append("}").toString();
}
| public String toStringAST() {
StringBuilder sb = new StringBuilder();
return sb.append("![").append(getChild(0).toStringAST()).append("]").toString();
}
|
public void testScenario_DefiningVariablesThatWillBeAccessibleInExpressions() throws Exception {
// Create a parser
SpelAntlrExpressionParser parser = new SpelAntlrExpressionParser();
// Use the standard evaluation context
StandardEvaluationContext ctx = new StandardEvaluationContext();
ctx.setVariable("favo... | public void testScenario_DefiningVariablesThatWillBeAccessibleInExpressions() throws Exception {
// Create a parser
SpelAntlrExpressionParser parser = new SpelAntlrExpressionParser();
// Use the standard evaluation context
StandardEvaluationContext ctx = new StandardEvaluationContext();
ctx.setVariable("favo... |
public static String capitalize(String str, char... delimiters) {
int delimLen = (delimiters == null ? -1 : delimiters.length);
if (str == null || str.length() == 0 || delimLen == 0) {
return str;
}
char[] buffer = str.toCharArray();
boolean capitalizeNext = true;... | public static String capitalize(String str, char... delimiters) {
int delimLen = delimiters == null ? -1 : delimiters.length;
if (str == null || str.length() == 0 || delimLen == 0) {
return str;
}
char[] buffer = str.toCharArray();
boolean capitalizeNext = true;
... |
public OperationTransformer.TransformedOperation transformOperation(final TransformationContext context, final ModelNode operation) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String operationName = operation.require(OP).a... | public OperationTransformer.TransformedOperation transformOperation(final TransformationContext context, final ModelNode operation) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String operationName = operation.require(OP).a... |
public synchronized Endpoint getValue() throws IllegalStateException {
final Endpoint endpoint = this.endpoint;
if (endpoint == null) throw new IllegalStateException();
return endpoint;
}
/**
* Get the injector for the executor dependency.
*
* @return the injector
... | public Injector<Executor> getExecutorInjector() {
return executor;
}
} |
JpaLogger JPA_LOGGER = Logger.getMessageLogger(JpaLogger.class, "org.jboss.as.jpa");
/*
* 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 contr... | JpaLogger JPA_LOGGER = Logger.getMessageLogger(JpaLogger.class, "org.jboss.as.jpa");
/*
* 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 contr... |
private void parseProtocol(XMLExtendedStreamReader reader, ModelNode protocol, Class<? extends Protocol> targetClass) throws XMLStreamException {
for (int i = 0; i < reader.getAttributeCount(); i++) {
String value = reader.getAttributeValue(i);
Attribute attribute = Attribute.forName... | private void parseProtocol(XMLExtendedStreamReader reader, ModelNode protocol, Class<? extends Protocol> targetClass) throws XMLStreamException {
for (int i = 0; i < reader.getAttributeCount(); i++) {
String value = reader.getAttributeValue(i);
Attribute attribute = Attribute.forName... |
protected void setUp() throws Exception {
comparator = DefaultFileComparator.DEFAULT_COMPARATOR;
reverse = DefaultFileComparator.DEFAULT_REVERSE;
}
| protected void setUp() throws Exception {
comparator = (AbstractFileComparator) DefaultFileComparator.DEFAULT_COMPARATOR;
reverse = DefaultFileComparator.DEFAULT_REVERSE;
}
|
protected void setUp() throws Exception {
super.setUp();
comparator = DefaultFileComparator.DEFAULT_COMPARATOR;
reverse = DefaultFileComparator.DEFAULT_REVERSE;
equalFile1 = new File("foo");
equalFile2 = new File("foo");
lessFile = new File("abc");
moreFile ... | protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator) DefaultFileComparator.DEFAULT_COMPARATOR;
reverse = DefaultFileComparator.DEFAULT_REVERSE;
equalFile1 = new File("foo");
equalFile2 = new File("foo");
lessFile = new File(... |
protected void setUp() throws Exception {
super.setUp();
comparator = DirectoryFileComparator.DIRECTORY_COMPARATOR;
reverse = DirectoryFileComparator.DIRECTORY_REVERSE;
final File currentDir = new File(".");
equalFile1 = new File(currentDir, "src");
equalFile2 = new F... | protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator) DirectoryFileComparator.DIRECTORY_COMPARATOR;
reverse = DirectoryFileComparator.DIRECTORY_REVERSE;
final File currentDir = new File(".");
equalFile1 = new File(currentDir, "src");
... |
protected void setUp() throws Exception {
super.setUp();
comparator = ExtensionFileComparator.EXTENSION_COMPARATOR;
reverse = ExtensionFileComparator.EXTENSION_REVERSE;
equalFile1 = new File("abc.foo");
equalFile2 = new File("def.foo");
lessFile = new File("abc.abc"... | protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator) ExtensionFileComparator.EXTENSION_COMPARATOR;
reverse = ExtensionFileComparator.EXTENSION_REVERSE;
equalFile1 = new File("abc.foo");
equalFile2 = new File("def.foo");
lessFi... |
protected void setUp() throws Exception {
super.setUp();
comparator = LastModifiedFileComparator.LASTMODIFIED_COMPARATOR;
reverse = LastModifiedFileComparator.LASTMODIFIED_REVERSE;
final File dir = getTestDirectory();
final File olderFile = new File(dir, "older.txt");
... | protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator) LastModifiedFileComparator.LASTMODIFIED_COMPARATOR;
reverse = LastModifiedFileComparator.LASTMODIFIED_REVERSE;
final File dir = getTestDirectory();
final File olderFile = new File(d... |
protected void setUp() throws Exception {
super.setUp();
comparator = NameFileComparator.NAME_INSENSITIVE_COMPARATOR;
reverse = NameFileComparator.NAME_REVERSE;
equalFile1 = new File("a/foo.txt");
equalFile2 = new File("b/foo.txt");
lessFile = new File("c/ABC.txt");... | protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator) NameFileComparator.NAME_INSENSITIVE_COMPARATOR;
reverse = NameFileComparator.NAME_REVERSE;
equalFile1 = new File("a/foo.txt");
equalFile2 = new File("b/foo.txt");
lessFile ... |
protected void setUp() throws Exception {
super.setUp();
comparator = PathFileComparator.PATH_COMPARATOR;
reverse = PathFileComparator.PATH_REVERSE;
equalFile1 = new File("foo/file.txt");
equalFile2 = new File("foo/file.txt");
lessFile = new File("abc/file.txt");
... | protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator) PathFileComparator.PATH_COMPARATOR;
reverse = PathFileComparator.PATH_REVERSE;
equalFile1 = new File("foo/file.txt");
equalFile2 = new File("foo/file.txt");
lessFile = new... |
protected void setUp() throws Exception {
super.setUp();
comparator = SizeFileComparator.SIZE_COMPARATOR;
reverse = SizeFileComparator.SIZE_REVERSE;
final File dir = getTestDirectory();
smallerDir = new File(dir, "smallerdir");
largerDir = new File(dir, "largerdir");
... | protected void setUp() throws Exception {
super.setUp();
comparator = (AbstractFileComparator) SizeFileComparator.SIZE_COMPARATOR;
reverse = SizeFileComparator.SIZE_REVERSE;
final File dir = getTestDirectory();
smallerDir = new File(dir, "smallerdir");
largerDir = new... |
public Annotation[] getAnnotations() {
if (field != null) {
if (cachedFieldAnnotations == null) {
cachedFieldAnnotations = field.getAnnotations();
}
return cachedFieldAnnotations;
} else if (methodParameter != null) {
return methodParameter.getMethod().getAnnotations();
} else {
return null;
... | public Annotation[] getAnnotations() {
if (field != null) {
if (cachedFieldAnnotations == null) {
cachedFieldAnnotations = field.getAnnotations();
}
return cachedFieldAnnotations;
} else if (methodParameter != null) {
return methodParameter.getMethod().getAnnotations();
} else {
return new Ann... |
public static Class<?> resolveReturnType(Method method, Class<?> clazz) {
Assert.notNull(method, "Method must not be null");
Assert.notNull(clazz, "Class must not be null");
return ResolvableType.forMethodReturnType(method, clazz).resolve(method.getReturnType());
}
/**
* Determine the target type for the ge... | public static Class<?> resolveReturnType(Method method, Class<?> clazz) {
Assert.notNull(method, "Method must not be null");
Assert.notNull(clazz, "Class must not be null");
return ResolvableType.forMethodReturnType(method, clazz).resolve(method.getReturnType());
}
/**
* Determine the target type for the ge... |
public CholeskyDecompositionImpl(final RealMatrix matrix,
final double relativeSymmetryThreshold,
final double absolutePositivityThreshold) {
if (!matrix.isSquare()) {
throw new NonSquareMatrixException(matrix.getRowDimens... | public CholeskyDecompositionImpl(final RealMatrix matrix,
final double relativeSymmetryThreshold,
final double absolutePositivityThreshold) {
if (!matrix.isSquare()) {
throw new NonSquareMatrixException(matrix.getRowDimens... |
public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException {
validateParameter(parameterName, value.resolve());
}
});
static SimpleAttributeDefinition DATASOURCE_DRIVER = new SimpleAttributeDefinition(DATASOURCE_DRIVER_NAME, DataSour... | public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException {
validateParameter(parameterName, value.resolve());
}
});
static SimpleAttributeDefinition DATASOURCE_DRIVER = new SimpleAttributeDefinition(DATASOURCE_DRIVER_NAME, DataSour... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.