buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
import org.jboss.logging.annotations.MessageBundle;
/*
* 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 softw... | import org.jboss.logging.annotations.MessageBundle;
/*
* 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 softw... |
import org.jboss.logging.annotations.MessageLogger;
/*
* 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 softw... | import org.jboss.logging.annotations.MessageLogger;
/*
* 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 softw... |
import org.jboss.logging.annotations.MessageBundle;
/*
* 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 softw... | import org.jboss.logging.annotations.MessageBundle;
/*
* 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 softw... |
import org.jboss.logging.annotations.MessageLogger;
/*
* 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 softw... | import org.jboss.logging.annotations.MessageLogger;
/*
* 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 softw... |
import org.jboss.logging.annotations.MessageLogger;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, 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 softw... | import org.jboss.logging.annotations.MessageLogger;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2012, 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 softw... |
import org.jboss.logging.annotations.MessageLogger;
/*
* 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 softw... | import org.jboss.logging.annotations.MessageLogger;
/*
* 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 softw... |
import org.jboss.logging.annotations.MessageLogger;
/*
* 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 softw... | import org.jboss.logging.annotations.MessageLogger;
/*
* 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 softw... |
public boolean process(PatchingXmlArtifact.XmlArtifactState<Patch> parent, PatchingArtifactProcessor processor) {
final InstalledIdentity identity = processor.getValidationContext().getCurrentPatchIdentity();
final Patch patch = parent.getPatch();
if (Constants.BASE.equals(patch.getPatchId()... | public boolean process(PatchingXmlArtifact.XmlArtifactState<Patch> parent, PatchingArtifactProcessor processor) {
final InstalledIdentity identity = processor.getValidationContext().getInstalledIdentity();
final Patch patch = parent.getPatch();
if (Constants.BASE.equals(patch.getPatchId())) ... |
public boolean process(PatchingArtifacts.PatchID parent, PatchingArtifactProcessor processor) {
final InstalledIdentity identity = processor.getValidationContext().getOriginalIdentity();
final File history = identity.getInstalledImage().getPatchHistoryDir(parent.getPatchID());
final Patching... | public boolean process(PatchingArtifacts.PatchID parent, PatchingArtifactProcessor processor) {
final InstalledIdentity identity = processor.getValidationContext().getInstalledIdentity();
final File history = identity.getInstalledImage().getPatchHistoryDir(parent.getPatchID());
final Patchin... |
public StatefulSessionComponentCreateService(final ComponentConfiguration componentConfiguration, final ApplicationExceptions ejbJarConfiguration) {
super(componentConfiguration, ejbJarConfiguration);
final StatefulComponentDescription componentDescription = (StatefulComponentDescription) component... | public StatefulSessionComponentCreateService(final ComponentConfiguration componentConfiguration, final ApplicationExceptions ejbJarConfiguration) {
super(componentConfiguration, ejbJarConfiguration);
final StatefulComponentDescription componentDescription = (StatefulComponentDescription) component... |
public void processContextConfiguration(final ContextConfigurationAttributes configAttributes) {
Assert.notNull(configAttributes, "configAttributes must not be null");
Assert.isTrue(configAttributes.hasLocations() && configAttributes.hasClasses(), String.format(
"Cannot process locations AND configuration clas... | public void processContextConfiguration(final ContextConfigurationAttributes configAttributes) {
Assert.notNull(configAttributes, "configAttributes must not be null");
Assert.isTrue(!(configAttributes.hasLocations() && configAttributes.hasClasses()), String.format(
"Cannot process locations AND configuration c... |
package org.springframework.core.serializer.support;
/**
*
* Support classes for Spring's serializer abstraction.
* Includes adapters to the Converter SPI.
*
*/
package org.springframework.core.io.support;
| package org.springframework.core.serializer.support;
/**
*
* Support classes for Spring's serializer abstraction.
* Includes adapters to the Converter SPI.
*
*/
package org.springframework.core.serializer.support;
|
private void fallbackQSort3(int[] fmap,
int[] eclass,
int loSt,
int hiSt) {
int lo, unLo, ltLo, hi, unHi, gtHi, n;
long r = 0;
int sp = 0;
fpush(sp++, loSt, hiSt);
while (sp >... | private void fallbackQSort3(int[] fmap,
int[] eclass,
int loSt,
int hiSt) {
int lo, unLo, ltLo, hi, unHi, gtHi, n;
long r = 0;
int sp = 0;
fpush(sp++, loSt, hiSt);
while (sp >... |
public void filter() {
List<Integer> ints = new ArrayList<Integer>();
ints.add(1);
ints.add(2);
ints.add(3);
ints.add(3);
Iterable<Integer> iterable = ints;
assertTrue(CollectionUtils.filter(iterable, EQUALS_TWO));
assertEquals(1, (int) ints.size());
... | public void filter() {
List<Integer> ints = new ArrayList<Integer>();
ints.add(1);
ints.add(2);
ints.add(3);
ints.add(3);
Iterable<Integer> iterable = ints;
assertTrue(CollectionUtils.filter(iterable, EQUALS_TWO));
assertEquals(1, ints.size());
... |
public String[] getFullElements() {
return (String[]) new String[] { "1", "3", "5", "7", "2", "4", "6" };
}
| public String[] getFullElements() {
return new String[] { "1", "3", "5", "7", "2", "4", "6" };
}
|
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbst... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbst... |
public void testSwitchingFunctions()
throws DerivativeException, IntegratorException {
TestProblem4 pb = new TestProblem4();
double minStep = 0;
double maxStep = pb.getFinalTime() - pb.getInitialTime();
double scalAbsoluteTolerance = 1.0e-8;
double scalRelativeTolerance = 0.01 * scalAbsoluteT... | public void testSwitchingFunctions()
throws DerivativeException, IntegratorException {
TestProblem4 pb = new TestProblem4();
double minStep = 0;
double maxStep = pb.getFinalTime() - pb.getInitialTime();
double scalAbsoluteTolerance = 1.0e-8;
double scalRelativeTolerance = 0.01 * scalAbsoluteT... |
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbstract pb... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbstract pb... |
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbst... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblemAbst... |
public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblem... | public void testDecreasingSteps()
throws DerivativeException, IntegratorException {
TestProblemAbstract[] problems = TestProblemFactory.getProblems();
for (int k = 0; k < problems.length; ++k) {
double previousError = Double.NaN;
for (int i = 4; i < 10; ++i) {
TestProblem... |
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 StrBuilder ensureCapacity(int capacity) {
if (capacity > buffer.length) {
char[] old = buffer;
buffer = new char[capacity];
System.arraycopy(old, 0, buffer, 0, size);
}
return this;
}
| public StrBuilder ensureCapacity(int capacity) {
if (capacity > buffer.length) {
char[] old = buffer;
buffer = new char[capacity * 2];
System.arraycopy(old, 0, buffer, 0, size);
}
return this;
}
|
public static Object readDeclaredField(final Object target, final String fieldName, final boolean forceAccess) throws IllegalAccessException {
Validate.isTrue(target != null, "target object must not be null");
final Class<?> cls = target.getClass();
final Field field = getDeclaredField(cls, ... | public static Object readDeclaredField(final Object target, final String fieldName, final boolean forceAccess) throws IllegalAccessException {
Validate.isTrue(target != null, "target object must not be null");
final Class<?> cls = target.getClass();
final Field field = getDeclaredField(cls, ... |
public static final String CRLF = EMPTY + CR + LF;
} | public static final String CRLF = "\r\n";
} |
protected void handleDeploymentDescriptor(final DeploymentUnit deploymentUnit,
final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass,
final EJBComponentDescription componentConfiguration) t... | protected void handleDeploymentDescriptor(final DeploymentUnit deploymentUnit,
final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass,
final EJBComponentDescription componentConfiguration) t... |
public void testHttpDeploymentUpload() throws Exception {
Authentication.setupDefaultAuthenticator();
HttpURLConnection connection = null;
BufferedOutputStream os = null;
BufferedInputStream is = null;
//TODO: hard coded port
final String basicUrl = "http://" + manag... | public void testHttpDeploymentUpload() throws Exception {
Authentication.setupDefaultAuthenticator();
HttpURLConnection connection = null;
BufferedOutputStream os = null;
BufferedInputStream is = null;
//TODO: hard coded port
final String basicUrl = "http://" + manag... |
private DomainController startMasterDomainController() throws StartException {
log.info("Starting Domain Controller");
DomainModel domainModel = loadLocalDomainModel();
return new DomainControllerImpl(scheduledExecutorService.getValue(), domainModel, localHostName, localFileRepository);
... | private DomainController startMasterDomainController() throws StartException {
log.info("Starting Domain Controller");
DomainModel domainModel = loadLocalDomainModel();
return new DomainControllerImpl(scheduledExecutorService.getValue(), domainModel, localHostName, localFileRepository, depl... |
private static void expectHeader(final byte actual, int expected) throws IOException {
if (actual != (byte) expected) {
throw new IOException("Invalid byte token. Expecting '" + expected + "' received '" + actual + "'");
}
}
} | public static void expectHeader(final byte actual, int expected) throws IOException {
if (actual != (byte) expected) {
throw new IOException("Invalid byte token. Expecting '" + expected + "' received '" + actual + "'");
}
}
} |
protected void handle(CommandContext ctx, String args) {
ModelControllerClient client = ctx.getModelControllerClient();
if(client == null) {
ctx.printLine("The controller client is not available. Make sure you are connected to the controller.");
return;
}
if... | protected void handle(CommandContext ctx, String args) {
ModelControllerClient client = ctx.getModelControllerClient();
if(client == null) {
ctx.printLine("The controller client is not available. Make sure you are connected to the controller.");
return;
}
if... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
//TODO check profile
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
final Service... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
//TODO check profile
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
final Service... |
private void checkAllowServer() {
if (cancelled || rolledBack || hostFailure != null )
throw new IllegalStateException("Cannot add server results to an update that was not successfully applied to the server manager");
}
| private void checkAllowServer() {
if (cancelled || rolledBack || hostFailure != null )
throw new IllegalStateException("Cannot add server results to an update that was not successfully applied to the host controller");
}
|
package org.jboss.as.host.controller;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can r... | package org.jboss.as.host.controller;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can r... |
package org.jboss.as.host.controller;
package org.jboss.as.server.manager;
import java.io.IOException;
import java.io.InputStream;
import org.jboss.as.model.HostModel;
/**
* Handles persistence of the {@link HostModel}.
*
* @author Brian Stansberry
*/
public interface HostConfigurationPersister {
/**
... | package org.jboss.as.host.controller;
package org.jboss.as.host.controller;
import java.io.IOException;
import java.io.InputStream;
import org.jboss.as.model.HostModel;
/**
* Handles persistence of the {@link HostModel}.
*
* @author Brian Stansberry
*/
public interface HostConfigurationPersister {
/**
... |
public class ProcessControllerTests {
/*
* 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... | public class ProcessControllerTests {
/*
* 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... |
int SERVER_TO_HOST_CONTROLLER_OPERATION = Byte.MAX_VALUE; // TODO: Correct
/*
* 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.
... | int SERVER_TO_HOST_CONTROLLER_OPERATION = Byte.MAX_VALUE; // TODO: Correct
/*
* 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.
... |
public void testInterpolationAtBounds()
throws DerivativeException {
double t0 = 0;
double[] y0 = {0.0, 1.0, -2.0};
double[] y = (double[]) y0.clone();
double[][] yDot = { new double[y0.length] };
EulerStepInterpolator interpolator = new EulerStepInterpolator();
interpolator.reinitiali... | public void testInterpolationAtBounds()
throws DerivativeException {
double t0 = 0;
double[] y0 = {0.0, 1.0, -2.0};
double[] y = y0.clone();
double[][] yDot = { new double[y0.length] };
EulerStepInterpolator interpolator = new EulerStepInterpolator();
interpolator.reinitialize(new Dumm... |
public TestProblem1(TestProblem1 problem) {
super(problem);
y = (double[]) problem.y.clone();
}
| public TestProblem1(TestProblem1 problem) {
super(problem);
y = problem.y.clone();
}
|
public TestProblem2(TestProblem2 problem) {
super(problem);
y = (double[]) problem.y.clone();
}
| public TestProblem2(TestProblem2 problem) {
super(problem);
y = problem.y.clone();
}
|
public TestProblem3(TestProblem3 problem) {
super(problem);
e = problem.e;
y = (double[]) problem.y.clone();
}
| public TestProblem3(TestProblem3 problem) {
super(problem);
e = problem.e;
y = problem.y.clone();
}
|
public TestProblem4(TestProblem4 problem) {
super(problem);
a = problem.a;
y = (double[]) problem.y.clone();
}
| public TestProblem4(TestProblem4 problem) {
super(problem);
a = problem.a;
y = problem.y.clone();
}
|
public void testCertifiedValues() {
for (String name : certifiedValues.keySet()) {
Double expectedValue = (Double)certifiedValues.get(name);
Double summariesValue = getProperty(summaries, name);
if (summariesValue != null) {
TestUtils.assertEquals("summar... | public void testCertifiedValues() {
for (String name : certifiedValues.keySet()) {
Double expectedValue = certifiedValues.get(name);
Double summariesValue = getProperty(summaries, name);
if (summariesValue != null) {
TestUtils.assertEquals("summary value ... |
protected double populationStandardDeviation(double[] v) {
double mean = new Mean().evaluate(v);
double sum = 0;
for (int i = 0; i < v.length; i++) {
sum += (v[i] - mean) * (v[i] - mean);
}
return Math.sqrt(sum / (double) v.length);
}
| protected double populationStandardDeviation(double[] v) {
double mean = new Mean().evaluate(v);
double sum = 0;
for (int i = 0; i < v.length; i++) {
sum += (v[i] - mean) * (v[i] - mean);
}
return Math.sqrt(sum / v.length);
}
|
protected double populationVariance(double[] v) {
double mean = new Mean().evaluate(v);
double sum = 0;
for (int i = 0; i < v.length; i++) {
sum += (v[i] - mean) * (v[i] - mean);
}
return sum / (double) v.length;
}
| protected double populationVariance(double[] v) {
double mean = new Mean().evaluate(v);
double sum = 0;
for (int i = 0; i < v.length; i++) {
sum += (v[i] - mean) * (v[i] - mean);
}
return sum / v.length;
}
|
protected void applicationTldConfig() {
final TldsMetaData tldsMetaData = deploymentUnitContext.getAttachment(TldsMetaData.ATTACHMENT_KEY);
if (tldsMetaData == null) {
return;
}
Map<String, TldMetaData> localTlds = tldsMetaData.getTlds();
List<TldMetaData> sharedT... | protected void applicationTldConfig() {
final TldsMetaData tldsMetaData = deploymentUnitContext.getAttachment(TldsMetaData.ATTACHMENT_KEY);
if (tldsMetaData == null) {
return;
}
Map<String, TldMetaData> localTlds = tldsMetaData.getTlds();
List<TldMetaData> sharedT... |
public void merge(final Frequency other) throws NullArgumentException {
MathUtils.checkNotNull(other, LocalizedFormats.NULL_NOT_ALLOWED);
final Iterator<Map.Entry<Comparable<?>, Long>> iter = other.entrySetIterator();
while (iter.hasNext()) {
final Map.Entry<Comparable<?>, Long>... | public void merge(final Frequency other) throws NullArgumentException {
MathUtils.checkNotNull(other, LocalizedFormats.NULL_NOT_ALLOWED);
final Iterator<Map.Entry<Comparable<?>, Long>> iter = other.entrySetIterator();
while (iter.hasNext()) {
final Map.Entry<Comparable<?>, Long>... |
public static Test suite() {
TestSuite suite = new TestSuite("IO Utilities");
suite.addTest(new TestSuite(CausedIOExceptionTestCase.class));
suite.addTest(new TestSuite(CopyUtilsTest.class));
suite.addTest(new TestSuite(DemuxTestCase.class));
suite.addTest(new TestSuite(Direc... | public static Test suite() {
TestSuite suite = new TestSuite("IO Utilities");
suite.addTest(new TestSuite(IOExceptionWithCauseTestCase.class));
suite.addTest(new TestSuite(CopyUtilsTest.class));
suite.addTest(new TestSuite(DemuxTestCase.class));
suite.addTest(new TestSuite(Di... |
private MediaType getMostSpecificMediaType(MediaType acceptType, MediaType produceType) {
produceType = produceType.copyQualityValue(acceptType);
return MediaType.SPECIFICITY_COMPARATOR.compare(acceptType, produceType) < 0 ? acceptType : produceType;
}
| private MediaType getMostSpecificMediaType(MediaType acceptType, MediaType produceType) {
produceType = produceType.copyQualityValue(acceptType);
return MediaType.SPECIFICITY_COMPARATOR.compare(acceptType, produceType) <= 0 ? acceptType : produceType;
}
|
public ModelNode getModelDescription(Locale locale) {
return MessagingDescriptions.getJmsQueueAdd(locale);
}
| public ModelNode getModelDescription(Locale locale) {
return MessagingDescriptions.getJmsQueueRemove(locale);
}
|
public void writeFrameThrowable() throws Exception {
this.session.setExceptionOnWriteFrame(new NullPointerException());
this.session.delegateConnectionEstablished();
try {
this.session.writeFrame(SockJsFrame.openFrame());
fail("expected exception");
}
catch (SockJsRuntimeException ex) {
assertEquals... | public void writeFrameThrowable() throws Exception {
this.session.setExceptionOnWriteFrame(new NullPointerException());
this.session.delegateConnectionEstablished();
try {
this.session.writeFrame(SockJsFrame.openFrame());
fail("expected exception");
}
catch (TransportErrorException ex) {
assertEqual... |
public void getSessionNotExists() {
HttpServerExchange exchange = new HttpServerExchange(null);
Batcher batcher = mock(Batcher.class);
Batch batch = mock(Batch.class);
SessionConfig config = mock(SessionConfig.class);
String requestedSessionId = "session.route1";
Stri... | public void getSessionNotExists() {
HttpServerExchange exchange = new HttpServerExchange(null);
Batcher batcher = mock(Batcher.class);
Batch batch = mock(Batch.class);
SessionConfig config = mock(SessionConfig.class);
String requestedSessionId = "session.route1";
Stri... |
public static <T> Transformer<T, T> chainedTransformer(
final Collection<? extends Transformer<T, T>> transformers) {
return ChainedTransformer.chainedTransformer(transformers);
}
| public static <T> Transformer<T, T> chainedTransformer(
final Collection<? extends Transformer<? super T, ? extends T>> transformers) {
return ChainedTransformer.chainedTransformer(transformers);
}
|
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);
if (!Jaxr... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);
if (!Jaxr... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
if (!JaxrsDeploymentMarker.isJaxrsDeployment(dep... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
if (!JaxrsDeploymentMarker.isJaxrsDeployment(dep... |
protected Class<?> checkDeclaredApplicationClassAsServlet(DeploymentUnit du, JBossWebMetaData webdata,
ClassLoader classLoader) throws DeploymentUnitProcessingException {
if (webdata.getServlets() == null)
return null;
for (ServletMetaData servlet : webdata.getServlets()) {
... | protected Class<?> checkDeclaredApplicationClassAsServlet(DeploymentUnit du, JBossWebMetaData webdata,
ClassLoader classLoader) throws DeploymentUnitProcessingException {
if (webdata.getServlets() == null)
return null;
for (ServletMetaData servlet : webdata.getServlets()) {
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentUnit topLevelDeployment = deploymentUnit.getParent() == null ? deploymentUnit : deploymentUnit.getParent();
... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentUnit topLevelDeployment = deploymentUnit.getParent() == null ? deploymentUnit : deploymentUnit.getParent();
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
return; // Skip non web deployments
... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
return; // Skip non web deployments
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentUnit topLevelDeployment = deploymentUnit.getParent() == null ? deploymentUnit : deploymentUnit.getParent();
... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final DeploymentUnit topLevelDeployment = deploymentUnit.getParent() == null ? deploymentUnit : deploymentUnit.getParent();
... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);
if (!Weld... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ModuleSpecification moduleSpecification = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION);
if (!Weld... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
if (!WeldDeploymentMarker.isWeldDeployment(deployme... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ServiceTarget serviceTarget = phaseContext.getServiceTarget();
if (!WeldDeploymentMarker.isPartOfWeldDeployment(de... |
public void refresh() throws BeansException {
registerSingleton("standardHandlerAdapter", SimpleControllerHandlerAdapter.class);
registerSingleton("portletHandlerAdapter", SimplePortletHandlerAdapter.class);
registerSingleton("myHandlerAdapter", MyHandlerAdapter.class);
registerSingleton("viewController", V... | public void refresh() throws BeansException {
registerSingleton("standardHandlerAdapter", SimpleControllerHandlerAdapter.class);
registerSingleton("portletHandlerAdapter", SimplePortletHandlerAdapter.class);
registerSingleton("myHandlerAdapter", MyHandlerAdapter.class);
registerSingleton("viewController", V... |
protected ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory)
throws IOException {
ClientHttpRequest request = requestFactory.createRequest(uri, httpMethod);
if (shouldBuffer(uri, httpMethod)) {
return new BufferingClientHttpRequest(request);
}
else {
... | protected ClientHttpRequest createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory)
throws IOException {
ClientHttpRequest request = requestFactory.createRequest(uri, httpMethod);
if (shouldBuffer(uri, httpMethod)) {
return new BufferingClientHttpRequestWrapper(request);
}
... |
public CommonsClientHttpRequestFactory() {
httpClient = new HttpClient(new MultiThreadedHttpConnectionManager());
this.setReadTimeout(DEFAULT_READ_TIMEOUT_MILLISECONDS);
}
| public CommonsClientHttpRequestFactory() {
this.httpClient = new HttpClient(new MultiThreadedHttpConnectionManager());
this.setReadTimeout(DEFAULT_READ_TIMEOUT_MILLISECONDS);
}
|
public ServerManagerEnvironment(Properties props, boolean isRestart, InputStream stdin, PrintStream stdout, PrintStream stderr,
String processName, InetAddress processManagerAddress, Integer processManagerPort, InetAddress serverManagerAddress,
Integer serverManagerPort, String defaultJVM) {... | public ServerManagerEnvironment(Properties props, boolean isRestart, InputStream stdin, PrintStream stdout, PrintStream stderr,
String processName, InetAddress processManagerAddress, Integer processManagerPort, InetAddress serverManagerAddress,
Integer serverManagerPort, String defaultJVM) {... |
public ServerEnvironment(Properties props, String processName, boolean standalone) {
this.standalone = standalone;
if (props == null) {
throw new IllegalArgumentException("props is null");
}
if (processName == null && !standalone) {
throw new IllegalArgumentE... | public ServerEnvironment(Properties props, String processName, boolean standalone) {
this.standalone = standalone;
if (props == null) {
throw new IllegalArgumentException("props is null");
}
if (processName == null && !standalone) {
throw new IllegalArgumentE... |
public String toXML() {
return null;
}
| public String toXML() {
throw new UnsupportedOperationException("not implemented yet");
}
|
public void run(ILocalCluster cluster) throws Exception;
} | public void run(ILocalCluster cluster);
} |
protected final ClassLoader getApplicationClassLoader() {
return service.getMessageListenerInterface().getClassLoader();
}
| protected final ClassLoader getApplicationClassLoader() {
return this.service.getClassLoader();
}
|
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
context.createResource(PathAddress.EMPTY_ADDRESS);
context.stepCompleted();
}
}, OperationContext.Stage.IMMEDIATE);
}
| public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
context.createResource(PathAddress.EMPTY_ADDRESS);
context.stepCompleted();
}
}, OperationContext.Stage.MODEL, true);
}
|
public AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject)
throws AuthException {
Request request = (Request) messageInfo.getRequestMessage();
Response response = (Response) messageInfo.getResponseMessage();
Principal principal;
... | public AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject)
throws AuthException {
Request request = (Request) messageInfo.getRequestMessage();
Response response = (Response) messageInfo.getResponseMessage();
Principal principal;
... |
package org.wildfly.clustering.web.annotation;
/*
* 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; ... | package org.wildfly.clustering.web.annotation;
/*
* 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; ... |
private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "singleton.war");
war.addPackage(MyService.class.getPackage());
war.setManifest(new StringAsset("Manifest-Version: 1.0\nDependencies: org.wildfly.clustering.singleton, org.jboss.as.server\n"))... | private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "singleton.war");
war.addPackage(MyService.class.getPackage());
war.setManifest(new StringAsset("Manifest-Version: 1.0\nDependencies: org.jboss.as.server\n"));
war.addAsServiceProvider... |
public void resetState(double t, double[] y) {
y[0] += 1.0;
}
};
| public void resetState(double t, double[] y) {
y[0] += 1.0;
}
}
|
protected double[] getGradient(double[] point) {
Arrays.fill(gradient, 0.0);
double cy, cx, r, d;
int ptr = 0;
for (int i = 0; i < this.nobs; i++) {
cy = data[ptr++];
cx = data[ptr++];
d = (point[1] + point[2] * cx);... | protected double[] getGradient(double[] point) {
Arrays.fill(gradient, 0.0);
double cy, cx, r, d;
int ptr = 0;
for (int i = 0; i < this.nobs; i++) {
cy = data[ptr++];
cx = data[ptr++];
d = (point[1] + point[2] * cx);... |
public static List<UserValue> singleton(String property, Object value) {
List<UserValue> values = new ArrayList<UserValue>(1);
values.add(new UserValue(property, value));
return values;
}
} | public static List<UserValue> single(String property, Object value) {
List<UserValue> values = new ArrayList<UserValue>(1);
values.add(new UserValue(property, value));
return values;
}
} |
public static ModifiableConnDef buildConnectionDefinitionObject(final OperationContext context, final ModelNode recoveryEnvModel, final String poolName,
final boolean isXa) throws OperationFailedException, ValidateException {
Map<String, St... | public static ModifiableConnDef buildConnectionDefinitionObject(final OperationContext context, final ModelNode recoveryEnvModel, final String poolName,
final boolean isXa) throws OperationFailedException, ValidateException {
Map<String, St... |
public static boolean equals(
String filename1, String filename2,
boolean normalized, IOCase caseSensitivity) {
if (filename1 == null || filename2 == null) {
return filename1 == filename2;
}
if (normalized) {
filename1 = normalize(file... | public static boolean equals(
String filename1, String filename2,
boolean normalized, IOCase caseSensitivity) {
if (filename1 == null || filename2 == null) {
return (filename1 == null && filename2 == null);
}
if (normalized) {
filename... |
public AllowedMethodsInformation getAllowedMethodsInformation() {
return MessageDrivenAllowedMethodsInformation.INSTANCE;
}
| public AllowedMethodsInformation getAllowedMethodsInformation() {
return isBeanManagedTransaction() ? MessageDrivenAllowedMethodsInformation.INSTANCE_BMT : MessageDrivenAllowedMethodsInformation.INSTANCE_CMT;
}
|
public AllowedMethodsInformation getAllowedMethodsInformation() {
return StatefulAllowedMethodsInformation.INSTANCE;
}
| public AllowedMethodsInformation getAllowedMethodsInformation() {
return isBeanManagedTransaction() ? StatefulAllowedMethodsInformation.INSTANCE_BMT : StatefulAllowedMethodsInformation.INSTANCE_CMT;
}
|
public AllowedMethodsInformation getAllowedMethodsInformation() {
return StatelessAllowedMethodsInformation.INSTANCE;
}
| public AllowedMethodsInformation getAllowedMethodsInformation() {
return isBeanManagedTransaction() ? StatelessAllowedMethodsInformation.INSTANCE_BMT : StatelessAllowedMethodsInformation.INSTANCE_CMT;
}
|
public void testWithIndexedBooleanObjectNotChecked() throws Exception {
this.tag.setPath("someMap[key]");
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the output so it is valid XML
output = "<doc>" + output + "</doc>";
SAXReader reader = ... | public void testWithIndexedBooleanObjectNotChecked() throws Exception {
this.tag.setPath("someMap[key]");
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the output so it is valid XML
output = "<doc>" + output + "</doc>";
SAXReader reader = ... |
public CpioArchiveEntry getNextCPIOEntry() throws IOException {
ensureOpen();
if (this.entry != null) {
closeEntry();
}
byte magic[] = new byte[2];
readFully(magic, 0, magic.length);
if (CpioUtil.byteArray2long(magic, false) == MAGIC_OLD_BINARY) {
... | public CpioArchiveEntry getNextCPIOEntry() throws IOException {
ensureOpen();
if (this.entry != null) {
closeEntry();
}
byte magic[] = new byte[2];
readFully(magic, 0, magic.length);
if (CpioUtil.byteArray2long(magic, false) == MAGIC_OLD_BINARY) {
... |
public void finish() throws IOException {
ensureOpen();
if (this.finished) {
return;
}
if (this.cpioEntry != null) {
closeArchiveEntry();
}
this.cpioEntry = new CpioArchiveEntry(this.entryFormat);
this.cpioEntry.setMode(0);
thi... | public void finish() throws IOException {
ensureOpen();
if (this.finished) {
return;
}
if (this.cpioEntry != null) {
closeArchiveEntry();
}
this.cpioEntry = new CpioArchiveEntry(this.entryFormat);
this.cpioEntry.setMode(0);
thi... |
private String getHttpMethod() {
return isMethodBrowserSupported(getMethod()) ? getMethod() : DEFAULT_METHOD;
}
| private String getHttpMethod() {
return (isMethodBrowserSupported(getMethod()) ? getMethod() : DEFAULT_METHOD);
}
|
public ServerStartTask(final String serverName, final int portOffset, final List<ServiceActivator> startServices, final List<ModelNode> updates) {
if (serverName == null || serverName.length() == 0) {
throw new IllegalArgumentException("Server name " + serverName + " is invalid; cannot be null o... | public ServerStartTask(final String serverName, final int portOffset, final List<ServiceActivator> startServices, final List<ModelNode> updates) {
if (serverName == null || serverName.length() == 0) {
throw new IllegalArgumentException("Server name " + serverName + " is invalid; cannot be null o... |
public static void startServer() throws Exception {
EmbeddedStandAloneServerFactory.setupCleanDirectories(System.getProperties());
ServerEnvironment serverEnvironment = Main.determineEnvironment(new String[0], new Properties(System.getProperties()), System.getenv());
serverDetails += "AS ... | public static void startServer() throws Exception {
EmbeddedStandAloneServerFactory.setupCleanDirectories(System.getProperties());
ServerEnvironment serverEnvironment = Main.determineEnvironment(new String[0], new Properties(System.getProperties()), System.getenv(), ServerEnvironment.LaunchType.EM... |
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {
// get the channel name and channel attribute
PathAddress pathAddress = PathAddress.pathAddress(operation.require(OP_ADDR));
String channelName = pathAddress.getElement(pathAdd... | protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException {
// get the channel name and channel attribute
PathAddress pathAddress = PathAddress.pathAddress(operation.require(OP_ADDR));
String channelName = pathAddress.getElement(pathAdd... |
protected void initializeExtension(String module) throws OperationFailedException {
try {
for (final Extension extension : Module.loadServiceFromCallerModuleLoader(ModuleIdentifier.fromString(module), Extension.class)) {
ClassLoader oldTccl = SecurityActions.setThreadContextClass... | protected void initializeExtension(String module) throws OperationFailedException {
try {
for (final Extension extension : Module.loadServiceFromCallerModuleLoader(ModuleIdentifier.fromString(module), Extension.class)) {
ClassLoader oldTccl = SecurityActions.setThreadContextClass... |
public void registerChildren(ManagementResourceRegistration resourceRegistration) {
super.registerChildren(resourceRegistration);
resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForDomainOrHost(Location.DOMAIN));
resourceRegistration.registerSubModel(new Interfac... | public void registerChildren(ManagementResourceRegistration resourceRegistration) {
super.registerChildren(resourceRegistration);
resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForDomainOrHost(Location.DOMAIN));
resourceRegistration.registerSubModel(new Interfac... |
protected void initializeExtraSubystemsAndModel(ExtensionRegistry extensionRegistry, Resource rootResource,
ManagementResourceRegistration rootRegistration) {
super.initializeExtraSubystemsAndModel(extensionRegistry, rootResource, rootRegistration);
extension.initialize(e... | protected void initializeExtraSubystemsAndModel(ExtensionRegistry extensionRegistry, Resource rootResource,
ManagementResourceRegistration rootRegistration) {
super.initializeExtraSubystemsAndModel(extensionRegistry, rootResource, rootRegistration);
extension.initialize(e... |
public void registerChildren(ManagementResourceRegistration resourceRegistration) {
// System Properties
resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForStandaloneServer(serverEnvironment));
//vault
resourceRegistration.registerSubModel(new VaultReso... | public void registerChildren(ManagementResourceRegistration resourceRegistration) {
// System Properties
resourceRegistration.registerSubModel(SystemPropertyResourceDefinition.createForStandaloneServer(serverEnvironment));
//vault
resourceRegistration.registerSubModel(new VaultReso... |
public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException {
validateParameter(parameterName, value.resolve());
}
});
static SimpleAttributeDefinition DATASOURCE_DRIVER = new SimpleAttributeDefinition(DATASOURCE_DRIVER_NAME, DataSour... | public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException {
validateParameter(parameterName, value.resolve());
}
});
static SimpleAttributeDefinition DATASOURCE_DRIVER = new SimpleAttributeDefinition(DATASOURCE_DRIVER_NAME, DataSour... |
protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) {
RequestMapping annotation = AnnotationUtils.findAnnotation(method, RequestMapping.class);
return new RequestMappingInfo(
new PatternsRequestCondition(annotation.value(), getUrlPathHelper(), getPathMatcher()),
new R... | protected RequestMappingInfo getMappingForMethod(Method method, Class<?> handlerType) {
RequestMapping annotation = AnnotationUtils.findAnnotation(method, RequestMapping.class);
return new RequestMappingInfo(
new PatternsRequestCondition(annotation.value(), getUrlPathHelper(), getPathMatcher(), true),
... |
* http://creativecommons.org/licenses/publicdomain
*/
package org.jboss.as.web.deployment;
import java.io.IOException;
| * http://creativecommons.org/licenses/publicdomain
*/
package org.jboss.as.web.common;
import java.io.IOException;
|
public void testManagedBean() throws Exception {
BeanWithSimpleInjected bean = (BeanWithSimpleInjected) context.lookup("java:module/" + BeanWithSimpleInjected.class.getSimpleName());
Assert.assertNotNull(bean.getSimple());
Assert.assertNotNull(bean.getSimple2());
String s = bean.echo... | public void testManagedBean() throws Exception {
BeanWithSimpleInjected bean = (BeanWithSimpleInjected) context.lookup("java:module/" + BeanWithSimpleInjected.class.getSimpleName());
Assert.assertNotNull(bean.getSimple());
Assert.assertNotNull(bean.getSimple2());
String s = bean.echo... |
public boolean accept(File dir, String name) {
if (PatchXml.PATCH_XML.equals(name) || "rollback.xml".equals(name)) {
return false;
}
return true;
}
};
| public boolean accept(File dir, String name) {
if (PatchXml.PATCH_XML.equals(name) || PatchXml.ROLLBACK_XML.equals(name)) {
return false;
}
return true;
}
};
|
private void rollback(final String patchID, final IdentityPatchContext context) throws PatchingException {
try {
// Load the patch history
final PatchingTaskContext.Mode mode = context.getMode();
final Patch originalPatch = loadPatchInformation(patchID, installedImage);
... | private void rollback(final String patchID, final IdentityPatchContext context) throws PatchingException {
try {
// Load the patch history
final PatchingTaskContext.Mode mode = context.getMode();
final Patch originalPatch = loadPatchInformation(patchID, installedImage);
... |
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
assertNotNull(sourceType, targetType);
if (logger.isDebugEnabled()) {
logger.debug("Converting value " + StylerUtils.style(source) + " of " + sourceType + " to " + targetType);
}
if (sourceType == TypeDescriptor.NUL... | public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
assertNotNull(sourceType, targetType);
if (logger.isDebugEnabled()) {
logger.debug("Converting value " + StylerUtils.style(source) + " of " + sourceType + " to " + targetType);
}
if (sourceType == TypeDescriptor.NUL... |
private static void parseLoggerElement(final XMLExtendedStreamReader reader, List<? super AbstractLoggingSubsystemUpdate<?>> list) throws XMLStreamException {
// Attributes
String name = null;
boolean useParentHandlers = true;
final EnumSet<Attribute> required = EnumSet.of(Attribute... | private static void parseLoggerElement(final XMLExtendedStreamReader reader, List<? super AbstractLoggingSubsystemUpdate<?>> list) throws XMLStreamException {
// Attributes
String name = null;
boolean useParentHandlers = true;
final EnumSet<Attribute> required = EnumSet.of(Attribute... |
protected XMLInputFactory createXmlInputFactory() {
XMLInputFactory inputFactory = XMLInputFactory.newInstance();
inputFactory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, false);
return inputFactory;
}
| protected XMLInputFactory createXmlInputFactory() {
XMLInputFactory inputFactory = XMLInputFactory.newInstance();
inputFactory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);
return inputFactory;
}
|
public void start(StartContext context) throws StartException {
if (log.isDebugEnabled())
log.debug("Starting SecurityManagementService");
// set properties of JNDIBasedSecurityManagement
JNDIBasedSecurityManagement securityManagement = JNDIBasedSecurityManagement.getInstance();
... | public void start(StartContext context) throws StartException {
if (log.isDebugEnabled())
log.debug("Starting SecurityManagementService");
// set properties of JNDIBasedSecurityManagement
JNDIBasedSecurityManagement securityManagement = new JNDIBasedSecurityManagement();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.