buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void start() {
super.start();
if (this.initOnStartup) {
// Do not call createInstance() because we can't ever assume that the singleton instance
// hasn't already been created.
ROOT_LOGGER.debug(this.getComponentName() + " bean is a @Startup (a.k.a init-on-... | public void start() {
super.start();
if (this.initOnStartup) {
// Do not call createInstance() because we can't ever assume that the singleton instance
// hasn't already been created.
ROOT_LOGGER.debugf("%s bean is a @Startup (a.k.a init-on-startup) bean, creating... |
public OutputStream _invoke(final String opName, final InputStream in, final ResponseHandler handler) {
if (logger.isTraceEnabled()) {
logger.trace("EJBObject invocation: " + opName);
}
SkeletonStrategy op = methodInvokerMap.get(opName);
if (op == null) {
lo... | public OutputStream _invoke(final String opName, final InputStream in, final ResponseHandler handler) {
if (logger.isTraceEnabled()) {
logger.trace("EJBObject invocation: " + opName);
}
SkeletonStrategy op = methodInvokerMap.get(opName);
if (op == null) {
lo... |
public void start(StartContext context) throws StartException {
recoveryManagerService.getValue().addSerializableXAResourceDeserializer(EJBXAResourceDeserializer.INSTANCE);
logger.debug("Registered EJB XA resource deserializer " + EJBXAResourceDeserializer.INSTANCE);
}
| public void start(StartContext context) throws StartException {
recoveryManagerService.getValue().addSerializableXAResourceDeserializer(EJBXAResourceDeserializer.INSTANCE);
logger.debugf("Registered EJB XA resource deserializer %s", EJBXAResourceDeserializer.INSTANCE);
}
|
public void initialize(EJBClientContext context) {
context.registerEJBClientContextListener(EJBTransactionRecoveryService.INSTANCE);
EjbLogger.ROOT_LOGGER.debug("Registered " + EJBTransactionRecoveryService.INSTANCE + " as a listener to EJB client context " + context);
}
| public void initialize(EJBClientContext context) {
context.registerEJBClientContextListener(EJBTransactionRecoveryService.INSTANCE);
EjbLogger.ROOT_LOGGER.debugf("Registered %s as a listener to EJB client context %s", EJBTransactionRecoveryService.INSTANCE, context);
}
|
public void processMessage(ChannelAssociation channelAssociation, InputStream inputStream) throws IOException {
final DataInputStream input = new DataInputStream(inputStream);
// read the id of the invocation which needs to be cancelled
final short invocationToCancel = input.readShort();
... | public void processMessage(ChannelAssociation channelAssociation, InputStream inputStream) throws IOException {
final DataInputStream input = new DataInputStream(inputStream);
// read the id of the invocation which needs to be cancelled
final short invocationToCancel = input.readShort();
... |
public void run() {
// check if it's async. If yes, then notify the client that's it's async method (so that
// it can unblock if necessary)
if (componentView.isAsynchronous(invokedMethod)) {
try {
... | public void run() {
// check if it's async. If yes, then notify the client that's it's async method (so that
// it can unblock if necessary)
if (componentView.isAsynchronous(invokedMethod)) {
try {
... |
protected SubordinateTransaction tryRecoveryForImportedTransaction() throws Exception {
final XATerminator xaTerminator = SubordinationManager.getXATerminator();
if (xaTerminator instanceof XATerminatorImple) {
EjbLogger.ROOT_LOGGER.debug("Trying to recover an imported transaction for Xi... | protected SubordinateTransaction tryRecoveryForImportedTransaction() throws Exception {
final XATerminator xaTerminator = SubordinationManager.getXATerminator();
if (xaTerminator instanceof XATerminatorImple) {
EjbLogger.ROOT_LOGGER.debugf("Trying to recover an imported transaction for X... |
public void run() {
final TimerImpl timer = timerService.getTimer(timerId);
try {
if (cancelled) {
ROOT_LOGGER.debug("Timer task was cancelled for " + timer);
return;
}
Date now = new Date();
if (ROOT_LOGGER.isDebugEnab... | public void run() {
final TimerImpl timer = timerService.getTimer(timerId);
try {
if (cancelled) {
ROOT_LOGGER.debugf("Timer task was cancelled for %s", timer);
return;
}
Date now = new Date();
if (ROOT_LOGGER.isDebugEn... |
public JdrReport collect() throws OperationFailedException {
JdrRunner runner = new JdrRunner(true);
serverEnvironment = serverEnvironmentValue.getValue();
runner.setJbossHomeDir(serverEnvironment.getHomeDir().getAbsolutePath());
runner.setReportLocationDir(serverEnvironment.getServe... | public JdrReport collect() throws OperationFailedException {
JdrRunner runner = new JdrRunner();
serverEnvironment = serverEnvironmentValue.getValue();
runner.setJbossHomeDir(serverEnvironment.getHomeDir().getAbsolutePath());
runner.setReportLocationDir(serverEnvironment.getServerTem... |
private final Set<Object> interceptorContextKeys = new HashSet<Object>();
public ComponentConfiguration(final ComponentDescription componentDescription, final ClassIndex classIndex, final ClassLoader moduleClassLoader, final ModuleLoader moduleLoader) {
this.componentDescription = componentDescription;... | private final Set<Object> interceptorContextKeys = new HashSet<Object>();
public ComponentConfiguration(final ComponentDescription componentDescription, final ClassIndex classIndex, final ClassLoader moduleClassLoader, final ModuleLoader moduleLoader) {
this.componentDescription = componentDescription;... |
public EEModuleDescription(final String applicationName, final String moduleName, final String earApplicationName, final boolean appClient) {
this.applicationName = applicationName;
this.moduleName = moduleName;
this.earApplicationName = earApplicationName;
this.appClient = appClient... | public EEModuleDescription(final String applicationName, final String moduleName, final String earApplicationName, final boolean appClient) {
this.applicationName = applicationName;
this.moduleName = moduleName;
this.earApplicationName = earApplicationName;
this.appClient = appClient... |
public KryoValuesDeserializer(Map conf) {
_kryo = KryoFactory.getKryo(conf);
}
| public KryoValuesDeserializer(Map conf) {
_kryo = SerializationFactory.getKryo(conf);
}
|
public KryoValuesSerializer(Map conf) {
_kryo = KryoFactory.getKryo(conf);
_delegate = new ListDelegate();
}
| public KryoValuesSerializer(Map conf) {
_kryo = SerializationFactory.getKryo(conf);
_delegate = new ListDelegate();
}
|
private void writeHeader(GzipParameters parameters) throws IOException {
String filename = parameters.getFilename();
String comment = parameters.getComment();
ByteBuffer buffer = ByteBuffer.allocate(10);
buffer.order(ByteOrder.LITTLE_ENDIAN);
buffer.putShort((short) ... | private void writeHeader(GzipParameters parameters) throws IOException {
String filename = parameters.getFilename();
String comment = parameters.getComment();
ByteBuffer buffer = ByteBuffer.allocate(10);
buffer.order(ByteOrder.LITTLE_ENDIAN);
buffer.putShort((short) ... |
protected void writeMessage(String msg) {
message.append(msg);
}
};
tag.setPageContext(pc);
tag.setText("test & text é");
tag.setHtmlEscape(true);
assertTrue("Correct doStartTag return value", tag.doStartTag() == Tag.EVAL_BODY_INCLUDE);
assertEquals("Correct doEndTag return value", Tag.EVAL_PAGE, ... | protected void writeMessage(String msg) {
message.append(msg);
}
};
tag.setPageContext(pc);
tag.setText("test & text é");
tag.setHtmlEscape(true);
assertTrue("Correct doStartTag return value", tag.doStartTag() == Tag.EVAL_BODY_INCLUDE);
assertEquals("Correct doEndTag return value", Tag.EVAL_PAGE, ... |
public static long freeSpaceKb(String path) throws IOException {
return INSTANCE.freeSpaceOS(path, OS, true);
}
//-----------------------------------------------------------------------
/**
* Returns the free space on a drive or volume in a cross-platform manner.
* Note that some OS's... | public static long freeSpaceKb(String path) throws IOException {
return INSTANCE.freeSpaceOS(path, OS, true);
}
//-----------------------------------------------------------------------
/**
* Returns the free space on a drive or volume in a cross-platform manner.
* Note that some OS's... |
public static boolean wildcardMatch(String filename, String wildcardMatcher, IOCase caseSensitivity) {
if (filename == null && wildcardMatcher == null) {
return true;
}
if (filename == null || wildcardMatcher == null) {
return false;
}
if (caseSensitiv... | public static boolean wildcardMatch(String filename, String wildcardMatcher, IOCase caseSensitivity) {
if (filename == null && wildcardMatcher == null) {
return true;
}
if (filename == null || wildcardMatcher == null) {
return false;
}
if (caseSensitiv... |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(super.toString());
buffer.append("(");
if (fileFilters != null) {
for (int i = 0; i < fileFilters.size(); i++) {
if (i > 0) {
buffer.append(",");
... | public String toString() {
StringBuilder buffer = new StringBuilder();
buffer.append(super.toString());
buffer.append("(");
if (fileFilters != null) {
for (int i = 0; i < fileFilters.size(); i++) {
if (i > 0) {
buffer.append(",");
... |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(super.toString());
buffer.append("(");
if (names != null) {
for (int i = 0; i < names.length; i++) {
if (i > 0) {
buffer.append(",");
}
... | public String toString() {
StringBuilder buffer = new StringBuilder();
buffer.append(super.toString());
buffer.append("(");
if (names != null) {
for (int i = 0; i < names.length; i++) {
if (i > 0) {
buffer.append(",");
}... |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(super.toString());
buffer.append("(");
if (prefixes != null) {
for (int i = 0; i < prefixes.length; i++) {
if (i > 0) {
buffer.append(",");
... | public String toString() {
StringBuilder buffer = new StringBuilder();
buffer.append(super.toString());
buffer.append("(");
if (prefixes != null) {
for (int i = 0; i < prefixes.length; i++) {
if (i > 0) {
buffer.append(",");
... |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(super.toString());
buffer.append("(");
if (suffixes != null) {
for (int i = 0; i < suffixes.length; i++) {
if (i > 0) {
buffer.append(",");
... | public String toString() {
StringBuilder buffer = new StringBuilder();
buffer.append(super.toString());
buffer.append("(");
if (suffixes != null) {
for (int i = 0; i < suffixes.length; i++) {
if (i > 0) {
buffer.append(",");
... |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append(super.toString());
buffer.append("(");
if (wildcards != null) {
for (int i = 0; i < wildcards.length; i++) {
if (i > 0) {
buffer.append(",");
... | public String toString() {
StringBuilder buffer = new StringBuilder();
buffer.append(super.toString());
buffer.append("(");
if (wildcards != null) {
for (int i = 0; i < wildcards.length; i++) {
if (i > 0) {
buffer.append(",");
... |
public SimpleAttributeDefinition build() {
return new SimpleAttributeDefinition(name, xmlName, defaultValue, type, allowNull, allowExpression, measurementUnit,
corrector, validator, validateNull, alternatives, requires, flags);
}
| public SimpleAttributeDefinition build() {
return new SimpleAttributeDefinition(name, xmlName, defaultValue, type, allowNull, allowExpression, measurementUnit,
corrector, validator, validateNull, alternatives, requires, attributeMarshaller, flags);
}
|
public void marshallAsElement(ModelNode resourceModel, XMLStreamWriter writer) throws XMLStreamException {
if (resourceModel.hasDefined(getName())) {
String selector = resourceModel.get(getName()).asString();
writer.writeEmptyElement(Element.SELECTOR.getLocalName());
writ... | public void marshallAsElement(ModelNode resourceModel,final boolean marshalDefault, XMLStreamWriter writer) throws XMLStreamException {
if (resourceModel.hasDefined(getName())) {
String selector = resourceModel.get(getName()).asString();
writer.writeEmptyElement(Element.SELECTOR.getL... |
public void marshallAsElement(ModelNode resourceModel, XMLStreamWriter writer) throws XMLStreamException {
if (resourceModel.hasDefined(getName())) {
String name = resourceModel.get(getName()).asString();
writer.writeEmptyElement(getXmlName());
writer.writeAttribute(Attri... | public void marshallAsElement(ModelNode resourceModel,final boolean marshalDefault, XMLStreamWriter writer) throws XMLStreamException {
if (resourceModel.hasDefined(getName())) {
String name = resourceModel.get(getName()).asString();
writer.writeEmptyElement(getXmlName());
... |
public void marshallAsElement(ModelNode resourceModel, XMLStreamWriter writer)
throws XMLStreamException {
if (isMarshallable(resourceModel)) {
writer.writeEmptyElement(getXmlName());
writer.writeAttribute(attribute.getLocalName(), resourceModel.get(getName()).asString())... | public void marshallAsElement(ModelNode resourceModel, final boolean marshalDefault, XMLStreamWriter writer)
throws XMLStreamException {
if (isMarshallable(resourceModel)) {
writer.writeEmptyElement(getXmlName());
writer.writeAttribute(attribute.getLocalName(), resourceMo... |
public ModelNode getProfileOperations(String profileName) {
ModelNode operation = new ModelNode();
operation.get(OP).set(DESCRIBE);
operation.get(OP_ADDR).set(PathAddress.pathAddress(PathElement.pathElement(PROFILE, profileName)).toModelNode());
try {
ModelNode rsp = lo... | public ModelNode getProfileOperations(String profileName) {
ModelNode operation = new ModelNode();
operation.get(OP).set(DESCRIBE);
operation.get(OP_ADDR).set(PathAddress.pathAddress(PathElement.pathElement(PROFILE, profileName)).toModelNode());
try {
ModelNode rsp = lo... |
public void testFindParameterValue() {
Map params = new HashMap();
params.put("myKey1", "myValue1");
params.put("myKey2_myValue2", "xxx");
params.put("myKey3_myValue3.x", "xxx");
params.put("myKey4_myValue4.y", "yyy");
assertNull(WebUtils.findParameterValue(params, "myKey0"));
assertEquals("myValue1", W... | public void testFindParameterValue() {
Map<String, String> params = new HashMap<String, String>();
params.put("myKey1", "myValue1");
params.put("myKey2_myValue2", "xxx");
params.put("myKey3_myValue3.x", "xxx");
params.put("myKey4_myValue4.y", "yyy");
assertNull(WebUtils.findParameterValue(params, "myKey0"... |
package org.jboss.as.process.protocol;
/*
* 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.process.protocol;
/*
* 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.process.protocol;
/*
* 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.process.protocol;
/*
* 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.process.protocol;
/*
* 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.process.protocol;
/*
* 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.process.protocol;
/*
* 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.process.protocol;
/*
* 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 ... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final Index index = phaseContext.getAttachment(Attachments.ANNOTATION_INDEX);
if (index == null)
return; // Skip if there is no annotation index
final DotName runWithName = DotNam... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final Index index = phaseContext.getAttachment(Attachments.ANNOTATION_INDEX);
if (index == null)
return; // Skip if there is no annotation index
final DotName runWithName = DotNam... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnitContext();
// Check if we already have an OSGi deployment
Deployment deployment = OSGiDeploymentAttachment.getA... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
// Check if we already have an OSGi deployment
Deployment deployment = OSGiDeploymentAttachment.getAttachme... |
public static void addService(DeploymentPhaseContext context) {
final DeploymentUnit deploymentUnitContext = context.getDeploymentUnitContext();
addService(context.getServiceTarget(), OSGiDeploymentAttachment.getAttachment(deploymentUnitContext), deploymentUnitContext.getName());
}
| public static void addService(DeploymentPhaseContext context) {
final DeploymentUnit deploymentUnitContext = context.getDeploymentUnit();
addService(context.getServiceTarget(), OSGiDeploymentAttachment.getAttachment(deploymentUnitContext), deploymentUnitContext.getName());
}
|
protected void setupServices(BatchBuilder batchBuilder) throws Exception {
super.setupServices(batchBuilder);
batchBuilder.addService(MBeanServerService.SERVICE_NAME, new MBeanServerService()).install();
final DeploymentChain deploymentChain = new DeploymentChainImpl();
batchBuilder... | protected void setupServices(BatchBuilder batchBuilder) throws Exception {
super.setupServices(batchBuilder);
batchBuilder.addService(MBeanServerService.SERVICE_NAME, new MBeanServerService()).install();
final DeploymentChain deploymentChain = new DeploymentChainImpl();
batchBuilder... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnitContext();
final ServiceName moduleContextService... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
final ServiceName moduleContextServiceName = ... |
DeploymentUnit getDeploymentUnit();
/*
* 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... | DeploymentUnit getDeploymentUnit();
/*
* 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 deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
// Do nothing if the manifest is already available
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnitContext();
Manifest manifest = deploymentUnitContext.getAttachment... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
// Do nothing if the manifest is already available
final DeploymentUnit deploymentUnitContext = phaseContext.getDeploymentUnit();
Manifest manifest = deploymentUnitContext.getAttachment(Attach... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final Manifest manifest = phaseContext.getAttachment(Attachments.MANIFEST);
if(manifest == null)
return;
final String dependencyString = manifest.getMainAttributes().getValue("Depe... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final Manifest manifest = phaseContext.getAttachment(Attachments.MANIFEST);
if(manifest == null)
return;
final String dependencyString = manifest.getMainAttributes().getValue("Depe... |
private void addLdapAuthorizationService(OperationContext context, ModelNode ldap, ServiceName realmServiceName, String realmName, ServiceTarget serviceTarget,
List<ServiceController<?>> newControllers, ServiceBuilder<?> realmBuilder,
InjectedValue<SubjectSupplementalService> injector) throw... | private void addLdapAuthorizationService(OperationContext context, ModelNode ldap, ServiceName realmServiceName, String realmName, ServiceTarget serviceTarget,
List<ServiceController<?>> newControllers, ServiceBuilder<?> realmBuilder,
InjectedValue<SubjectSupplementalService> injector) throw... |
private void qrDecomposition() throws OptimizationException {
// initializations
for (int k = 0; k < cols; ++k) {
permutation[k] = k;
double norm2 = 0;
for (int i = 0; i < jacobian.length; ++i) {
double akk = jacobian[i][k];
norm2 ... | private void qrDecomposition() throws OptimizationException {
// initializations
for (int k = 0; k < cols; ++k) {
permutation[k] = k;
double norm2 = 0;
for (int i = 0; i < jacobian.length; ++i) {
double akk = jacobian[i][k];
norm2 ... |
public SimpleImmutableSessionAttributes(ImmutableSessionAttributes attributes) {
Map<String, Object> map = new HashMap<>();
for (String name: attributes.getAttributeNames()) {
this.attributes.put(name, attributes.getAttribute(name));
}
this.attributes = Collections.unmodi... | public SimpleImmutableSessionAttributes(ImmutableSessionAttributes attributes) {
Map<String, Object> map = new HashMap<>();
for (String name: attributes.getAttributeNames()) {
map.put(name, attributes.getAttribute(name));
}
this.attributes = Collections.unmodifiableMap(ma... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ManagementResourceRegistration baseRegistration = deploymentUnit.getAttachment(DeploymentModelUtils.MUTABLE_REGISTRATION_AT... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ManagementResourceRegistration baseRegistration = deploymentUnit.getAttachment(DeploymentModelUtils.MUTABLE_REGISTRATION_AT... |
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ServiceController<?> managementRepoService = context.getServiceRegistry(false).getService(
ConnectorServices.MANAGEMENT_REPOSITORY_SERVICE);
... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ServiceController<?> managementRepoService = context.getServiceRegistry(false).getService(
ConnectorServices.MANAGEMENT_REPOSITORY_SERVICE);
... |
private T getDataSourceConfig(final PathAddress operationAddress) throws OperationFailedException {
final List<PathElement> relativeAddress = new ArrayList<PathElement>();
for (int i = operationAddress.size() - 1; i >= 0; i--) {
PathElement pe = operationAddress.getElement(i);
... | private T getDataSourceConfig(final PathAddress operationAddress) throws OperationFailedException {
final List<PathElement> relativeAddress = new ArrayList<PathElement>();
for (int i = operationAddress.size() - 1; i >= 0; i--) {
PathElement pe = operationAddress.getElement(i);
... |
public void testToString() {
final String s = init.toString();
final Pattern pattern = Pattern
.compile("ConstantInitializer@\\d+ \\[ object = " + VALUE
+ " \\]");
assertTrue("Wrong string: " + s, pattern.matcher(s).matches());
}
| public void testToString() {
final String s = init.toString();
final Pattern pattern = Pattern
.compile("ConstantInitializer@-?\\d+ \\[ object = " + VALUE
+ " \\]");
assertTrue("Wrong string: " + s, pattern.matcher(s).matches());
}
|
public <T> T getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) throws EvaluationException {
Object value = getValue(context, rootObject);
return ExpressionUtils.convertTypedValue(null, new TypedValue(value), desiredResultType);
}
| public <T> T getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) throws EvaluationException {
Object value = getValue(context, rootObject);
return ExpressionUtils.convertTypedValue(context, new TypedValue(value), desiredResultType);
}
|
protected Context getDefaultInitCtx() throws NamingException {
if (!gotDefault) {
// if there is a initial context factory prop in the env use it to create the default ctx
final String factoryClassName = myProps != null ? (String) myProps.get(Context.INITIAL_CONTEXT_FACTORY) : null;
... | protected Context getDefaultInitCtx() throws NamingException {
if (!gotDefault) {
// if there is a initial context factory prop in the env use it to create the default ctx
final String factoryClassName = myProps != null ? (String) myProps.get(Context.INITIAL_CONTEXT_FACTORY) : null;
... |
NamingException failedToInstantiate(@Cause Throwable cause, String description, String className, ClassLoader classLoader);
/*
* 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... | NamingException failedToInstantiate(@Cause Throwable cause, String description, String className, ClassLoader classLoader);
/*
* 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... |
public static byte[] toDosTime(long t) {
Calendar c = Calendar.getInstance();
c.setTimeInMillis(t);
int year = c.get(Calendar.YEAR);
if (year < 1980) {
return (byte[]) DOS_TIME_MIN.clone(); // stop callers from changing the array
}
int month = c.get(Calen... | public static byte[] toDosTime(long t) {
Calendar c = Calendar.getInstance();
c.setTimeInMillis(t);
int year = c.get(Calendar.YEAR);
if (year < 1980) {
return copy(DOS_TIME_MIN); // stop callers from changing the array
}
int month = c.get(Calendar.MONTH) ... |
public CSVConfig guess() {
try {
// tralalal
BufferedReader bIn = new BufferedReader(new InputStreamReader((getInputStream())));
String[] lines = new String[10];
String line = null;
int counter = 0;
while ( (line = bIn.readLine()) != nu... | public CSVConfig guess() {
try {
// tralalal
BufferedReader bIn = new BufferedReader(new InputStreamReader((getInputStream())));
String[] lines = new String[10];
String line = null;
int counter = 0;
while ( (line = bIn.readLine()) != nu... |
public Cache<K, V> createCache(String beanName, StatefulObjectFactory<V> factory, PassivationManager<K, V> passivationManager, StatefulTimeoutInfo timeout) {
// Create/find the cache for SerializationGroup that the container
// may be associated with
PassivatingBackingCache<UUID, Cacheable<... | public Cache<K, V> createCache(String beanName, StatefulObjectFactory<V> factory, PassivationManager<K, V> passivationManager, StatefulTimeoutInfo timeout) {
// Create/find the cache for SerializationGroup that the container
// may be associated with
PassivatingBackingCache<UUID, Cacheable<... |
public void writeContent(final XMLExtendedStreamWriter writer, final SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(EJB3SubsystemNamespace.EJB3_1_5.getUriString(), false);
writeElements(writer, context);
// write the subsystem end element
... | public void writeContent(final XMLExtendedStreamWriter writer, final SubsystemMarshallingContext context) throws XMLStreamException {
context.startSubsystemElement(EJB3SubsystemNamespace.EJB3_2_0.getUriString(), false);
writeElements(writer, context);
// write the subsystem end element
... |
public HostControllerEnvironment(Map<String, String> hostSystemProperties, boolean isRestart,
InetAddress processControllerAddress, Integer processControllerPort, InetAddress hostControllerAddress,
Integer hostControllerPort, String defaultJV... | public HostControllerEnvironment(Map<String, String> hostSystemProperties, boolean isRestart,
InetAddress processControllerAddress, Integer processControllerPort, InetAddress hostControllerAddress,
Integer hostControllerPort, String defaultJV... |
public ServerEnvironment(final String hostControllerName, final Properties props, final Map<String, String> env, final String serverConfig,
final LaunchType launchType, final RunningMode initialRunningMode, ProductConfig productConfig) {
if (props == null) {
throw Co... | public ServerEnvironment(final String hostControllerName, final Properties props, final Map<String, String> env, final String serverConfig,
final LaunchType launchType, final RunningMode initialRunningMode, ProductConfig productConfig) {
if (props == null) {
throw Co... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
WarMetaData metaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY);
if(metaData == null || metaData.getMergedJBoss... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
WarMetaData metaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY);
if(metaData == null || metaData.getMergedJBoss... |
package backtype.storm.contrib.jms.trident;
package backtype.storm.contrib.jms;
/**
* Batch coordination metadata object for the TridentJmsSpout.
* This implementation does not use batch metadata, so the object is empty.
*
*/
public class JmsBatch {
// Empty class
} | package backtype.storm.contrib.jms.trident;
package backtype.storm.contrib.jms.trident;
/**
* Batch coordination metadata object for the TridentJmsSpout.
* This implementation does not use batch metadata, so the object is empty.
*
*/
public class JmsBatch {
// Empty class
} |
private void findEigenVectors(double[][] householderMatrix) {
double[][]z = householderMatrix.clone();
final int n = main.length;
realEigenvalues = new double[n];
imagEigenvalues = new double[n];
double[] e = new double[n];
for (int i = 0; i < n - 1; i++) {
... | private void findEigenVectors(double[][] householderMatrix) {
double[][]z = householderMatrix.clone();
final int n = main.length;
realEigenvalues = new double[n];
imagEigenvalues = new double[n];
double[] e = new double[n];
for (int i = 0; i < n - 1; i++) {
... |
public void testFloatScalbSpecialCases() {
Assert.assertEquals(0f, FastMath.scalb(Float.MIN_VALUE, -30), 0F);
Assert.assertEquals(2 * Float.MIN_VALUE, FastMath.scalb(Float.MIN_VALUE, 1), 0F);
Assert.assertEquals(7.555786e22f, FastMath.scalb(Float.MA... | public void testFloatScalbSpecialCases() {
Assert.assertEquals(0f, FastMath.scalb(Float.MIN_VALUE, -30), 0F);
Assert.assertEquals(2 * Float.MIN_VALUE, FastMath.scalb(Float.MIN_VALUE, 1), 0F);
Assert.assertEquals(7.555786e22f, FastMath.scalb(Float.MA... |
public Object getValueAndReset() {
Long collectionCountP = _gcBean.getCollectionCount();
Long collectionTimeP = _gcBean.getCollectionCount();
Map ret = null;
if(_collectionCount!=null && _collectionTime!=null) {
ret = ImmutableMap.builder()
... | public Object getValueAndReset() {
Long collectionCountP = _gcBean.getCollectionCount();
Long collectionTimeP = _gcBean.getCollectionTime();
Map ret = null;
if(_collectionCount!=null && _collectionTime!=null) {
ret = ImmutableMap.builder()
... |
protected void doHandle(CommandContext ctx) throws CommandLineException {
final IfElseBlock ifBlock = IfElseBlock.remove(ctx);
final BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
if(ifBlock.isInIf()) {
throw new CommandLi... | protected void doHandle(CommandContext ctx) throws CommandLineException {
final IfElseBlock ifBlock = IfElseBlock.remove(ctx);
final BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
if(ifBlock.isInIf()) {
throw new CommandLi... |
public Identifier(String payload,int pos) {
super(pos);
this.id = new TypedValue(payload, STRING_TYPE_DESCRIPTOR);
}
| public Identifier(String payload,int pos) {
super(pos);
this.id = new TypedValue(payload);
}
|
private final TypedValue value;
IntLiteral(String payload, int pos, int value) {
super(payload, pos);
this.value = new TypedValue(value, INTEGER_TYPE_DESCRIPTOR);
}
| private final TypedValue value;
IntLiteral(String payload, int pos, int value) {
super(payload, pos);
this.value = new TypedValue(value);
}
|
private final TypedValue value;
LongLiteral(String payload, int pos, long value) {
super(payload, pos);
this.value = new TypedValue(value, LONG_TYPE_DESCRIPTOR);
}
| private final TypedValue value;
LongLiteral(String payload, int pos, long value) {
super(payload, pos);
this.value = new TypedValue(value);
}
|
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException {
// Cache the concatenation of child identifiers
if (this.value == null) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < getChildCount(); i++) {
Object value = children[i].getValueInternal(state).getValue(... | public TypedValue getValueInternal(ExpressionState state) throws EvaluationException {
// Cache the concatenation of child identifiers
if (this.value == null) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < getChildCount(); i++) {
Object value = children[i].getValueInternal(state).getValue(... |
public RealLiteral(String payload, int pos, double value) {
super(payload, pos);
this.value = new TypedValue(value,DOUBLE_TYPE_DESCRIPTOR);
}
| public RealLiteral(String payload, int pos, double value) {
super(payload, pos);
this.value = new TypedValue(value);
}
|
public StringLiteral(String payload, int pos, String value) {
super(payload,pos);
// TODO should these have been skipped being created by the parser rules? or not?
value = value.substring(1, value.length() - 1);
this.value = new TypedValue(value.replaceAll("''", "'"),STRING_TYPE_DESCRIPTOR);
}
| public StringLiteral(String payload, int pos, String value) {
super(payload,pos);
// TODO should these have been skipped being created by the parser rules? or not?
value = value.substring(1, value.length() - 1);
this.value = new TypedValue(value.replaceAll("''", "'"));
}
|
public MapEntryConverter(TypeDescriptor sourceKeyType, TypeDescriptor sourceValueType, TypeDescriptor targetKeyType,
TypeDescriptor targetValueType, boolean keysCompatible, boolean valuesCompatible,
GenericConversionService conversionService) {
if (sourceKeyType != TypeDescriptor.NULL && targetKeyType != TypeD... | public MapEntryConverter(TypeDescriptor sourceKeyType, TypeDescriptor sourceValueType, TypeDescriptor targetKeyType,
TypeDescriptor targetValueType, boolean keysCompatible, boolean valuesCompatible,
GenericConversionService conversionService) {
if (sourceKeyType != TypeDescriptor.NULL && targetKeyType != TypeD... |
public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> list) throws XMLStreamException {
// No attributes
if (reader.getAttributeCount() > 0) {
throw unexpectedAttribute(reader, 0);
}
final ModelNode address = new ModelNode();
address... | public void readElement(final XMLExtendedStreamReader reader, final List<ModelNode> list) throws XMLStreamException {
// No attributes
if (reader.getAttributeCount() > 0) {
throw unexpectedAttribute(reader, 0);
}
final ModelNode address = new ModelNode();
address... |
public void configureDependency(final ServiceBuilder<?> serviceBuilder, final ComponentStartService service) throws DeploymentUnitProcessingException {
serviceBuilder.addDependency(createdView.getServiceName(), ComponentView.class, factory.getViewToCreate());
... | public void configureDependency(final ServiceBuilder<?> serviceBuilder, final ComponentStartService service) throws DeploymentUnitProcessingException {
serviceBuilder.addDependency(createdView.getServiceName(), ComponentView.class, factory.getViewToCreate());
... |
public enum Operation {
ADD, SUBTRACT, DIVIDE, MULTIPLY, MODULUS
} | public enum Operation {
ADD, SUBTRACT, DIVIDE, MULTIPLY, MODULUS, POWER
} |
public void run() {
final SessionID sessionID;
try {
try {
sessionID = statefulSessionComponent.createSession();
} catch (Throwable t) {
EjbLogger.ROOT_LOGGER.exceptionGeneratingSessionId(t, statefulSessionComponent.... | public void run() {
final SessionID sessionID;
try {
try {
sessionID = statefulSessionComponent.createSessionRemote();
} catch (Throwable t) {
EjbLogger.ROOT_LOGGER.exceptionGeneratingSessionId(t, statefulSessionComp... |
public static void addService(DeploymentPhaseContext phaseContext, Deployment deployment) {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final BundleInstallService service = new BundleInstallService(deployment);
final String contextName = deploymentUnit.getName();
... | public static void addService(DeploymentPhaseContext phaseContext, Deployment deployment) {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final BundleInstallService service = new BundleInstallService(deployment);
final String contextName = deploymentUnit.getName();
... |
private void processService(ServiceController<? extends Bundle> controller) {
controller.removeListener(this);
Map<ServiceName, Tuple> bundlesToStart = null;
synchronized (this) {
ServiceName key = controller.getName();
... | private void processService(ServiceController<? extends Bundle> controller) {
controller.removeListener(this);
Map<ServiceName, Tuple> bundlesToStart = null;
synchronized (this) {
ServiceName key = controller.getName();
... |
private void readHostElement(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list) throws XMLStreamException {
parseNamespaces(reader, address, list);
// attributes
final int count = reader.getAttributeCount();
for (int i = 0; i < count; i ++) {... | private void readHostElement(final XMLExtendedStreamReader reader, final ModelNode address, final List<ModelNode> list) throws XMLStreamException {
parseNamespaces(reader, address, list);
// attributes
final int count = reader.getAttributeCount();
for (int i = 0; i < count; i ++) {... |
public void formatValue() {
Calendar cal = Calendar.getInstance(Locale.US);
cal.clear();
cal.set(Calendar.YEAR, 2009);
cal.set(Calendar.MONTH, Calendar.JUNE);
cal.set(Calendar.DAY_OF_MONTH, 1);
assertEquals("2009-06-01", formatter.format(cal.getTime(), Locale.US));
}
| public void formatValue() {
Calendar cal = Calendar.getInstance(Locale.US);
cal.clear();
cal.set(Calendar.YEAR, 2009);
cal.set(Calendar.MONTH, Calendar.JUNE);
cal.set(Calendar.DAY_OF_MONTH, 1);
assertEquals("2009-06-01", formatter.print(cal.getTime(), Locale.US));
}
|
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
final ServicesAttachment servicesAttachmen... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
final ServicesAttachment servicesAttachmen... |
private PersistenceProviderAdaptor loadPersistenceAdapterModule(String persistenceProviderClass, String adapterModule) throws
DeploymentUnitProcessingException {
final ModuleLoader moduleLoader = Module.getBootModuleLoader();
PersistenceProviderAdaptor persistenceProviderAdaptor = null;
... | private PersistenceProviderAdaptor loadPersistenceAdapterModule(String persistenceProviderClass, String adapterModule) throws
DeploymentUnitProcessingException {
final ModuleLoader moduleLoader = Module.getBootModuleLoader();
PersistenceProviderAdaptor persistenceProviderAdaptor = null;
... |
void injectJtaManager(JtaManager jtaManager);
/*
* 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; y... | void injectJtaManager(JtaManager jtaManager);
/*
* 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; y... |
package org.apache.commons.math.exception.util;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache ... | package org.apache.commons.math.exception.util;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache ... |
public Tailer(File file, TailerListener listener, long delay) {
this(file, listener, 1000, false);
}
| public Tailer(File file, TailerListener listener, long delay) {
this(file, listener, delay, false);
}
|
public static String pathNameOfDeployment(final DeploymentUnit deploymentUnit, final JBossWebMetaData metaData) {
String pathName;
if (metaData.getContextRoot() == null) {
final EEModuleDescription description = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODU... | public static String pathNameOfDeployment(final DeploymentUnit deploymentUnit, final JBossWebMetaData metaData) {
String pathName;
if (metaData.getContextRoot() == null) {
final EEModuleDescription description = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODU... |
public void testCSVFile() throws Exception {
String line = readTestData();
assertNotNull("file must contain config line", line);
final String[] split = line.split(" ");
assertTrue(testName+" require 1 param", split.length >= 1);
// first line starts with csv data file name
... | public void testCSVFile() throws Exception {
String line = readTestData();
assertNotNull("file must contain config line", line);
final String[] split = line.split(" ");
assertTrue(testName+" require 1 param", split.length >= 1);
// first line starts with csv data file name
... |
public void renderSimpleMap() throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
model.put("bindingResult", createMock("binding_result", BindingResult.class));
model.put("foo", "bar");
view.render(model, request, response);
assertEquals("no-cache", response.getHeader("Pragma"));... | public void renderSimpleMap() throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
model.put("bindingResult", createMock("binding_result", BindingResult.class));
model.put("foo", "bar");
view.render(model, request, response);
assertEquals("no-cache", response.getHeader("Pragma"));... |
public T updateFileWithRandomContent(byte[] existingHash, byte[] resultingHash, String... path) throws IOException {
final ContentModification modification = ContentModificationUtils.modifyMisc(getPatchDir(), getPatchId(), randomString(), existingHash, path);
return addContentModification(modificati... | public T updateFileWithRandomContent(byte[] existingHash, byte[] resultingHash, String... path) throws IOException {
final ContentModification modification = ContentModificationUtils.modifyMisc(getPatchDir(), getPatchId(), randomString(), Arrays.copyOf(existingHash, existingHash.length), path);
retu... |
public void testBindingWithFormatterAgainstList() {
BeanWithIntegerList tb = new BeanWithIntegerList();
DataBinder binder = new DataBinder(tb);
FormattingConversionService conversionService = new FormattingConversionService();
ConversionServiceFactory.addDefaultConverters(conversionService);
conversionServic... | public void testBindingWithFormatterAgainstList() {
BeanWithIntegerList tb = new BeanWithIntegerList();
DataBinder binder = new DataBinder(tb);
FormattingConversionService conversionService = new FormattingConversionService();
ConversionServiceFactory.addDefaultConverters(conversionService);
conversionServic... |
public void configure(DeploymentPhaseContext context, ComponentDescription description, ComponentConfiguration configuration) throws DeploymentUnitProcessingException {
if (SessionBean.class.isAssignableFrom(configuration.getComponentClass())) {
configuration.... | public void configure(DeploymentPhaseContext context, ComponentDescription description, ComponentConfiguration configuration) throws DeploymentUnitProcessingException {
if (SessionBean.class.isAssignableFrom(configuration.getComponentClass())) {
configuration.... |
protected static void writePatch(final XMLExtendedStreamWriter writer, final Patch patch) throws XMLStreamException {
// id
writer.writeAttribute(Attribute.ID.name, patch.getPatchId());
// Description
String description = patch.getDescription();
if (description != null) {
... | protected static void writePatch(final XMLExtendedStreamWriter writer, final Patch patch) throws XMLStreamException {
// id
writer.writeAttribute(Attribute.ID.name, patch.getPatchId());
// Description
String description = patch.getDescription();
if (description != null) {
... |
public <T extends PatchElementProvider> T forType(Patch.PatchType patchType, Class<T> clazz) {
if (patchType != this.patchType) {
throw new IllegalStateException();
}
if (patchType == Patch.PatchType.ONE_OFF) {
if (cumulativeTarget == null) {
throw new... | public <T extends PatchElementProvider> T forType(Patch.PatchType patchType, Class<T> clazz) {
if (patchType != this.patchType) {
throw new IllegalStateException(this.patchType + " was: " + patchType);
}
if (patchType == Patch.PatchType.ONE_OFF) {
if (cumulativeTarget... |
public PatchingException(Collection<ContentItem> conflicts) {
// FIXME message is mandatory to wrap it into a OperationFailedException
super("Conficts detected: " + conflicts.toString());
this.conflicts = conflicts;
}
| public PatchingException(Collection<ContentItem> conflicts) {
// FIXME message is mandatory to wrap it into a OperationFailedException
super("Conflicts detected: " + conflicts.toString());
this.conflicts = conflicts;
}
|
public void testPreserveExisting() throws Exception {
// content-item 'two' replacing 'one', but kept 'four'
final RollbackInfo patch01 = createRollbackInfo("patch01", two, one, four, four);
// content-item 'three' replacing 'two'
final RollbackInfo patch02 = createRollbackInfo("pat... | public void testPreserveExisting() throws Exception {
// content-item 'two' replacing 'one', but kept 'four'
final RollbackInfo patch01 = createRollbackInfo("patch01", two, one, four, four);
// content-item 'three' replacing 'two'
final RollbackInfo patch02 = createRollbackInfo("pat... |
public interface UnivariateVectorFunction {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Lice... | public interface UnivariateVectorFunction {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Lice... |
public static long freeSpaceKb(long timeout) throws IOException {
return freeSpaceKb(new File(".").getAbsolutePath(), timeout);
}
//-----------------------------------------------------------------------
/**
* Returns the free space on a drive or volume in a cross-platform manner.
... | public static long freeSpaceKb(long timeout) throws IOException {
return freeSpaceKb(new File(".").getAbsolutePath(), timeout);
}
//-----------------------------------------------------------------------
/**
* Returns the free space on a drive or volume in a cross-platform manner.
... |
A read(V value);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, 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 redistribute it and/or... | A read(V value);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, 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 redistribute it and/or... |
private void writeConnectorServices(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException {
List<Property> properties = node.asPropertyList();
if (!properties.isEmpty()) {
writer.writeStartElement(Element.CONNECTOR_SERVICES.getLocalName());
for(final Prope... | private void writeConnectorServices(XMLExtendedStreamWriter writer, ModelNode node) throws XMLStreamException {
List<Property> properties = node.asPropertyList();
if (!properties.isEmpty()) {
writer.writeStartElement(Element.CONNECTOR_SERVICES.getLocalName());
for(final Prope... |
public final Object resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest request,
WebDataBinderFactory binderFactory) throws Exception {
String name = ModelFactory.getNameForParameter(parameter);
Object target = (mavContainer.containsAttribut... | public final Object resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest request,
WebDataBinderFactory binderFactory) throws Exception {
String name = ModelFactory.getNameForParameter(parameter);
Object target = (mavContainer.containsAttribut... |
public void afterConnectionEstablished(WebSocketSession wsSession) throws Exception {
Assert.isTrue(this.sessionCount.compareAndSet(0, 1), "Unexpected connection");
this.sockJsSession.initWebSocketSession(wsSession);
}
| public void afterConnectionEstablished(WebSocketSession wsSession) throws Exception {
Assert.isTrue(this.sessionCount.compareAndSet(0, 1), "Unexpected connection");
this.sockJsSession.afterSessionInitialized(wsSession);
}
|
private static final String SUBSYSTEM_XML =
"<subsystem xmlns=\"urn:jboss:domain:deployment-scanner:1.1\">\n" +
" <deployment-scanner name=\"myScanner\" path=\"deployments_${custom.system.property:test}\" " +
| private static final String SUBSYSTEM_XML =
"<subsystem xmlns=\"urn:jboss:domain:deployment-scanner:1.2\">\n" +
" <deployment-scanner name=\"myScanner\" path=\"deployments_${custom.system.property:test}\" " +
|
protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent) {
GenericWebApplicationContext wac = new GenericWebApplicationContext();
wac.registerBeanDefinition("controller", new RootBeanDefinition(controllerClass));
Class<?> mappingType = RequestMappingHandlerMethodMapp... | protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent) {
GenericWebApplicationContext wac = new GenericWebApplicationContext();
wac.registerBeanDefinition("controller", new RootBeanDefinition(controllerClass));
Class<?> mappingType = RequestMappingHandlerMethodMapp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.