buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
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
... |
private static void addCacheContainerConfigCommands(Property container, ModelNode address, ModelNode result) throws OperationFailedException {
// add operation to create the transport for the container
if (container.getValue().hasDefined(ModelKeys.TRANSPORT)) {
// command to recreate th... | private static void addCacheContainerConfigCommands(Property container, ModelNode address, ModelNode result) throws OperationFailedException {
// add operation to create the transport for the container
if (container.getValue().hasDefined(ModelKeys.TRANSPORT)) {
// command to recreate th... |
public void testSetSubMatrix() throws Exception {
RealMatrixImpl m = new RealMatrixImpl(testData);
m.setSubMatrix(detData2,1,1);
RealMatrix expected = MatrixUtils.createRealMatrix
(new double[][] {{1.0,2.0,3.0},{2.0,1.0,3.0},{1.0,2.0,4.0}});
assertEquals(expected, m);
... | public void testSetSubMatrix() throws Exception {
RealMatrixImpl m = new RealMatrixImpl(testData);
m.setSubMatrix(detData2,1,1);
RealMatrix expected = MatrixUtils.createRealMatrix
(new double[][] {{1.0,2.0,3.0},{2.0,1.0,3.0},{1.0,2.0,4.0}});
assertEquals(expected, m);
... |
public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException {
validateParameter(parameterName, value.resolve());
}
})
.build();
static SimpleAttributeDefinition DATASOURCE_DRIVER = new Simp... | public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException {
validateParameter(parameterName, value.resolve());
}
})
.build();
static SimpleAttributeDefinition DATASOURCE_DRIVER = new Simp... |
public void prepare(Map conf, TopologyContext context, BatchOutputCollector batchCollector) {
int thisComponentNumTasks = context.getComponentTasks(context.getThisComponentId()).size();
for(Node n: _nodes) {
if(n.stateInfo!=null) {
State s = n.stateInfo.spec.stateFactory.... | public void prepare(Map conf, TopologyContext context, BatchOutputCollector batchCollector) {
int thisComponentNumTasks = context.getComponentTasks(context.getThisComponentId()).size();
for(Node n: _nodes) {
if(n.stateInfo!=null) {
State s = n.stateInfo.spec.stateFactory.... |
public void testAppClientJBossDescriptor() throws Exception {
final StatelessEJBLocator<AppClientSingletonRemote> locator = new StatelessEJBLocator(AppClientSingletonRemote.class, APP_NAME, MODULE_NAME, AppClientStateSingleton.class.getSimpleName(), "");
final AppClientSingletonRemote remote = EJBCl... | public void testAppClientJBossDescriptor() throws Exception {
final StatelessEJBLocator<AppClientSingletonRemote> locator = new StatelessEJBLocator(AppClientSingletonRemote.class, APP_NAME, MODULE_NAME, AppClientStateSingleton.class.getSimpleName(), "");
final AppClientSingletonRemote remote = EJBCl... |
public void testSubResource() throws Exception {
assertEquals("Jozef", performCall("api/person/Jozef"));
assertEquals("Jozef's address is unknown.", performCall("subresource/api/person/Jozef/address"));
}
| public void testSubResource() throws Exception {
assertEquals("Jozef", performCall("api/person/Jozef"));
assertEquals("Jozef's address is unknown.", performCall("api/person/Jozef/address"));
}
|
private void assertServletAccess(String context) throws IOException {
// Check that we can access the servlet
URL servletURL = new URL("http://localhost:8080/" + context);
BufferedReader br = new BufferedReader(new InputStreamReader(servletURL.openStream()));
String message = br.read... | private void assertServletAccess(String context) throws IOException {
// Check that we can access the servlet
URL servletURL = new URL("http://" + managementClient.getMgmtAddress() + ":8080/" + context);
BufferedReader br = new BufferedReader(new InputStreamReader(servletURL.openStream()));
... |
* This method is package private instead of private to support unit test invocation.
* </p>
*
* @return the version, for example 131 for Java 1.3.1
*/
static float toJavaVersionInt(String version) {
return toVersionInt(toJavaVersionIntArray(version, JAVA_VERSION_TRIM_SIZE));
}
| * This method is package private instead of private to support unit test invocation.
* </p>
*
* @return the version, for example 131 for Java 1.3.1
*/
static int toJavaVersionInt(String version) {
return toVersionInt(toJavaVersionIntArray(version, JAVA_VERSION_TRIM_SIZE));
}
|
public XAResourceRecoveryRegistry getRecoveryRegistry() {
return null;
}
};
AsynchronousService.addService(target, cacheServiceName, new CacheService<>(cacheName, dependencies))
.addAliases(RouteLocatorService.getCacheServiceAlias(cacheName))
... | public XAResourceRecoveryRegistry getRecoveryRegistry() {
return null;
}
};
AsynchronousService.addService(target, cacheServiceName, new CacheService<>(cacheName, dependencies))
.addAliases(InfinispanRouteLocatorService.getCacheServiceAlias(cacheNa... |
private Object[] resolveInitBinderArguments(Object handler, Method initBinderMethod,
WebDataBinder binder, NativeWebRequest webRequest) throws Exception {
Class[] initBinderParams = initBinderMethod.getParameterTypes();
Object[] initBinderArgs = new Object[initBinderParams.length];
for (int i = 0; i < initB... | private Object[] resolveInitBinderArguments(Object handler, Method initBinderMethod,
WebDataBinder binder, NativeWebRequest webRequest) throws Exception {
Class[] initBinderParams = initBinderMethod.getParameterTypes();
Object[] initBinderArgs = new Object[initBinderParams.length];
for (int i = 0; i < initB... |
public void testPrototypeCreationWithOverriddenAutowiredPropertiesIsFastEnough() {
Assume.group(TestGroup.PERFORMANCE);
Assume.notLogging(factoryLog);
GenericApplicationContext ctx = new GenericApplicationContext();
AnnotationConfigUtils.registerAnnotationConfigProcessors(ctx);
ctx.refresh();
RootBeanDefi... | public void testPrototypeCreationWithOverriddenAutowiredPropertiesIsFastEnough() {
Assume.group(TestGroup.PERFORMANCE);
Assume.notLogging(factoryLog);
GenericApplicationContext ctx = new GenericApplicationContext();
AnnotationConfigUtils.registerAnnotationConfigProcessors(ctx);
ctx.refresh();
RootBeanDefi... |
private void setBindAddress(String key, String value) {
try {
bindAddress = InetAddress.getByName(value);
} catch (UnknownHostException e) {
parseFailed = true;
System.out.println(MESSAGES.invalidValue(key, "InetAddress", value));
... | private void setBindAddress(String key, String value) {
try {
bindAddress = InetAddress.getByName(value);
} catch (UnknownHostException e) {
parseFailed = true;
System.err.println(MESSAGES.invalidValue(key, "InetAddress", value));
... |
public void testCommentsAndEmptyLines() throws IOException {
final String code =
"1,2,3,\n"+ // 1
"\n"+ // 1b
"\n"+ // 1c
"a,b x,c#no-comment\n"+ // 2
"#foo\n"+ ... | public void testCommentsAndEmptyLines() throws IOException {
final String code =
"1,2,3,\n"+ // 1
"\n"+ // 1b
"\n"+ // 1c
"a,b x,c#no-comment\n"+ // 2
"#foo\n"+ ... |
private RequestMatcherClientHttpRequest createRequestInternal(URI uri, HttpMethod httpMethod) {
Assert.notNull(uri, "'uri' must not be null");
Assert.notNull(httpMethod, "'httpMethod' must not be null");
if (this.requestIterator == null) {
this.requestIterator = MockRestServiceServer.this.expectedReques... | private RequestMatcherClientHttpRequest createRequestInternal(URI uri, HttpMethod httpMethod) {
Assert.notNull(uri, "'uri' must not be null");
Assert.notNull(httpMethod, "'httpMethod' must not be null");
if (this.requestIterator == null) {
this.requestIterator = MockRestServiceServer.this.expectedReques... |
public int compare(final K o1, final K o2) {
if (o1 == null) {
return o2 == null ? 0 : -1;
} else if (o2 == null) {
return o1 == null ? 0 : 1;
}
return ((Comparable<K>)o1).compareTo(o2);
}
| public int compare(final K o1, final K o2) {
if (o1 == null) {
return o2 == null ? 0 : -1;
} else if (o2 == null) {
return 1;
}
return ((Comparable<K>)o1).compareTo(o2);
}
|
public String toString() {
final StringBuilder buffer = new StringBuilder();
buffer.append("Trie[").append(size()).append("]={\n");
for (final Map.Entry<K, V> entry : entrySet()) {
buffer.append(" ").append(entry).append("\n");
}
buffer.append("}\n");
ret... | public String toString() {
final StringBuilder buffer = new StringBuilder();
buffer.append("Trie[").append(size()).append("]={\n");
for (final Map.Entry<K, V> entry : entrySet()) {
buffer.append(" ").append(entry).append("\n");
}
buffer.append("}\n");
ret... |
public int compare(final byte[] o1, final byte[] o2) {
if (o1 == null) {
return o2 == null ? 0 : -1;
} else if (o2 == null) {
return o1 == null ? 0 : 1;
}
if (o1.length != o2.length) {
return o1.length - o2.length;
}
... | public int compare(final byte[] o1, final byte[] o2) {
if (o1 == null) {
return o2 == null ? 0 : -1;
} else if (o2 == null) {
return 1;
}
if (o1.length != o2.length) {
return o1.length - o2.length;
}
for (int i = 0... |
public void doWith(Method method) {
Method specificMethod = ClassUtils.getMostSpecificMethod(method, currentHandlerType);
if (isHandlerMethod(method)) {
handlerMethods.add(specificMethod);
}
else if (method.isAnnotationPresent(InitBinder.class)) {
initBinderMethods.add(specificMethod... | public void doWith(Method method) {
Method specificMethod = ClassUtils.getMostSpecificMethod(method, currentHandlerType);
if (isHandlerMethod(method)) {
handlerMethods.add(specificMethod);
}
else if (method.isAnnotationPresent(InitBinder.class)) {
initBinderMethods.add(specificMethod... |
package org.jboss.as.deployment.item;
/*
* 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 r... | package org.jboss.as.deployment.item;
/*
* 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 r... |
private ResourceTransformationContext createContext(final TransformationTarget target) {
return Transformers.Factory.create(target, resourceRoot, resourceRegistration, ExpressionResolver.DEFAULT, RunningMode.NORMAL, ProcessType.STANDALONE_SERVER);
}
| private ResourceTransformationContext createContext(final TransformationTarget target) {
return Transformers.Factory.create(target, resourceRoot, resourceRegistration, ExpressionResolver.TEST_RESOLVER, RunningMode.NORMAL, ProcessType.STANDALONE_SERVER);
}
|
public Integer getVirtualHostPort(String hostname, boolean securePort) {
ServerHostInfo hostInfo = new ServerHostInfo(hostname);
Host undertowHost = getUndertowHost(hostInfo);
if (undertowHost != null && !undertowHost.getServer().getListeners().isEmpty()) {
if (!securePort) {
... | public Integer getVirtualHostPort(String hostname, boolean securePort) {
ServerHostInfo hostInfo = new ServerHostInfo(hostname);
Host undertowHost = getUndertowHost(hostInfo);
if (undertowHost != null && !undertowHost.getServer().getListeners().isEmpty()) {
if (!securePort) {
... |
public static final AttributeDefinition[] ATTRIBUTE_DEFINITIONS = {
PROTOCOL, KeystoreAttributes.KEYSTORE_PASSWORD, KeystoreAttributes.KEYSTORE_PATH, KeystoreAttributes.KEYSTORE_RELATIVE_TO
};
| public static final AttributeDefinition[] ATTRIBUTE_DEFINITIONS = {
PROTOCOL, KeystoreAttributes.KEYSTORE_PASSWORD, KeystoreAttributes.KEYSTORE_PATH, KeystoreAttributes.KEYSTORE_RELATIVE_TO, KeystoreAttributes.ALIAS, KeystoreAttributes.KEY_PASSWORD
};
|
public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
_state = TransactionalState.newCoordinatorState(conf, (String) conf.get(Config.TOPOLOGY_TRANSACTIONAL_ID), _spout.getComponentConfiguration());
_coordinatorState = new RotatingTransactionalState(_state, META_DIR, t... | public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {
_state = TransactionalState.newCoordinatorState(conf, (String) conf.get(Config.TOPOLOGY_TRANSACTIONAL_ID), _spout.getComponentConfiguration());
_coordinatorState = new RotatingTransactionalState(_state, META_DIR, t... |
public double[] skipTo(final int index) throws NotPositiveException {
if (index == 0) {
// reset x vector
Arrays.fill(x, 0);
} else {
final int i = index - 1;
final long grayCode = i ^ (i / 2);
for (int j = 0; j < dimension; j++) {
... | public double[] skipTo(final int index) throws NotPositiveException {
if (index == 0) {
// reset x vector
Arrays.fill(x, 0);
} else {
final int i = index - 1;
final long grayCode = i ^ (i >> 1); // compute the gray code of i = i XOR floor(i / 2)
... |
public Object processInvocation(InterceptorContext context) throws Exception {
StatefulSessionComponent component = getComponent(context, StatefulSessionComponent.class);
// TODO: this is a contract with the client interceptor
Serializable sessionId = this.sessionIdReference.get();
i... | public Object processInvocation(InterceptorContext context) throws Exception {
StatefulSessionComponent component = getComponent(context, StatefulSessionComponent.class);
// TODO: this is a contract with the client interceptor
Serializable sessionId = this.sessionIdReference.get();
i... |
public void testParameters() throws Exception {
UnivariateFunction f = new SinFunction();
try {
// bad interval
new RombergIntegrator().integrate(1000, f, 1, -1);
Assert.fail("Expecting NumberIsTooLargeException - bad interval");
} catch (NumberIsTooLarge... | public void testParameters() {
UnivariateFunction f = new SinFunction();
try {
// bad interval
new RombergIntegrator().integrate(1000, f, 1, -1);
Assert.fail("Expecting NumberIsTooLargeException - bad interval");
} catch (NumberIsTooLargeException ex) {
... |
public void testParameters() throws Exception {
UnivariateFunction f = new SinFunction();
try {
// bad interval
new SimpsonIntegrator().integrate(1000, f, 1, -1);
Assert.fail("Expecting NumberIsTooLargeException - bad interval");
} catch (NumberIsTooLargeE... | public void testParameters() {
UnivariateFunction f = new SinFunction();
try {
// bad interval
new SimpsonIntegrator().integrate(1000, f, 1, -1);
Assert.fail("Expecting NumberIsTooLargeException - bad interval");
} catch (NumberIsTooLargeException ex) {
... |
public void testParameters() throws Exception {
UnivariateFunction f = new SinFunction();
try {
// bad interval
new TrapezoidIntegrator().integrate(1000, f, 1, -1);
Assert.fail("Expecting NumberIsTooLargeException - bad interval");
} catch (NumberIsTooLar... | public void testParameters() {
UnivariateFunction f = new SinFunction();
try {
// bad interval
new TrapezoidIntegrator().integrate(1000, f, 1, -1);
Assert.fail("Expecting NumberIsTooLargeException - bad interval");
} catch (NumberIsTooLargeException ex) {... |
public void testParameters() throws Exception {
try {
// bad input array length
double x[] = { 1.0 };
double y[] = { 2.0 };
new PolynomialFunctionLagrangeForm(x, y);
Assert.fail("Expecting MathIllegalArgumentException - bad input array length");
... | public void testParameters() {
try {
// bad input array length
double x[] = { 1.0 };
double y[] = { 2.0 };
new PolynomialFunctionLagrangeForm(x, y);
Assert.fail("Expecting MathIllegalArgumentException - bad input array length");
} catch (M... |
public void testParameters() throws Exception {
try {
// bad input array length
double a[] = { 1.0 };
double c[] = { 2.0 };
new PolynomialFunctionNewtonForm(a, c);
Assert.fail("Expecting MathIllegalArgumentException - bad input array length");
... | public void testParameters() {
try {
// bad input array length
double a[] = { 1.0 };
double c[] = { 2.0 };
new PolynomialFunctionNewtonForm(a, c);
Assert.fail("Expecting MathIllegalArgumentException - bad input array length");
} catch (Mat... |
public void testParameters() throws Exception {
UnivariateFunction f = new SinFunction();
UnivariateSolver solver = new MullerSolver2();
try {
// bad interval
solver.solve(100, f, 1, -1);
Assert.fail("Expecting NumberIsTooLargeException - bad interval");
... | public void testParameters() {
UnivariateFunction f = new SinFunction();
UnivariateSolver solver = new MullerSolver2();
try {
// bad interval
solver.solve(100, f, 1, -1);
Assert.fail("Expecting NumberIsTooLargeException - bad interval");
} catch (... |
public void testParameters() throws Exception {
UnivariateFunction f = new SinFunction();
UnivariateSolver solver = new MullerSolver();
try {
// bad interval
double root = solver.solve(100, f, 1, -1);
System.out.println("root=" + root);
Assert... | public void testParameters() {
UnivariateFunction f = new SinFunction();
UnivariateSolver solver = new MullerSolver();
try {
// bad interval
double root = solver.solve(100, f, 1, -1);
System.out.println("root=" + root);
Assert.fail("Expecting ... |
public Iterator<String> getHeaderNames(String name) {
return Collections.singleton(CONTENT_TYPE).iterator();
}
} | public Iterator<String> getHeaderNames() {
return Collections.singleton(CONTENT_TYPE).iterator();
}
} |
Iterator<String> getHeaderNames();
/*
* 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 License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... | Iterator<String> getHeaderNames();
/*
* 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 License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... |
public Iterator<String> getHeaderNames(String name) {
return this.part.getHeaderNames().iterator();
}
}
} | public Iterator<String> getHeaderNames() {
return this.part.getHeaderNames().iterator();
}
}
} |
OperationFailedException invalidDiscoveryOptionsOrdering(String name);
/*
* 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.
*
*... | OperationFailedException invalidDiscoveryOptionsOrdering(String name);
/*
* 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.
*
*... |
public Collection<AttributeDefinition> getAttributes() {
List<AttributeDefinition> attrs = new ArrayList<>(super.getAttributes());
attrs.add(SCHEME);
attrs.add(REDIRECT_PORT);
return attrs;
}
| public Collection<AttributeDefinition> getAttributes() {
List<AttributeDefinition> attrs = new ArrayList<>(super.getAttributes());
attrs.add(SCHEME);
attrs.add(REDIRECT_SOCKET);
return attrs;
}
|
String REDIRECT_SOCKET = "redirect-socket";
/*
* 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... | String REDIRECT_SOCKET = "redirect-socket";
/*
* 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... |
public HttpsListenerService(final String name, String serverName, OptionMap listenerOptions) {
super(name, serverName, listenerOptions, false, -1);
}
| public HttpsListenerService(final String name, String serverName, OptionMap listenerOptions) {
super(name, serverName, listenerOptions, false, false);
}
|
public int complete(CommandContext ctx, String buffer, int cursor, List<String> candidates) {
/* if(cursor != buffer.length()) {
return -1;
}
*/
if(buffer.isEmpty()) {
for(String cmd : cmdRegistry.getTabCompletionCommands()) {
CommandHandler handler = ... | public int complete(CommandContext ctx, String buffer, int cursor, List<String> candidates) {
/* if(cursor != buffer.length()) {
return -1;
}
*/
if(buffer.isEmpty()) {
for(String cmd : cmdRegistry.getTabCompletionCommands()) {
CommandHandler handler = ... |
protected void validateInput(CommandContext ctx, String typePath, String propertyName) throws CommandFormatException {
ModelNode request = new ModelNode();
ModelNode address = request.get(Util.ADDRESS);
if(callback == null) {
callback = new DefaultCallbackHandler();
} e... | protected void validateInput(CommandContext ctx, String typePath, String propertyName) throws CommandFormatException {
ModelNode request = new ModelNode();
ModelNode address = request.get(Util.ADDRESS);
if(callback == null) {
callback = new DefaultCallbackHandler();
} e... |
protected void doHandle(CommandContext ctx) {
String args = ctx.getCommandArguments();
int port = -1;
String host = null;
if(args != null) {
String portStr = null;
int colonIndex = args.indexOf(':');
if(colonIndex < 0) {
// default... | protected void doHandle(CommandContext ctx) {
String args = ctx.getArgumentsString();
int port = -1;
String host = null;
if(args != null) {
String portStr = null;
int colonIndex = args.indexOf(':');
if(colonIndex < 0) {
// default ... |
public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException {
if(!ctx.hasArguments()) {
throw new OperationFormatException("Arguments are missing");
}
//String target = null;
String restype = null;
//String description = null;
Strin... | public ModelNode buildRequest(CommandContext ctx) throws OperationFormatException {
if(!ctx.hasArguments()) {
throw new OperationFormatException("Arguments are missing");
}
//String target = null;
String restype = null;
//String description = null;
Strin... |
public ModelNode buildRequest(CommandContext ctx)
throws OperationFormatException {
if(!ctx.hasArguments()) {
throw new OperationFormatException("Arguments are missing");
}
//String target = null;
String jndiName = null;
String[] args = ctx.getComma... | public ModelNode buildRequest(CommandContext ctx)
throws OperationFormatException {
if(!ctx.hasArguments()) {
throw new OperationFormatException("Arguments are missing");
}
//String target = null;
String jndiName = null;
String[] args = ctx.getArgum... |
protected void doHandle(CommandContext ctx) {
final OperationRequestAddress address;
String nodePath = null;
List<String> args = ctx.getArguments();
if(!args.isEmpty()) {
nodePath = args.get(0);
}
if (nodePath != null) {
address = new Defaul... | protected void doHandle(CommandContext ctx) {
final OperationRequestAddress address;
String nodePath = null;
List<String> args = ctx.getOtherArguments();
if(!args.isEmpty()) {
nodePath = args.get(0);
}
if (nodePath != null) {
address = new D... |
protected void doHandle(CommandContext ctx) {
OperationRequestAddress prefix = ctx.getPrefix();
if(!ctx.hasArguments()) {
ctx.printLine(ctx.getPrefixFormatter().format(prefix));
return;
}
OperationRequestParser.CallbackHandler handler = new DefaultOperation... | protected void doHandle(CommandContext ctx) {
OperationRequestAddress prefix = ctx.getPrefix();
if(!ctx.hasArguments()) {
ctx.printLine(ctx.getPrefixFormatter().format(prefix));
return;
}
OperationRequestParser.CallbackHandler handler = new DefaultOperation... |
protected void doHandle(CommandContext ctx) {
BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
ctx.printLine("No active batch.");
return;
}
Batch batch = batchManager.getActiveBatch();
final int batchSize = batch... | protected void doHandle(CommandContext ctx) {
BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
ctx.printLine("No active batch.");
return;
}
Batch batch = batchManager.getActiveBatch();
final int batchSize = batch... |
protected void doHandle(CommandContext ctx) {
BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
ctx.printLine("No active batch to holdback.");
return;
}
String name = null;
if(ctx.hasArguments()) {
nam... | protected void doHandle(CommandContext ctx) {
BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
ctx.printLine("No active batch to holdback.");
return;
}
String name = null;
if(ctx.hasArguments()) {
nam... |
protected void doHandle(CommandContext ctx) {
BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
ctx.printLine("No active batch.");
return;
}
Batch batch = batchManager.getActiveBatch();
final int batchSize = batch... | protected void doHandle(CommandContext ctx) {
BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
ctx.printLine("No active batch.");
return;
}
Batch batch = batchManager.getActiveBatch();
final int batchSize = batch... |
protected void doHandle(CommandContext ctx) {
BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
ctx.printLine("No active batch.");
return;
}
Batch batch = batchManager.getActiveBatch();
final int batchSize = batch... | protected void doHandle(CommandContext ctx) {
BatchManager batchManager = ctx.getBatchManager();
if(!batchManager.isBatchActive()) {
ctx.printLine("No active batch.");
return;
}
Batch batch = batchManager.getActiveBatch();
final int batchSize = batch... |
public static PathAddress pathAddress(final ModelNode node) {
final Map<String, PathElement> pathMap;
if (node.isDefined()) {
// final List<Property> props = node.asPropertyList();
// Following bit is crap TODO; uncomment above and delete below
// when bug is fixe... | public static PathAddress pathAddress(final ModelNode node) {
final Map<String, PathElement> pathMap;
if (node.isDefined()) {
// final List<Property> props = node.asPropertyList();
// Following bit is crap TODO; uncomment above and delete below
// when bug is fixe... |
public InfinispanBackingCacheEntryStore(Cache<MarshalledValue<K, C>, MarshalledValue<E, C>> cache, CacheInvoker invoker, PassivationManager<K, E> passivationManager, StatefulTimeoutInfo timeout, ClusteredBackingCacheEntryStoreConfig config, boolean controlCacheLifecycle, MarshalledValueFactory<C> keyFactory, Marsha... | public InfinispanBackingCacheEntryStore(Cache<MarshalledValue<K, C>, MarshalledValue<E, C>> cache, CacheInvoker invoker, PassivationManager<K, E> passivationManager, StatefulTimeoutInfo timeout, ClusteredBackingCacheEntryStoreConfig config, boolean controlCacheLifecycle, MarshalledValueFactory<C> keyFactory, Marsha... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
// get container and cache addresses
final PathAddress cacheAddress = PathAddress.pathAddress(operation.get(OP_ADDR)) ;
final PathAddress containerAddress = cacheAddress.subAddress(0, cacheAddress... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) {
// get container and cache addresses
final PathAddress cacheAddress = PathAddress.pathAddress(operation.get(OP_ADDR)) ;
final PathAddress containerAddress = cacheAddress.subAddress(0, cacheAddress... |
AttributeDefinition[] CACHE_ATTRIBUTES = { /* NAME, */ START, BATCHING, INDEXING, JNDI_NAME };
package org.jboss.as.clustering.infinispan.subsystem;
import org.jboss.as.controller.AttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.client.helpers.MeasurementUn... | AttributeDefinition[] CACHE_ATTRIBUTES = { /* NAME, */ START, BATCHING, INDEXING, JNDI_NAME };
package org.jboss.as.clustering.infinispan.subsystem;
import org.jboss.as.controller.AttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.client.helpers.MeasurementUn... |
public <T extends OutgoingDistributableSessionData> org.jboss.as.clustering.web.DistributedCacheManager<T> getDistributedCacheManager(LocalDistributableSessionManager manager) throws ClusteringNotSupportedException {
@SuppressWarnings("unchecked")
AdvancedCache<SessionKeyImpl, Map<Object, Object>> s... | public <T extends OutgoingDistributableSessionData> org.jboss.as.clustering.web.DistributedCacheManager<T> getDistributedCacheManager(LocalDistributableSessionManager manager) throws ClusteringNotSupportedException {
@SuppressWarnings("unchecked")
AdvancedCache<SessionKeyImpl, Map<Object, Object>> s... |
HandlerProvider<WebSocketHandler> handler, AbstractSockJsSession session) throws TransportErrorException;
/*
* 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... | HandlerProvider<WebSocketHandler> handler, AbstractSockJsSession session) throws TransportErrorException;
/*
* 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... |
public ConnectorServiceDefinition(final boolean registerRuntimeOnly) {
super(PathElement.pathElement(CommonAttributes.CONNECTOR_SERVICE),
MessagingExtension.getResourceDescriptionResolver(CommonAttributes.CONNECTOR_SERVICE, false),
ConnectorServiceAdd.INSTANCE,
... | public ConnectorServiceDefinition(final boolean registerRuntimeOnly) {
super(PathElement.pathElement(CommonAttributes.CONNECTOR_SERVICE),
MessagingExtension.getResourceDescriptionResolver(false, CommonAttributes.CONNECTOR_SERVICE),
ConnectorServiceAdd.INSTANCE,
... |
public ConnectorServiceParamDefinition() {
super(PathElement.pathElement(CommonAttributes.PARAM),
MessagingExtension.getResourceDescriptionResolver(CommonAttributes.CONNECTOR_SERVICE + "." + CommonAttributes.PARAM),
ConnectorServiceParamAdd.INSTANCE,
Connector... | public ConnectorServiceParamDefinition() {
super(PathElement.pathElement(CommonAttributes.PARAM),
MessagingExtension.getResourceDescriptionResolver(CommonAttributes.CONNECTOR_SERVICE, CommonAttributes.PARAM),
ConnectorServiceParamAdd.INSTANCE,
ConnectorService... |
public static final SimpleAttributeDefinition SOCKET_BINDING = create(CommonAttributes.SOCKET_BINDING, STRING)
.setAllowNull(true)
.setRestartAllServices()
.build();
static AttributeDefinition[] ATTRIBUTES = new AttributeDefinition[] { CommonAttributes.FACTORY_CLASS, SOCKET_... | public static final SimpleAttributeDefinition SOCKET_BINDING = create(CommonAttributes.SOCKET_BINDING, STRING)
.setAllowNull(true)
.setRestartAllServices()
.build();
static AttributeDefinition[] ATTRIBUTES = { CommonAttributes.FACTORY_CLASS, SOCKET_BINDING };
|
public static final AttributeDefinition SOCKET_BINDING = create(GenericTransportDefinition.SOCKET_BINDING)
.setAllowNull(false)
.build();
static AttributeDefinition[] ATTRIBUTES = new AttributeDefinition[] { SOCKET_BINDING };
| public static final AttributeDefinition SOCKET_BINDING = create(GenericTransportDefinition.SOCKET_BINDING)
.setAllowNull(false)
.build();
static AttributeDefinition[] ATTRIBUTES = { SOCKET_BINDING };
|
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException {
//
}
| protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException {
model.setEmptyObject();
}
|
public SecuritySettingDefinition(final boolean registerRuntimeOnly) {
super(PathElement.pathElement(CommonAttributes.SECURITY_SETTING),
MessagingExtension.getResourceDescriptionResolver(CommonAttributes.SECURITY_SETTING, false),
SecuritySettingAdd.INSTANCE,
Se... | public SecuritySettingDefinition(final boolean registerRuntimeOnly) {
super(PathElement.pathElement(CommonAttributes.SECURITY_SETTING),
MessagingExtension.getResourceDescriptionResolver(false, CommonAttributes.SECURITY_SETTING),
SecuritySettingAdd.INSTANCE,
Se... |
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("text/plain");
final PrintWriter writer = resp.getWriter();
final Principal principal = req.getUserPrincipal();
if (null == principal) {
resp.... | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("text/plain");
final PrintWriter writer = resp.getWriter();
final Principal principal = req.getUserPrincipal();
if (null == principal) {
resp.... |
public void postRegister(Boolean registrationDone) {
if (!registrationDone.booleanValue()) {
if (log.isDebugEnabled()) {
log.debug("Registration is not done -> stop");
}
stop();
} else {
state = REGISTERED;
if (createIgnored... | public void postRegister(Boolean registrationDone) {
if (!registrationDone.booleanValue()) {
if (log.isDebugEnabled()) {
log.debug("Registration is not done -> stop");
}
stop();
} else {
state = REGISTERED;
if (createIgnored... |
public boolean permit(ReqContext context, String operation, Map topology_conf) {
LOG.info("[req "+ context.requestID()+ "] Access "
+ " from: " + (context.remoteAddress() == null? "null" : context.remoteAddress().toString())
+ (context.principal() == null? "" : (" principal... | public boolean permit(ReqContext context, String operation, Map topology_conf) {
LOG.info("[req "+ context.requestID()+ "] Access "
+ " from: " + (context.remoteAddress() == null? "null" : context.remoteAddress().toString())
+ (context.principal() == null? "" : (" principal... |
public boolean isResourceChangeListenerSupported() {
return true;
}
| public boolean isResourceChangeListenerSupported() {
return false;
}
|
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {
List<TaskMessage> msgs = (List<TaskMessage>) e.getMessage();
if (msgs == null) {
return;
}
try {
server.enqueue(msgs);
} catch (InterruptedException e1) {
LOG.info("failed to enqueue... | public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {
List<TaskMessage> msgs = (List<TaskMessage>) e.getMessage();
if (msgs == null) {
return;
}
try {
server.enqueue(msgs, e.getRemoteAddress().toString());
} catch (InterruptedException e1) {
... |
protected SockJsService getSockJsService() {
return super.getSockJsService(paths);
}
}
| protected SockJsService getSockJsService() {
return super.getSockJsService();
}
}
|
@Message(id = 84, value = "'%s' parameter type or length is incorrect")
/*
* 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.
*
... | @Message(id = 84, value = "'%s' parameter type or length is incorrect")
/*
* 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.
*
... |
public EnclosingBall<Euclidean3D, Vector3D> ballOnSupport(final List<Vector3D> support) {
if (support.size() < 1) {
return new EnclosingBall<Euclidean3D, Vector3D>(Vector3D.ZERO, -1.0);
} else {
final Vector3D vA = support.get(0);
if (support.size() < 2) {
... | public EnclosingBall<Euclidean3D, Vector3D> ballOnSupport(final List<Vector3D> support) {
if (support.size() < 1) {
return new EnclosingBall<Euclidean3D, Vector3D>(Vector3D.ZERO, Double.NEGATIVE_INFINITY);
} else {
final Vector3D vA = support.get(0);
if (support.... |
public EnclosingBall<Euclidean2D, Vector2D> ballOnSupport(final List<Vector2D> support) {
if (support.size() < 1) {
return new EnclosingBall<Euclidean2D, Vector2D>(Vector2D.ZERO, -1.0);
} else {
final Vector2D vA = support.get(0);
if (support.size() < 2) {
... | public EnclosingBall<Euclidean2D, Vector2D> ballOnSupport(final List<Vector2D> support) {
if (support.size() < 1) {
return new EnclosingBall<Euclidean2D, Vector2D>(Vector2D.ZERO, Double.NEGATIVE_INFINITY);
} else {
final Vector2D vA = support.get(0);
if (support.... |
public static Test suite() {
TestSuite suite = new TestSuite(LocaleUtilsTest.class);
suite.setName("LocaleUtilsTest Tests");
return suite;
}
| public static Test suite() {
TestSuite suite = new TestSuite(LocaleUtilsTest.class);
suite.setName("LocaleUtils Tests");
return suite;
}
|
public void testNewArrayList() {
assertTrue("New list is empty", list.isEmpty());
assertEquals("New list has size zero", 0, list.size());
try {
list.get(1);
fail("get(int i) should have thrown IndexOutOfBoundsException");
} catch (IndexOutOfBoundsException e)... | public void testNewArrayList() {
assertTrue("New list is empty", list.isEmpty());
assertEquals("New list has size zero", 0, list.size());
try {
list.get(1);
fail("get(int i) should have thrown IndexOutOfBoundsException");
} catch (IndexOutOfBoundsException e)... |
public int complete(String buffer, int cursor, List candidates) {
if(!buffer.isEmpty() && buffer.charAt(0) == '/')
return -1;
DefaultOperationCallbackHandler handler = new DefaultOperationCallbackHandler(new DefaultOperationRequestAddress(ctx.getPrefix()));
try {
c... | public int complete(String buffer, int cursor, List candidates) {
if(!buffer.isEmpty() && buffer.charAt(0) == '/')
return -1;
DefaultOperationCallbackHandler handler = new DefaultOperationCallbackHandler(new DefaultOperationRequestAddress(ctx.getPrefix()));
try {
c... |
public synchronized void start(StartContext context) throws StartException {
ROOT_LOGGER.debugf("Starting Mod_cluster Extension");
config = new ModClusterConfig();
// Set the configuration.
// Check that Advertise could work.
boolean defaultavert = false;
try {
... | public synchronized void start(StartContext context) throws StartException {
ROOT_LOGGER.debugf("Starting Mod_cluster Extension");
config = new ModClusterConfig();
// Set the configuration.
// Check that Advertise could work.
boolean defaultavert = false;
try {
... |
private static ResourceBundle getResourceBundle(Locale locale) {
if (locale == null) {
locale = Locale.getDefault();
}
return ResourceBundle.getBundle(RESOURCE_NAME, locale);
}
static ModelNode getConfigurationCommonDescription(final ModelNode node, final String type, fi... | private static ResourceBundle getResourceBundle(Locale locale) {
if (locale == null) {
locale = Locale.getDefault();
}
return ResourceBundle.getBundle(RESOURCE_NAME, locale);
}
static ModelNode getConfigurationCommonDescription(final ModelNode node, final String type, fi... |
public void writeContent(final XMLExtendedStreamWriter streamWriter) throws XMLStreamException {
// BES this doesn't work right now; see if we can fix it as it should
//streamWriter.writeStartElement(Namespace.TRANSACTIONS_1_0.name(), Element.RECOVERY_ENVIRONMENT.getLocalName());
streamWrite... | public void writeContent(final XMLExtendedStreamWriter streamWriter) throws XMLStreamException {
// BES this doesn't work right now; see if we can fix it as it should
//streamWriter.writeStartElement(Namespace.TRANSACTIONS_1_0.name(), Element.RECOVERY_ENVIRONMENT.getLocalName());
streamWrite... |
public void processConfigBeanDefinitions(BeanDefinitionRegistry registry) {
Set<BeanDefinitionHolder> configCandidates = new LinkedHashSet<BeanDefinitionHolder>();
String[] candidateNames = registry.getBeanDefinitionNames();
for (String beanName : candidateNames) {
BeanDefinition beanDef = registry.getBeanDe... | public void processConfigBeanDefinitions(BeanDefinitionRegistry registry) {
Set<BeanDefinitionHolder> configCandidates = new LinkedHashSet<BeanDefinitionHolder>();
String[] candidateNames = registry.getBeanDefinitionNames();
for (String beanName : candidateNames) {
BeanDefinition beanDef = registry.getBeanDe... |
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
int size = in.readInt();
buffer = new Object[size];
for (int i = 0; i < size; i++) {
buffer[i] = in.readObject();
}
head = 0;
tail = ... | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
int size = in.readInt();
buffer = new Object[size+1];
for (int i = 0; i < size; i++) {
buffer[i] = in.readObject();
}
head = 0;
tail ... |
public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) {
return ConversionUtils.canConvertElements(sourceType.getElementTypeDescriptor(), targetType, conversionService);
}
| public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) {
return ConversionUtils.canConvertElements(sourceType.getElementTypeDescriptor(), targetType, this.conversionService);
}
|
public OperationResult execute(final Operation executionContext, final ResultHandler handler) {
ControllerTransaction transaction = null;
try {
if (executionContext.getOperation().get(OP_ADDR).hasDefined(OP_ADDR)) {
final PathAddress address = PathAddress.pathAddress(exec... | public OperationResult execute(final Operation executionContext, final ResultHandler handler) {
ControllerTransaction transaction = null;
try {
if (executionContext.getOperation().hasDefined(OP_ADDR)) {
final PathAddress address = PathAddress.pathAddress(executionContext.... |
public void activate(final ServiceActivatorContext context) {
log.info("Activating the JMX Subsystem");
final BatchBuilder batchBuilder = context.getBatchBuilder();
batchBuilder.addService(MBeanServerService.MBEAN_SERVER_SERVICE_NAME, new MBeanServerService())
.setInitialMode(Ser... | public void activate(final ServiceActivatorContext context) {
log.info("Activating the JMX Subsystem");
final BatchBuilder batchBuilder = context.getBatchBuilder();
batchBuilder.addService(MBeanServerService.SERVICE_NAME, new MBeanServerService())
.setInitialMode(ServiceControlle... |
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException {
final JBossServiceXmlDescriptor serviceXmlDescriptor = context.getAttachment(JBossServiceXmlDescriptor.ATTACHMENT_KEY);
if(serviceXmlDescriptor == null)
return;
final Module m... | public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException {
final JBossServiceXmlDescriptor serviceXmlDescriptor = context.getAttachment(JBossServiceXmlDescriptor.ATTACHMENT_KEY);
if(serviceXmlDescriptor == null)
return;
final Module m... |
protected void performRuntime(OperationContext context, ModelNode baseOperation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
ModelNode operation = Resource.Tools.readModel(context.readResource(PathAddress.EMPTY... | protected void performRuntime(OperationContext context, ModelNode baseOperation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
ModelNode operation = Resource.Tools.readModel(context.readResource(PathAddress.EMPTY... |
public void testNullComparator() {
List<Integer> l1 = Arrays.asList(1, 3, 5);
List<Integer> l2 = Arrays.asList(2, 4, 6);
CollatingIterator<Integer> collatingIterator1 = new CollatingIterator<Integer>(null, l1.iterator(), l2.iterator());
try {
collatingIterator1.next();
... | public void testNullComparator() {
List<Integer> l1 = Arrays.asList(1, 3, 5);
List<Integer> l2 = Arrays.asList(2, 4, 6);
CollatingIterator<Integer> collatingIterator1 = new CollatingIterator<Integer>(null, l1.iterator(), l2.iterator());
try {
collatingIterator1.next();
... |
public ListOrderedMap<K, V> makeObject() {
return (ListOrderedMap<K, V>) ListOrderedMap.listOrderedMap(new HashMap<K, V>());
}
| public ListOrderedMap<K, V> makeObject() {
return ListOrderedMap.listOrderedMap(new HashMap<K, V>());
}
|
protected PredicatedSet<E> decorateSet(Set<E> set, Predicate<? super E> predicate) {
return (PredicatedSet<E>) PredicatedSet.predicatedSet(set, predicate);
}
| protected PredicatedSet<E> decorateSet(Set<E> set, Predicate<? super E> predicate) {
return PredicatedSet.predicatedSet(set, predicate);
}
|
protected PredicatedSortedSet<E> makeTestSet() {
return (PredicatedSortedSet<E>) PredicatedSortedSet.predicatedSortedSet(new TreeSet<E>(), testPredicate);
}
| protected PredicatedSortedSet<E> makeTestSet() {
return PredicatedSortedSet.predicatedSortedSet(new TreeSet<E>(), testPredicate);
}
|
DeploymentUnitProcessingException failedToParseXml(@Cause Throwable cause, VirtualFile appXml, int lineNumber, int columnNumber);
/*
* 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
* distri... | DeploymentUnitProcessingException failedToParseXml(@Cause Throwable cause, VirtualFile appXml, int lineNumber, int columnNumber);
/*
* 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
* distri... |
public static BeanDefinitionHolder createScopedProxy(BeanDefinitionHolder definition,
BeanDefinitionRegistry registry, boolean proxyTargetClass) {
String originalBeanName = definition.getBeanName();
BeanDefinition targetDefinition = definition.getBeanDefinition();
String targetBeanName = getTargetBeanName(or... | public static BeanDefinitionHolder createScopedProxy(BeanDefinitionHolder definition,
BeanDefinitionRegistry registry, boolean proxyTargetClass) {
String originalBeanName = definition.getBeanName();
BeanDefinition targetDefinition = definition.getBeanDefinition();
String targetBeanName = getTargetBeanName(or... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
BeansXmlParser parser = new BeansXmlParser();
Set<BeanArchiveMetadata> beanArchiveMetadata = new HashSet<BeanArchiveMet... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
BeansXmlParser parser = new BeansXmlParser();
Set<BeanArchiveMetadata> beanArchiveMetadata = new HashSet<BeanArchiveMet... |
private long parse(final Reader in, final boolean traverseColumns) throws IOException {
final CSVFormat format = CSVFormat.newBuilder().withIgnoreSurroundingSpaces(false).build();
long recordCount = 0;
for (final CSVRecord record : format.parse(in)) {
recordCount++;
i... | private long parse(final Reader in, final boolean traverseColumns) throws IOException {
final CSVFormat format = CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(false);
long recordCount = 0;
for (final CSVRecord record : format.parse(in)) {
recordCount++;
if (traverseCo... |
protected boolean boot(List<ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException {
try {
preBoot(bootOperations, rollbackOnRuntimeFailure);
OperationValidator validator = new OperationValidator(rootRegistration);
for (Model... | protected boolean boot(List<ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws ConfigurationPersistenceException {
try {
preBoot(bootOperations, rollbackOnRuntimeFailure);
OperationValidator validator = new OperationValidator(rootRegistration);
for (Model... |
public static ClassFilter createFilter(Class filteredClass) {
return new SingleClassFilter(filteredClass.getName());
}
} | public static ClassFilter createFilter(Class<?> filteredClass) {
return new SingleClassFilter(filteredClass.getName());
}
} |
private int execute() throws Exception {
if (cmdLine.hasOption(HELP_PARAM)) {
printUsage();
return 100;
}
String keystoreURL = cmdLine.getOptionValue(KEYSTORE_PARAM, "vault.keystore");
String keystorePassword = cmdLine.getOptionValue(KEYSTORE_PASSWORD_PARAM,... | private int execute() throws Exception {
if (cmdLine.hasOption(HELP_PARAM)) {
printUsage();
return 100;
}
String keystoreURL = cmdLine.getOptionValue(KEYSTORE_PARAM, "vault.keystore");
String keystorePassword = cmdLine.getOptionValue(KEYSTORE_PASSWORD_PARAM,... |
@SecurityDomain("ejb3-tests")
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redis... | @SecurityDomain("ejb3-tests")
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redis... |
@SecurityDomain("ejb3-tests")
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redis... | @SecurityDomain("ejb3-tests")
/*
* JBoss, Home of Professional Open Source.
* Copyright (c) 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redis... |
public synchronized void start(StartContext context) throws StartException {
ServiceController<?> controller = context.getController();
LOGGER.debugf("Starting: %s in mode %s", controller.getName(), controller.getMode());
try {
BundleManager bundleManager = injectedBundleManager.... | public synchronized void start(StartContext context) throws StartException {
ServiceController<?> controller = context.getController();
LOGGER.tracef("Starting: %s in mode %s", controller.getName(), controller.getMode());
try {
BundleManager bundleManager = injectedBundleManager.... |
public void deployConfig(WebApplicationContext cxt) {
DispatcherServletInstanceFactory servletFactory = new DispatcherServletInstanceFactory(cxt);
DeploymentInfo servletBuilder = deployment()
.setClassLoader(UndertowTestServer.class.getClassLoader())
.setDeploymentName("undertow-websocket-test")
.setC... | public void deployConfig(WebApplicationContext cxt) {
DispatcherServletInstanceFactory servletFactory = new DispatcherServletInstanceFactory(cxt);
DeploymentInfo servletBuilder = deployment()
.setClassLoader(UndertowTestServer.class.getClassLoader())
.setDeploymentName("undertow-websocket-test")
.setC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.