buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME);
war.addPackage(BMPEntityBeanTestCase.class.getPackage());
war.addAsWebInfResource("ejb/entity/bmp/ejb-jar.xml", "ejb-jar.xml");
return war;
}
| public static Archive<?> deploy() {
WebArchive war = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME);
war.addPackage(BMPEntityBeanTestCase.class.getPackage());
war.addAsWebInfResource(BMPEntityBeanTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
return war;
}
|
public static Archive<JavaArchive> getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "configured-resource-adapter-name-mdb-test.jar")
.addClasses(ConfiguredResourceAdapterNameMDB.class, JMSMessagingUtil.class, ConfiguredResourceAdapterNameTestCase.class,
... | public static Archive<JavaArchive> getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "configured-resource-adapter-name-mdb-test.jar")
.addClasses(ConfiguredResourceAdapterNameMDB.class, JMSMessagingUtil.class, ConfiguredResourceAdapterNameTestCase.class,
... |
public static Archive createDeplyoment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, EAR_NAME + ".ear");
final JavaArchive rar = ShrinkWrap.create(JavaArchive.class, RAR_NAME + ".rar");
rar.addAsManifestResource("ejb/mdb/resourceadapter/ra.xml", "ra.xml");
... | public static Archive createDeplyoment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, EAR_NAME + ".ear");
final JavaArchive rar = ShrinkWrap.create(JavaArchive.class, RAR_NAME + ".rar");
rar.addAsManifestResource(DeploymentPackagedRATestCase.class.getPackage(),... |
public static Archive createDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ejb-pool-override-test.jar");
jar.addPackage(PoolAnnotatedEJB.class.getPackage());
jar.addAsManifestResource("ejb/pool/override/jboss-ejb3.xml", "jboss-ejb3.xml");
return jar;
| public static Archive createDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ejb-pool-override-test.jar");
jar.addPackage(PoolAnnotatedEJB.class.getPackage());
jar.addAsManifestResource(PoolOverrideTestCase.class.getPackage(), "jboss-ejb3.xml", "jboss-ejb3.xml");... |
public static Archive<?> createDeployment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + ".ear");
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
jar.addPackage(EJBClientUserTransactionTestCase.class.getPackage());... | public static Archive<?> createDeployment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + ".ear");
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
jar.addPackage(EJBClientUserTransactionTestCase.class.getPackage());... |
public static Archive<?> createDeployment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + ".ear");
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
jar.addPackage(EJBClientXidTransactionTestCase.class.getPackage());
... | public static Archive<?> createDeployment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + ".ear");
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
jar.addPackage(EJBClientXidTransactionTestCase.class.getPackage());
... |
public PrototypeServerModelController() {
super(configurationPersister);
}
| public PrototypeServerModelController() {
super(null);
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
PathAddress parent = PathAddress.pathAddress(
ModClusterExtension.SUBSYSTEM_PATH,
ModClusterExtension.CONFIGURATION_PATH,
ModClusterExtension.DYNAMIC_LOAD_PROV... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
PathAddress parent = PathAddress.pathAddress(
ModClusterExtension.SUBSYSTEM_PATH,
ModClusterExtension.CONFIGURATION_PATH,
ModClusterExtension.DYNAMIC_LOAD_PROV... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
PathAddress parent = PathAddress.pathAddress(
ModClusterExtension.SUBSYSTEM_PATH,
ModClusterExtension.CONFIGURATION_PATH,
ModClusterExtension.DYNAMIC_LOAD_PROV... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
PathAddress parent = PathAddress.pathAddress(
ModClusterExtension.SUBSYSTEM_PATH,
ModClusterExtension.CONFIGURATION_PATH,
ModClusterExtension.DYNAMIC_LOAD_PROV... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.getResult().set(true);
context.completeStep();
}
}, DESCRIPTION_PROVIDER, false, OperationEntry.EntryType.PUBLIC, EnumSet.of(OperationEntry.Flag.RE... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.getResult().set(true);
context.stepCompleted();
}
}, DESCRIPTION_PROVIDER, false, OperationEntry.EntryType.PUBLIC, EnumSet.of(OperationEntry.Flag.R... |
void commit(BatchOutputCollector collector);
package backtype.storm.transactional;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.IComponent;
import backtype.storm.tuple.Tuple;
import java.util.Map;
public interface ICommitterBolt extends IComponent {
void prepare(Map conf, TopologyCo... | void commit(BatchOutputCollector collector);
package backtype.storm.transactional;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.IComponent;
import backtype.storm.tuple.Tuple;
import java.util.Map;
public interface ICommitterBolt extends IComponent {
void prepare(Map conf, TopologyCo... |
void emitBatch(TransactionAttempt tx, X coordinatorMeta, BatchOutputCollector collector);
package backtype.storm.transactional;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.IComponent;
import java.math.BigInteger;
import java.util.Map;
public interface ITransactionalSpout<T> extends ICo... | void emitBatch(TransactionAttempt tx, X coordinatorMeta, BatchOutputCollector collector);
package backtype.storm.transactional;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.IComponent;
import java.math.BigInteger;
import java.util.Map;
public interface ITransactionalSpout<T> extends ICo... |
private void sync() {
// TODO: this code might be redundant. can just find the next transaction that needs a batch or commit tuple
// and emit that, instead of iterating through (MAX_SPOUT_PENDING should take care of things)
TransactionStatus maybeCommit = _activeTx.get(_currTransaction);
... | private void sync() {
// TODO: this code might be redundant. can just find the next transaction that needs a batch or commit tuple
// and emit that, instead of iterating through (MAX_SPOUT_PENDING should take care of things)
TransactionStatus maybeCommit = _activeTx.get(_currTransaction);
... |
public BoltDeclarer setBolt(String id, ICommitterBolt bolt, Integer parallelism) {
return setBolt(id, new CommitterBoltExecutor(bolt), parallelism, true);
}
| public BoltDeclarer setBolt(String id, ICommitterBolt bolt, Integer parallelism) {
return setBolt(id, new BatchBoltExecutor(new CommitterBoltExecutor(bolt)), parallelism, true);
}
|
protected ProcessingInstructionNode parseProcessingInstruction(XMLStreamReader reader, ElementNode parent) throws XMLStreamException {
ProcessingInstructionNode node = null;
String pi = reader.getPITarget();
Map<String, String> data = parseProcessingInstructionData(reader.getPIData());
... | protected ProcessingInstructionNode parseProcessingInstruction(XMLStreamReader reader, ElementNode parent) throws XMLStreamException {
ProcessingInstructionNode node = null;
String pi = reader.getPITarget();
Map<String, String> data = parseProcessingInstructionData(reader.getPIData());
... |
private void createKeytab(final String principalName, final String passPhrase, final File keytabFile) throws IOException {
LOGGER.info("Principal name: " + principalName);
final KerberosTime timeStamp = new KerberosTime();
DataOutputStream dos = null;
try {
dos = new Dat... | private void createKeytab(final String principalName, final String passPhrase, final File keytabFile) throws IOException {
LOGGER.info("Principal name: " + principalName);
final KerberosTime timeStamp = new KerberosTime();
DataOutputStream dos = null;
try {
dos = new Dat... |
public void testRegistryConfiguration() throws Throwable {
ServiceController<?> controller = serviceContainer.getService(ConnectorServices.RA_REPOSITORY_SERVICE);
assertNotNull(controller);
ResourceAdapterRepository repository = (ResourceAdapterRepository) controller.getValue();
asse... | public void testRegistryConfiguration() throws Throwable {
ServiceController<?> controller = serviceContainer.getService(ConnectorServices.RA_REPOSITORY_SERVICE);
assertNotNull(controller);
ResourceAdapterRepository repository = (ResourceAdapterRepository) controller.getValue();
asse... |
public void testRegistryConfiguration() throws Throwable {
ServiceController<?> controller = serviceContainer.getService(ConnectorServices.RA_REPOSITORY_SERVICE);
assertNotNull(controller);
ResourceAdapterRepository repository = (ResourceAdapterRepository) controller.getValue();
asse... | public void testRegistryConfiguration() throws Throwable {
ServiceController<?> controller = serviceContainer.getService(ConnectorServices.RA_REPOSITORY_SERVICE);
assertNotNull(controller);
ResourceAdapterRepository repository = (ResourceAdapterRepository) controller.getValue();
asse... |
private void testTransformer_1_0(ModelTestControllerVersion controllerVersion) throws Exception {
String subsystemXml = "threads-transform-1_0.xml"; //This has no expressions not understood by 1.0
ModelVersion modelVersion = ModelVersion.create(1, 0, 0); //The old model version
//Use the n... | private void testTransformer_1_0(ModelTestControllerVersion controllerVersion) throws Exception {
String subsystemXml = "threads-transform-1_0.xml"; //This has no expressions not understood by 1.0
ModelVersion modelVersion = ModelVersion.create(1, 0, 0); //The old model version
//Use the n... |
@ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = PojoAndStringConfig.class, inheritLocations = false)
/*
* Copyright 2002-2011 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 L... | @ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = PojoAndStringConfig.class, inheritLocations = false)
/*
* Copyright 2002-2011 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 L... |
public void testReadEnvironmentVariablesForServers() throws Exception {
DomainClient client = domainMasterLifecycleUtil.createDomainClient();
DomainDeploymentManager manager = client.getDeploymentManager();
try {
//Deploy the archive
WebArchive archive = ShrinkWrap.c... | public void testReadEnvironmentVariablesForServers() throws Exception {
DomainClient client = domainMasterLifecycleUtil.createDomainClient();
DomainDeploymentManager manager = client.getDeploymentManager();
try {
//Deploy the archive
WebArchive archive = ShrinkWrap.c... |
public PrefixResourceResolver(String prefix) {
Assert.hasText(prefix, "prefix must not be null or empty");
this.prefix = prefix.startsWith("/") ? prefix : "/" + prefix;
}
| public PrefixResourceResolver(String prefix) {
Assert.hasText(prefix, "prefix must not be null or empty");
this.prefix = prefix.startsWith("/") ? prefix.substring(1) : prefix;
}
|
private void addManagementConsole(final DeploymentUnit deploymentUnit, final PersistenceUnitMetadata pu, final PersistenceProviderAdaptor adaptor) {
ManagementAdaptor managementAdaptor = (ManagementAdaptor)adaptor.getManagementAdaptor();
if (managementAdaptor != null) {
final String prov... | private void addManagementConsole(final DeploymentUnit deploymentUnit, final PersistenceUnitMetadata pu, final PersistenceProviderAdaptor adaptor) {
ManagementAdaptor managementAdaptor = adaptor.getManagementAdaptor();
if (managementAdaptor != null) {
final String providerLabel = managem... |
ManagementAdaptor getManagementAdaptor();
/*
* 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 c... | ManagementAdaptor getManagementAdaptor();
/*
* 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 c... |
public ValueWrapper get(Object key) {
Element element = cache.get(key);
return (element != null ? new DefaultValueWrapper<Object>(element.getObjectValue()) : null);
}
| public ValueWrapper get(Object key) {
Element element = cache.get(key);
return (element != null ? new DefaultValueWrapper(element.getObjectValue()) : null);
}
|
public static SimpleAttributeDefinition MODE =
new SimpleAttributeDefinitionBuilder(ModelKeys.MODE, ModelType.STRING, false)
.setXmlName(Attribute.MODE.getLocalName())
.setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICE... | public static SimpleAttributeDefinition MODE =
new SimpleAttributeDefinitionBuilder(ModelKeys.MODE, ModelType.STRING, false)
.setXmlName(Attribute.MODE.getLocalName())
.setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICE... |
RuntimeException failedToWriteConfigurationFile(@Cause Throwable e, File fileName);
/*
* 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 contri... | RuntimeException failedToWriteConfigurationFile(@Cause Throwable e, File fileName);
/*
* 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 contri... |
public void testMoments() {
final double tol = 1e-9;
PascalDistribution dist;
dist = new PascalDistribution(10, 0.5);
Assert.assertEquals(dist.getNumericalMean(), ( 10d * 0.5d ) / 0.5d, tol);
Assert.assertEquals(dist.getNumericalVariance(), ( 10d * 0.5d ) / (0.5d * 0.5d), to... | public void testMoments() {
final double tol = 1e-9;
PascalDistribution dist;
dist = new PascalDistribution(10, 0.5);
Assert.assertEquals(dist.getNumericalMean(), ( 10d * 0.5d ) / 0.5d, tol);
Assert.assertEquals(dist.getNumericalVariance(), ( 10d * 0.5d ) / (0.5d * 0.5d), to... |
public ModelNode getModelDescription(Locale locale) {
return LocalDescriptions.getCacheContainerAddDescription(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return InfinispanDescriptions.getCacheContainerAddDescription(locale);
}
|
public ModelNode getModelDescription(Locale locale) {
return LocalDescriptions.getCacheContainerRemoveDescription(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return InfinispanDescriptions.getCacheContainerRemoveDescription(locale);
}
|
public ModelNode getModelDescription(Locale locale) {
return LocalDescriptions.getSubsystemAddDescription(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return InfinispanDescriptions.getSubsystemAddDescription(locale);
}
|
public ModelNode getModelDescription(Locale locale) {
return LocalDescriptions.getSubsystemDescribeDescription(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return InfinispanDescriptions.getSubsystemDescribeDescription(locale);
}
|
public ModelNode getModelDescription(final Locale locale) {
return LocalDescriptions.getSubsystemAddDescription(locale);
}
| public ModelNode getModelDescription(final Locale locale) {
return JGroupsDescriptions.getSubsystemAddDescription(locale);
}
|
public ModelNode getModelDescription(Locale locale) {
return LocalDescriptions.getSubsystemDescribeDescription(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return JGroupsDescriptions.getSubsystemDescribeDescription(locale);
}
|
public ModelNode getModelDescription(Locale locale) {
return LocalDescriptions.getProtocolStackAddDescription(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return JGroupsDescriptions.getProtocolStackAddDescription(locale);
}
|
public ModelNode getModelDescription(Locale locale) {
return LocalDescriptions.getProtocolStackRemoveDescription(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return JGroupsDescriptions.getProtocolStackRemoveDescription(locale);
}
|
protected boolean requiresRuntime(OperationContext context) {
return context.getType() == OperationContext.Type.SERVER;
}
| protected boolean requiresRuntime(OperationContext context) {
return context.isNormalServer();
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
if (context.getType() != OperationContext.Type.SERVER) {
throw MESSAGES.fullServerBootRequired(getClass());
}
long start = System.currentTimeMillis();
// Make sure the ... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
if (!context.isNormalServer()) {
throw MESSAGES.fullServerBootRequired(getClass());
}
long start = System.currentTimeMillis();
// Make sure the lock has been taken
... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validate(operation);
final ModelNode opAddr = operation.get(OP_ADDR);
PathAddress address = PathAddress.pathAddress(opAddr);
final String name = address.getLastElement().ge... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
validator.validate(operation);
final ModelNode opAddr = operation.get(OP_ADDR);
PathAddress address = PathAddress.pathAddress(opAddr);
final String name = address.getLastElement().ge... |
protected void modelChanged(final OperationContext context, final ModelNode operation,
final String attributeName, final ModelNode newValue, final ModelNode currentValue) throws OperationFailedException {
boolean restartRequired = false;
boolean applyToRuntime = cont... | protected void modelChanged(final OperationContext context, final ModelNode operation,
final String attributeName, final ModelNode newValue, final ModelNode currentValue) throws OperationFailedException {
boolean restartRequired = false;
boolean applyToRuntime = cont... |
public int read() {
if (idx >= charSequence.length()) {
return -1;
} else {
return (int)charSequence.charAt(idx++);
}
}
| public int read() {
if (idx >= charSequence.length()) {
return -1;
} else {
return charSequence.charAt(idx++);
}
}
|
protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit,
final ServiceTarget serviceTarget) throws DeploymentUnitProcessingException {
final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).g... | protected void processDeployment(final String hostName, final WarMetaData warMetaData, final DeploymentUnit deploymentUnit,
final ServiceTarget serviceTarget) throws DeploymentUnitProcessingException {
final VirtualFile deploymentRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).g... |
private void test(boolean sensitiveResourceVisible, StandardRole... roles) {
ModelNode operation = Util.createOperation(READ_RESOURCE_OPERATION, EMPTY_ADDRESS);
operation.get(RECURSIVE).set(true);
ModelNode result = executeWithRoles(operation, roles);
assertEquals(SUCCESS, result.ge... | private void test(boolean sensitiveResourceVisible, StandardRole... roles) {
ModelNode operation = Util.createOperation(READ_RESOURCE_OPERATION, EMPTY_ADDRESS);
operation.get(RECURSIVE).set(true);
ModelNode result = executeWithRoles(operation, roles);
assertEquals(SUCCESS, result.ge... |
package org.springframework.messaging.handler.invocation;
/*
* Copyright 2002-2013 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.apach... | package org.springframework.messaging.handler.invocation;
/*
* Copyright 2002-2013 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.apach... |
package org.jboss.as.repository;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, 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 red... | package org.jboss.as.repository;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, 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 red... |
package org.jboss.as.repository;
/*
* 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 redist... | package org.jboss.as.repository;
/*
* 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 redist... |
package org.jboss.as.repository;
/*
* 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 redist... | package org.jboss.as.repository;
/*
* 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 redist... |
package org.jboss.as.repository;
/*
* 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 software; you can redist... | package org.jboss.as.repository;
/*
* 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 software; you can redist... |
import org.jboss.as.repository.HostFileRepository;
/*
* 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 softwa... | import org.jboss.as.repository.HostFileRepository;
/*
* 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 softwa... |
import org.jboss.as.repository.HostFileRepository;
/**
*
*/
package org.jboss.as.host.controller;
import org.jboss.as.controller.client.ModelControllerClient;
import org.jboss.as.domain.controller.DomainController;
import org.jboss.as.server.file.repository.api.HostFileRepository;
import org.jboss.msc.service.Servi... | import org.jboss.as.repository.HostFileRepository;
/**
*
*/
package org.jboss.as.host.controller;
import org.jboss.as.controller.client.ModelControllerClient;
import org.jboss.as.domain.controller.DomainController;
import org.jboss.as.repository.HostFileRepository;
import org.jboss.msc.service.ServiceName;
/**
* ... |
import org.jboss.as.repository.HostFileRepository;
/*
* 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 softwa... | import org.jboss.as.repository.HostFileRepository;
/*
* 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 softwa... |
public ConversionFailedException(TypeDescriptor sourceType, TypeDescriptor targetType, Object value, Throwable cause) {
super("Unable to convert value " + value + " from type '" + sourceType.getName() +
"' to type '" + targetType.getName() + "'", cause);
this.sourceType = sourceType;
this.targetType = target... | public ConversionFailedException(TypeDescriptor sourceType, TypeDescriptor targetType, Object value, Throwable cause) {
super("Unable to convert value \"" + value + "\" from type '" + sourceType.getName() +
"' to type '" + targetType.getName() + "'", cause);
this.sourceType = sourceType;
this.targetType = ta... |
public void testResolveModule() throws Exception {
// Build a resource with a package requirement
XResourceBuilder builder = XResourceBuilderFactory.create();
builder.addCapability(IDENTITY_NAMESPACE, "somename");
builder.addRequirement(PACKAGE_NAMESPACE, SimpleService.class.getPack... | public void testResolveModule() throws Exception {
// Build a resource with a package requirement
XResourceBuilder builder = XResourceBuilderFactory.create();
builder.addCapability(IDENTITY_NAMESPACE, "somename");
builder.addRequirement(PACKAGE_NAMESPACE, SimpleService.class.getPack... |
public void registerOperations(ManagementResourceRegistration resourceRegistration) {
GlobalOperationHandlers.registerGlobalOperations(resourceRegistration, ProcessType.STANDALONE_SERVER);
if (serverEnvironment != null) {
resourceRegistration.registerOperationHandler(ValidateOperationHa... | public void registerOperations(ManagementResourceRegistration resourceRegistration) {
GlobalOperationHandlers.registerGlobalOperations(resourceRegistration, ProcessType.STANDALONE_SERVER);
if (serverEnvironment != null) {
resourceRegistration.registerOperationHandler(ValidateOperationHa... |
package org.jboss.as.domain.controller;
/*
* 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 software; you can... | package org.jboss.as.domain.controller;
/*
* 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 software; you can... |
package org.jboss.as.protocol.mgmt;
/*
* 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 software; you can red... | package org.jboss.as.protocol.mgmt;
/*
* 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 software; you can red... |
public void start(StartContext context) throws StartException {
try {
Connector cmd = mdr.getValue().getResourceAdapter(deployment);
IronJacamar ijmd = mdr.getValue().getIronJacamar(deployment);
File root = mdr.getValue().getRoot(deployment);
cmd = (new Merge... | public void start(StartContext context) throws StartException {
try {
Connector cmd = mdr.getValue().getResourceAdapter(deployment);
IronJacamar ijmd = mdr.getValue().getIronJacamar(deployment);
File root = mdr.getValue().getRoot(deployment);
cmd = (new Merge... |
public static Archive<?> deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxws-wsse-sign.war").
addAsManifestResource(new StringAsset("Dependencies: org.apache.ws.security\n"), "MANIFEST.MF").
addClasses(ServiceIface.class, ServiceImpl.class, KeystorePas... | public static Archive<?> deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxws-wsse-sign.war").
addAsManifestResource(new StringAsset("Dependencies: org.apache.ws.security\n"), "MANIFEST.MF").
addClasses(ServiceIface.class, ServiceImpl.class, KeystorePas... |
public static Archive<?> deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxws-wsse-sign-encrypt.war").
addAsManifestResource(new StringAsset("Dependencies: org.apache.ws.security\n"), "MANIFEST.MF").
addClasses(ServiceIface.class, ServiceImpl.class, Key... | public static Archive<?> deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxws-wsse-sign-encrypt.war").
addAsManifestResource(new StringAsset("Dependencies: org.apache.ws.security\n"), "MANIFEST.MF").
addClasses(ServiceIface.class, ServiceImpl.class, Key... |
public static Archive<?> deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxws-wsse-sign-encrypt.war").
addAsManifestResource(new StringAsset("Dependencies: org.apache.ws.security\n"), "MANIFEST.MF").
addClasses(ServiceIface.class, ServiceImpl.class, Key... | public static Archive<?> deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "jaxws-wsse-sign-encrypt.war").
addAsManifestResource(new StringAsset("Dependencies: org.apache.ws.security\n"), "MANIFEST.MF").
addClasses(ServiceIface.class, ServiceImpl.class, Key... |
private ResultAction executeStep(final Step step) {
PathAddress oldModelAddress = modelAddress;
ModelNode oldOperation = operation;
ModelNode oldResponse = this.response;
StampHolder oldRestartStamp = restartStampHolder;
Stage stepStage = null;
ModelNode response = nu... | private ResultAction executeStep(final Step step) {
PathAddress oldModelAddress = modelAddress;
ModelNode oldOperation = operation;
ModelNode oldResponse = this.response;
StampHolder oldRestartStamp = restartStampHolder;
Stage stepStage = null;
ModelNode response = nu... |
public void registerAttributes(ManagementResourceRegistration registry) {
super.registerAttributes(registry);
for (SimpleAttributeDefinition attr : ATTRIBUTES) {
if (registerRuntimeOnly || !attr.getFlags().contains(AttributeAccess.Flag.STORAGE_RUNTIME)) {
if (runtimeOnly... | public void registerAttributes(ManagementResourceRegistration registry) {
super.registerAttributes(registry);
for (SimpleAttributeDefinition attr : ATTRIBUTES) {
if (registerRuntimeOnly || !attr.getFlags().contains(AttributeAccess.Flag.STORAGE_RUNTIME)) {
if (runtimeOnly... |
public void registerAttributes(ManagementResourceRegistration registry) {
super.registerAttributes(registry);
AttributeDefinition[] attributes = deployed ? getDeploymentAttributes() : ATTRIBUTES;
for (AttributeDefinition attr : attributes) {
if (registerRuntimeOnly || !attr.getF... | public void registerAttributes(ManagementResourceRegistration registry) {
super.registerAttributes(registry);
AttributeDefinition[] attributes = deployed ? getDeploymentAttributes() : ATTRIBUTES;
for (AttributeDefinition attr : attributes) {
if (registerRuntimeOnly || !attr.getF... |
public DomainDeploymentUtils() throws UnknownHostException {
this(ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999));
this.injectedClient = false;
}
| public DomainDeploymentUtils() throws UnknownHostException {
this(ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999, DemoAuthentication.getCallbackHandler()));
this.injectedClient = false;
}
|
protected static final SimpleAttributeDefinition DOMAIN =
new SimpleAttributeDefinitionBuilder(Constants.DOMAIN, ModelType.STRING, true)
.setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
.setValidator(new StringLeng... | protected static final SimpleAttributeDefinition DOMAIN =
new SimpleAttributeDefinitionBuilder(Constants.DOMAIN, ModelType.STRING, true)
.setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES)
.setValidator(new StringLeng... |
public static DistributionFactory newInstance() {
DistributionFactory factory = null;
try {
DiscoverClass dc = new DiscoverClass();
factory = (DistributionFactory) dc.newInstance(
DistributionFactory.class,
"org.apache.commons.math.distribution... | public static DistributionFactory newInstance() {
DistributionFactory factory = null;
try {
DiscoverClass dc = new DiscoverClass();
factory = (DistributionFactory) dc.newInstance(
DistributionFactory.class,
"org.apache.commons.math.distribution... |
public void testHttpsConnector() throws Exception {
FileUtils.copyURLToFile(ConnectorTestCase.class.getResource("/management/api/test.keystore"), keyStoreFile);
addConnector(Connector.HTTPS);
// check that the connector is live
String cURL =... | public void testHttpsConnector() throws Exception {
FileUtils.copyURLToFile(ConnectorTestCase.class.getResource("test.keystore"), keyStoreFile);
addConnector(Connector.HTTPS);
// check that the connector is live
String cURL = "https://" + url.getHos... |
protected RealPointValuePair doOptimize() {
final ConvergenceChecker checker = getConvergenceChecker();
point = getStartPoint();
final GoalType goal = getGoalType();
final int n = point.length;
double[] r = computeObjectiveGradient(point);
if (goal == GoalType.MINIMIZ... | protected RealPointValuePair doOptimize() {
final ConvergenceChecker<RealPointValuePair> checker = getConvergenceChecker();
point = getStartPoint();
final GoalType goal = getGoalType();
final int n = point.length;
double[] r = computeObjectiveGradient(point);
if (goal... |
public ServerStartTask(final String serverName, final int portOffset, final List<ServiceActivator> startServices, final List<ModelNode> updates) {
if (serverName == null || serverName.length() == 0) {
throw new IllegalArgumentException("Server name " + serverName + " is invalid; cannot be null o... | public ServerStartTask(final String serverName, final int portOffset, final List<ServiceActivator> startServices, final List<ModelNode> updates) {
if (serverName == null || serverName.length() == 0) {
throw new IllegalArgumentException("Server name " + serverName + " is invalid; cannot be null o... |
private final DeploymentContentDistributor deploymentDistributor;
DeploymentPlanBuilderImpl(DeploymentContentDistributor deploymentDistributor) {
super();
if (deploymentDistributor == null)
throw new IllegalArgumentException("deploymentDistributor is null");
this.deploymentD... | private final DeploymentContentDistributor deploymentDistributor;
DeploymentPlanBuilderImpl(DeploymentContentDistributor deploymentDistributor) {
super();
if (deploymentDistributor == null)
throw new IllegalArgumentException("deploymentDistributor is null");
this.deploymentD... |
private static POJOEndpoint newPojoEndpoint(final PortComponentMetaData portComponentMD, final JBossWebMetaData jbossWebMD) {
final String endpointName = portComponentMD.getServletLink();
final ServletMetaData servletMD = getServletForName(jbossWebMD, endpointName);
final String endpointClas... | private static POJOEndpoint newPojoEndpoint(final PortComponentMetaData portComponentMD, final JBossWebMetaData jbossWebMD) {
final String endpointName = portComponentMD.getServletLink();
final ServletMetaData servletMD = getServletForName(jbossWebMD, endpointName);
final String endpointClas... |
public WSEndpointDeploymentUnit(ClassLoader loader, String context, Map<String, String> urlPatternToClassName,
JBossWebMetaData jbossWebMetaData, WebservicesMetaData metadata) {
this.deploymentName = context + ".deployment";
JAXWSDeployment jaxwsDeployment = new JAXWSDeployment();
... | public WSEndpointDeploymentUnit(ClassLoader loader, String context, Map<String, String> urlPatternToClassName,
JBossWebMetaData jbossWebMetaData, WebservicesMetaData metadata) {
this.deploymentName = context + ".deployment";
JAXWSDeployment jaxwsDeployment = new JAXWSDeployment();
... |
public static void main(String[] args) {
BufferedOutputStream os = null;
BufferedInputStream is = null;
try {
// I. We need to upload content to the domain controller.
/* The following mimics what would happen as part of submitting an HTML form like the
... | public static void main(String[] args) {
BufferedOutputStream os = null;
BufferedInputStream is = null;
try {
// I. We need to upload content to the domain controller.
/* The following mimics what would happen as part of submitting an HTML form like the
... |
public static void main(String[] args) {
BufferedOutputStream os = null;
BufferedInputStream is = null;
try {
// I. We need to upload content to the server.
/* The following mimics what would happen as part of submitting an HTML form like the
* follow... | public static void main(String[] args) {
BufferedOutputStream os = null;
BufferedInputStream is = null;
try {
// I. We need to upload content to the server.
/* The following mimics what would happen as part of submitting an HTML form like the
* follow... |
public Cancellable execute(final NewOperationContext context, final ModelNode operation, final ResultHandler resultHandler) {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
final ModelNode compensati... | public Cancellable execute(final NewOperationContext context, final ModelNode operation, final ResultHandler resultHandler) {
final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
final String name = address.getLastElement().getValue();
final ModelNode compensati... |
public void testReadAttributeWildcards() throws IOException {
final ModelNode address = new ModelNode();
address.add("socket-binding-group", "*");
address.add("socket-binding", "*");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP).s... | public void testReadAttributeWildcards() throws IOException {
final ModelNode address = new ModelNode();
address.add("socket-binding-group", "*");
address.add("socket-binding", "*");
address.protect();
final ModelNode operation = new ModelNode();
operation.get(OP).s... |
S createSession(String sessionId, SockJsHandler sockJsHandler);
/*
* Copyright 2002-2013 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... | S createSession(String sessionId, SockJsHandler sockJsHandler);
/*
* Copyright 2002-2013 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 handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response,
SockJsSessionSupport sockJsSession) throws Exception {
if (MediaType.APPLICATION_FORM_URLENCODED.equals(request.getHeaders().getContentType())) {
if (request.getQueryParams().getFirst("d") == null) {
response.setStat... | public void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse response,
SockJsSessionSupport sockJsSession) throws Exception {
if (MediaType.APPLICATION_FORM_URLENCODED.equals(request.getHeaders().getContentType())) {
if (request.getQueryParams().getFirst("d") == null) {
response.setStat... |
protected void addOperationParameterValueTypeDescription(final ModelNode node, final String operationName, final ResourceDescriptionResolver resolver, final Locale locale, final ResourceBundle bundle) {
final ModelNode valueTypeDesc = getValueTypeDescription(false);
valueTypeDesc.get(DESCRIPTION).se... | protected void addOperationParameterValueTypeDescription(final ModelNode node, final String operationName, final ResourceDescriptionResolver resolver, final Locale locale, final ResourceBundle bundle) {
final ModelNode valueTypeDesc = getValueTypeDescription(true);
valueTypeDesc.get(DESCRIPTION).set... |
private static void addResourceRoot(final ModuleSpec.Builder specBuilder, final ResourceRoot resource)
throws DeploymentUnitProcessingException {
try {
if (resource.getExportFilters().isEmpty()) {
specBuilder.addResourceRoot(ResourceLoaderSpec.createResourceLoaderSpec... | private static void addResourceRoot(final ModuleSpec.Builder specBuilder, final ResourceRoot resource)
throws DeploymentUnitProcessingException {
try {
if (resource.getExportFilters().isEmpty()) {
specBuilder.addResourceRoot(ResourceLoaderSpec.createResourceLoaderSpec... |
public void handleEvent(final StreamConnection channel) {
if (channel instanceof SslConnection) {
adaptor.adapt(new AssembledConnectedSslStreamChannel((SslConnection) channel, channel.getSourceChannel(), channel.getSinkChannel()));
} else {... | public void handleEvent(final StreamConnection channel) {
if (channel instanceof SslConnection) {
adaptor.adapt(new AssembledConnectedSslStreamChannel((SslConnection) channel, channel.getSourceChannel(), channel.getSinkChannel()));
} else {... |
public String colognePhonetic(String text) {
if (text == null) {
return null;
}
text = preprocess(text);
CologneLeftBuffer left = new CologneLeftBuffer(text.length() * 2);
CologneRightBuffer right = new CologneRightBuffer(text.toCharArray());
char nextC... | public String colognePhonetic(String text) {
if (text == null) {
return null;
}
text = preprocess(text);
CologneLeftBuffer left = new CologneLeftBuffer(text.length() * 2);
CologneRightBuffer right = new CologneRightBuffer(text.toCharArray());
char nextC... |
public void sendMessageToBrokerAndReceiveReplyViaTopic() throws Exception {
TextMessage message1 = create(StompCommand.SUBSCRIBE).headers("id:subs1", "destination:/topic/foo").build();
TextMessage message2 = create(StompCommand.SEND).headers("destination:/topic/foo").body("5").build();
TestClientWebSocketHandl... | public void sendMessageToBrokerAndReceiveReplyViaTopic() throws Exception {
TextMessage message1 = create(StompCommand.SUBSCRIBE).headers("id:subs1", "destination:/topic/foo").build();
TextMessage message2 = create(StompCommand.SEND).headers("destination:/topic/foo").body("5").build();
TestClientWebSocketHandl... |
public PointVectorValuePair doOptimize() {
final ConvergenceChecker<PointVectorValuePair> checker
= getConvergenceChecker();
// Computation will be useless without a checker (see "for-loop").
if (checker == null) {
throw new NullArgumentException();
}
... | public PointVectorValuePair doOptimize() {
final ConvergenceChecker<PointVectorValuePair> checker
= getConvergenceChecker();
// Computation will be useless without a checker (see "for-loop").
if (checker == null) {
throw new NullArgumentException();
}
... |
// arrays shared with the other private methods
solvedCols = FastMath.min(nR, nC);
diagR = new double[nC];
jacNorm = new double[nC];
beta = new double[nC];
permutation = new int[nC];
lmDir = new double[nC];
// local point
d... | // arrays shared with the other private methods
solvedCols = FastMath.min(nR, nC);
diagR = new double[nC];
jacNorm = new double[nC];
beta = new double[nC];
permutation = new int[nC];
lmDir = new double[nC];
// local point
d... |
public final void handleMessage(Message<?> message) {
if (!this.running) {
if (logger.isTraceEnabled()) {
logger.trace("STOMP broker relay not running. Ignoring message id=" + message.getHeaders().getId());
}
return;
}
if (logger.isTraceEnabled()) {
logger.trace("Processing message: " + message... | public final void handleMessage(Message<?> message) {
if (!this.running) {
if (logger.isTraceEnabled()) {
logger.trace("STOMP broker relay not running. Ignoring message id=" + message.getHeaders().getId());
}
return;
}
if (logger.isTraceEnabled()) {
logger.trace("Message " + message);
}
ha... |
public void handleMessageFromClient(WebSocketSession session, WebSocketMessage webSocketMessage,
MessageChannel outputChannel) {
try {
Assert.isInstanceOf(TextMessage.class, webSocketMessage);
String payload = ((TextMessage)webSocketMessage).getPayload();
Message<?> message = this.stompMessageConverter... | public void handleMessageFromClient(WebSocketSession session, WebSocketMessage webSocketMessage,
MessageChannel outputChannel) {
try {
Assert.isInstanceOf(TextMessage.class, webSocketMessage);
String payload = ((TextMessage)webSocketMessage).getPayload();
Message<?> message = this.stompMessageConverter... |
public final boolean send(Message<?> message, long timeout) {
Assert.notNull(message, "Message must not be null");
if (logger.isTraceEnabled()) {
logger.trace("[" + this.beanName + "] sending message " + message);
}
message = this.interceptorChain.preSend(message, this);
if (message == null) {
return... | public final boolean send(Message<?> message, long timeout) {
Assert.notNull(message, "Message must not be null");
if (logger.isTraceEnabled()) {
logger.trace("[" + this.beanName + "] send message " + message);
}
message = this.interceptorChain.preSend(message, this);
if (message == null) {
return fa... |
public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
if (logger.isDebugEnabled()) {
logger.debug("Received " + message + ", " + session);
}
super.handleMessage(session, message);
}
| public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
if (logger.isDebugEnabled()) {
logger.debug(message + ", " + session);
}
super.handleMessage(session, message);
}
|
public Collection<E> makeConfirmedFullCollection() {
final List<E> list = new LinkedList<E>();
list.addAll(java.util.Arrays.asList(getFullElements()));
return list;
}
| public Collection<E> makeConfirmedFullCollection() {
final List<E> list = new LinkedList<E>();
list.addAll(Arrays.asList(getFullElements()));
return list;
}
|
public Timer getTimer() throws IllegalStateException, EJBException {
if (service == null) {
// get hold of the timer service through the use of timed object id
service = (TimerServiceImpl) currentServiceContainer().getRequiredService(ServiceName.parse(serviceName)).getValue();
... | public Timer getTimer() throws IllegalStateException, EJBException {
if (service == null) {
// get hold of the timer service through the use of timed object id
service = (TimerServiceImpl) currentServiceContainer().getRequiredService(ServiceName.parse(serviceName)).getValue();
... |
private static String fixExpressions(String line) {
String result = line.replace("${jboss.management.native.port:9999}", "9999");
result = result.replace("${jboss.management.http.port:9990}", "9990");
result = result.replace("${jboss.management.https.port:9443}", "9443");
result = re... | private static String fixExpressions(String line) {
String result = line.replace("${jboss.management.native.port:9999}", "9999");
result = result.replace("${jboss.management.http.port:9990}", "9990");
result = result.replace("${jboss.management.https.port:9993}", "9993");
result = re... |
public OperationResult execute(final ExecutionContext executionContext, final ResultHandler handler) {
ControllerTransaction transaction = null;
try {
final PathAddress address = PathAddress.pathAddress(executionContext.getOperation().require(ModelDescriptionConstants.OP_ADDR));
... | public OperationResult execute(final ExecutionContext executionContext, final ResultHandler handler) {
ControllerTransaction transaction = null;
try {
final PathAddress address = PathAddress.pathAddress(executionContext.getOperation().get(OP_ADDR));
final ProxyController pro... |
public final void invokeAndHandle(
NativeWebRequest request, ModelAndViewContainer mavContainer,
Object... providedArgs) throws Exception {
Object returnValue = invokeForRequest(request, mavContainer, providedArgs);
setResponseStatus((ServletWebRequest) request);
if (returnValue == null) {
if (isRequ... | public final void invokeAndHandle(
NativeWebRequest request, ModelAndViewContainer mavContainer,
Object... providedArgs) throws Exception {
Object returnValue = invokeForRequest(request, mavContainer, providedArgs);
setResponseStatus((ServletWebRequest) request);
if (returnValue == null) {
if (isRequ... |
public void combineWithDefault() {
ConsumesRequestCondition condition1 = new ConsumesRequestCondition("text/plain");
ConsumesRequestCondition condition2 = new ConsumesRequestCondition("*/*");
ConsumesRequestCondition result = condition1.combine(condition2);
assertEquals(condition1, result);
}
| public void combineWithDefault() {
ConsumesRequestCondition condition1 = new ConsumesRequestCondition("text/plain");
ConsumesRequestCondition condition2 = new ConsumesRequestCondition();
ConsumesRequestCondition result = condition1.combine(condition2);
assertEquals(condition1, result);
}
|
public void combineWithDefault() {
ProducesRequestCondition condition1 = new ProducesRequestCondition("text/plain");
ProducesRequestCondition condition2 = new ProducesRequestCondition("*/*");
ProducesRequestCondition result = condition1.combine(condition2);
assertEquals(condition1, result);
}
| public void combineWithDefault() {
ProducesRequestCondition condition1 = new ProducesRequestCondition("text/plain");
ProducesRequestCondition condition2 = new ProducesRequestCondition();
ProducesRequestCondition result = condition1.combine(condition2);
assertEquals(condition1, result);
}
|
public Object decode(Object object) throws DecoderException {
try {
char[] charArray = object instanceof String ? ((String) object).toCharArray() : (char[]) object;
return decodeHex(charArray);
} catch (ClassCastException e) {
throw new DecoderException(e.getMessa... | public Object decode(Object object) throws DecoderException {
try {
char[] charArray = object instanceof String ? ((String) object).toCharArray() : (char[]) object;
return decodeHex(charArray);
} catch (ClassCastException e) {
throw new DecoderException(e.getMessa... |
public String decode(String pString) throws DecoderException {
if (pString == null) {
return null;
}
try {
return decodeText(pString);
} catch (UnsupportedEncodingException e) {
throw new DecoderException(e.getMessage());
}
}
| public String decode(String pString) throws DecoderException {
if (pString == null) {
return null;
}
try {
return decodeText(pString);
} catch (UnsupportedEncodingException e) {
throw new DecoderException(e.getMessage(), e);
}
}
|
public String decode(String pString) throws DecoderException {
if (pString == null) {
return null;
}
try {
return decode(pString, getDefaultCharset());
} catch (UnsupportedEncodingException e) {
throw new DecoderException(e.getMessage());
}... | public String decode(String pString) throws DecoderException {
if (pString == null) {
return null;
}
try {
return decode(pString, getDefaultCharset());
} catch (UnsupportedEncodingException e) {
throw new DecoderException(e.getMessage(), e);
... |
public static String[] getRootCauseStackTrace(Throwable throwable) {
if (throwable == null) {
return ArrayUtils.EMPTY_STRING_ARRAY;
}
Throwable throwables[] = getThrowables(throwable);
int count = throwables.length;
List<String> frames = new ArrayList<String>();
... | public static String[] getRootCauseStackTrace(Throwable throwable) {
if (throwable == null) {
return ArrayUtils.EMPTY_STRING_ARRAY;
}
Throwable throwables[] = getThrowables(throwable);
int count = throwables.length;
List<String> frames = new ArrayList<String>();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.