buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "granular-distributable.war");
war.addClass(SimpleServlet.class);
// Take web.xml from the managed test.
war.setWebXML(ClusteredWebSimpleTestCase.class.getPackage(), "web.xml");
... | private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "granular-distributable.war");
war.addClass(SimpleServlet.class);
// Take web.xml from the managed test.
war.setWebXML(ClusteredWebSimpleTestCase.class.getPackage(), "web.xml");
... |
private static Archive<?> getDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "distributable.war");
war.addClass(SimpleServlet.class);
// Take web.xml from the managed test.
war.setWebXML(ClusteredWebSimpleTestCase.class.getPackage(), "web.xml");
war.addCla... | private static Archive<?> getDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "distributable.war");
war.addClass(SimpleServlet.class);
// Take web.xml from the managed test.
war.setWebXML(ClusteredWebSimpleTestCase.class.getPackage(), "web.xml");
war.addCla... |
private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "passivating-attribute.war");
war.addClass(SimpleServlet.class);
war.setWebXML(ClusteredWebSimpleTestCase.class.getPackage(), "web.xml");
war.addAsWebInfResource(SessionPassivationAbst... | private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "passivating-attribute.war");
war.addClass(SimpleServlet.class);
war.setWebXML(ClusteredWebSimpleTestCase.class.getPackage(), "web.xml");
war.addAsWebInfResource(SessionPassivationAbst... |
private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "passivating-session.war");
war.addClass(SimpleServlet.class);
war.setWebXML(ClusteredWebSimpleTestCase.class.getPackage(), "web.xml");
war.addAsWebInfResource(SessionPassivationAbstra... | private static Archive<?> createDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "passivating-session.war");
war.addClass(SimpleServlet.class);
war.setWebXML(ClusteredWebSimpleTestCase.class.getPackage(), "web.xml");
war.addAsWebInfResource(SessionPassivationAbstra... |
throw new NoSuchMethodException("Can't find a public method for " +
methodName + " " + ArrayUtils.toString(parameterTypes));
}
// ----------------------------------------------------------------------
/**
* Converts a class name to a JLS style class name.
*
* @param c... | throw new NoSuchMethodException("Can't find a public method for " +
methodName + " " + ArrayUtils.toString(parameterTypes));
}
// ----------------------------------------------------------------------
/**
* Converts a class name to a JLS style class name.
*
* @param c... |
public double getResult() {
double kurtosis = Double.NaN;
if (moment.getN() > 3) {
double variance = moment.m2 / (moment.n - 1);
if (moment.n <= 3 || variance < 10E-20) {
kurtosis = 0.0;
} else {
double n = moment.n;... | public double getResult() {
double kurtosis = Double.NaN;
if (moment.getN() > 3) {
double variance = moment.m2 / (moment.n - 1);
if (moment.n <= 3 || variance < 10E-20) {
kurtosis = 0.0;
} else {
double n = moment.n;... |
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address... | protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address... |
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address... | protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address... |
public interface BivariateGridInterpolator {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Lic... | public interface BivariateGridInterpolator {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Lic... |
public interface MultivariateInterpolator {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Lice... | public interface MultivariateInterpolator {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Lice... |
public interface TrivariateGridInterpolator {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Li... | public interface TrivariateGridInterpolator {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Li... |
public interface UnivariateInterpolator {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Licens... | public interface UnivariateInterpolator {
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache Licens... |
private void testRejectExpressions1_1_0(ModelTestControllerVersion controllerVersion) throws Exception {
final ModelVersion modelVersion = ModelVersion.create(1, 1, 0);
final KernelServicesBuilder builder = createKernelServicesBuilder(LoggingTestEnvironment.getManagementInstance());
// Crea... | private void testRejectExpressions1_1_0(ModelTestControllerVersion controllerVersion) throws Exception {
final ModelVersion modelVersion = ModelVersion.create(1, 1, 0);
final KernelServicesBuilder builder = createKernelServicesBuilder(LoggingTestEnvironment.getManagementInstance());
// Crea... |
public final void write(T t, MediaType contentType, HttpOutputMessage outputMessage)
throws IOException, HttpMessageNotWritableException {
HttpHeaders headers = outputMessage.getHeaders();
if (headers.getContentType() == null) {
if (contentType == null || contentType.isWildcardType() || contentType.isWildca... | public final void write(T t, MediaType contentType, HttpOutputMessage outputMessage)
throws IOException, HttpMessageNotWritableException {
HttpHeaders headers = outputMessage.getHeaders();
if (headers.getContentType() == null) {
if (contentType == null || contentType.isWildcardType() || contentType.isWildca... |
public boolean isUrlSafe() {
return this.encodeTable == URL_SAFE_ENCODE_TABLE;
}
/**
* <p>
* Encodes all of the provided data, starting at inPos, for inAvail bytes. Must be called at least twice: once with
* the data to encode, and once with inAvail set to "-1" to alert encoder that ... | public boolean isUrlSafe() {
return this.encodeTable == URL_SAFE_ENCODE_TABLE;
}
/**
* <p>
* Encodes all of the provided data, starting at inPos, for inAvail bytes. Must be called at least twice: once with
* the data to encode, and once with inAvail set to "-1" to alert encoder that ... |
private void sync() {
// note that sometimes the tuples active may be less than max_spout_pending, e.g.
// max_spout_pending = 3
// tx 1, 2, 3 active, tx 2 is acked. there won't be a commit for tx 2 (because tx 1 isn't committed yet),
// and there won't be a batch for tx 4 because th... | private void sync() {
// note that sometimes the tuples active may be less than max_spout_pending, e.g.
// max_spout_pending = 3
// tx 1, 2, 3 active, tx 2 is acked. there won't be a commit for tx 2 (because tx 1 isn't committed yet),
// and there won't be a batch for tx 4 because th... |
protected void processAnnotations(ClassInfo beanClass, CompositeIndex index, EJBComponentDescription componentDescription) throws DeploymentUnitProcessingException {
Map<DotName, List<AnnotationInstance>> annotationsOnBean = beanClass.annotations();
if (annotationsOnBean == null || annotationsOnBean... | protected void processAnnotations(ClassInfo beanClass, CompositeIndex index, EJBComponentDescription componentDescription) throws DeploymentUnitProcessingException {
Map<DotName, List<AnnotationInstance>> annotationsOnBean = beanClass.annotations();
if (annotationsOnBean == null || annotationsOnBean... |
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 initialize(ExtensionContext context) {
// IMPORTANT: Management API version != xsd version! Not all Management API changes result in XSD changes
SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION,
MANAGEMENT_API_MINOR... | public void initialize(ExtensionContext context) {
// IMPORTANT: Management API version != xsd version! Not all Management API changes result in XSD changes
SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, MANAGEMENT_API_MAJOR_VERSION,
MANAGEMENT_API_MINOR... |
public void afterConcurrentHandlingStarted(HttpServletRequest request, HttpServletResponse response) {
if (this.requestInterceptor instanceof AsyncWebRequestInterceptor) {
AsyncWebRequestInterceptor asyncInterceptor = (AsyncWebRequestInterceptor) this.requestInterceptor;
DispatcherServletWebRequest webRequest ... | public void afterConcurrentHandlingStarted(HttpServletRequest request, HttpServletResponse response, Object handler) {
if (this.requestInterceptor instanceof AsyncWebRequestInterceptor) {
AsyncWebRequestInterceptor asyncInterceptor = (AsyncWebRequestInterceptor) this.requestInterceptor;
DispatcherServletWebReq... |
public void addMessage() {
MessageBuilder builder = new MessageBuilder();
MessageResolver message = builder.severity(Severity.ERROR).code("invalidFormat").resolvableArg(
"mathForm.decimalField").arg("#,###.##").defaultText("Field must be in format #,###.##").build();
context.addMessage("mathForm.decimalField... | public void addMessage() {
MessageBuilder builder = new MessageBuilder();
MessageResolver message = builder.severity(Severity.ERROR).code("invalidFormat").resolvableArg(
"mathForm.decimalField").arg("#,###.##").defaultText("Field must be in format #,###.##").build();
context.add(message, "mathForm.decimalFie... |
protected ServerModelDeploymentAdd getServerModelUpdate() {
return new ServerModelDeploymentAdd(uniqueName, runtimeName, hash, start);
}
| protected ServerModelDeploymentAdd getServerModelUpdate() {
return new ServerModelDeploymentAdd(uniqueName, runtimeName, hash);
}
|
protected ServerModelDeploymentRemove getServerModelUpdate() {
return new ServerModelDeploymentRemove(uniqueName, true);
}
| protected ServerModelDeploymentRemove getServerModelUpdate() {
return new ServerModelDeploymentRemove(uniqueName);
}
|
protected ServerModelDeploymentStartStopUpdate getServerModelUpdate() {
return new ServerModelDeploymentStartStopUpdate(this);
}
| protected ServerModelDeploymentStartStopUpdate getServerModelUpdate() {
return new ServerModelDeploymentStartStopUpdate(deploymentUnitName, isStart);
}
|
protected MessagingSubsystemElement createSubsystemElement() {
final MessagingSubsystemElement element = new MessagingSubsystemElement();
if (bindingsDirectory != null) element.setBindingsDirectory(getBindingsDirectory());
if (journalDirectory != null) element.setJournalDirectory(getJournalD... | protected MessagingSubsystemElement createSubsystemElement() {
final MessagingSubsystemElement element = new MessagingSubsystemElement();
if (bindingsDirectory != null) element.setBindingsDirectory(getBindingsDirectory());
if (journalDirectory != null) element.setJournalDirectory(getJournalD... |
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODU... | public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODU... |
public static final ZipLong DD_SIG = new ZipLong(0X08074B50L);
/**
* Value stored in size and similar fields if ZIP64 extensions are
* used.
* @since Apache Commons Compress 1.3
*/
static final ZipLong ZIP64_MAGIC = new ZipLong(0xFFFFFFFFL);
| public static final ZipLong DD_SIG = new ZipLong(0X08074B50L);
/**
* Value stored in size and similar fields if ZIP64 extensions are
* used.
* @since Apache Commons Compress 1.3
*/
static final ZipLong ZIP64_MAGIC = new ZipLong(ZipConstants.ZIP64_MAGIC);
|
public static final PathElement FILE_STORE_PATH = PathElement.pathElement(ModelKeys.FILE_STORE, ModelKeys.FILE_STORE_NAME);
// attributes
static final SimpleAttributeDefinition PATH =
new SimpleAttributeDefinitionBuilder(ModelKeys.PATH, ModelType.STRING, true)
.setXmlName(At... | public static final PathElement FILE_STORE_PATH = PathElement.pathElement(ModelKeys.FILE_STORE, ModelKeys.FILE_STORE_NAME);
// attributes
static final SimpleAttributeDefinition PATH =
new SimpleAttributeDefinitionBuilder(ModelKeys.PATH, ModelType.STRING, true)
.setXmlName(At... |
public static final PathElement STORE_PATH = PathElement.pathElement(ModelKeys.STORE, ModelKeys.STORE_NAME);
// attributes
static final SimpleAttributeDefinition CLASS =
new SimpleAttributeDefinitionBuilder(ModelKeys.CLASS, ModelType.STRING, false)
.setXmlName(Attribute.CLAS... | public static final PathElement STORE_PATH = PathElement.pathElement(ModelKeys.STORE, ModelKeys.STORE_NAME);
// attributes
static final SimpleAttributeDefinition CLASS =
new SimpleAttributeDefinitionBuilder(ModelKeys.CLASS, ModelType.STRING, false)
.setXmlName(Attribute.CLAS... |
public Cache<K, V> createCache(String beanName, StatefulObjectFactory<V> factory, PassivationManager<K, V> passivationManager, StatefulTimeoutInfo timeout) {
// Create/find the cache for SerializationGroup that the container
// may be associated with
PassivatingBackingCache<UUID, Cacheable<... | public Cache<K, V> createCache(String beanName, StatefulObjectFactory<V> factory, PassivationManager<K, V> passivationManager, StatefulTimeoutInfo timeout) {
// Create/find the cache for SerializationGroup that the container
// may be associated with
PassivatingBackingCache<UUID, Cacheable<... |
public void sendMessage(final String processName, final byte[] message, final long checksum) throws IOException {
if (processName == null) {
throw new IllegalArgumentException("processName is null");
}
final StringBuilder b = new StringBuilder();
b.append(Command.SEND_BYT... | public void sendMessage(final String processName, final byte[] message, final long checksum) throws IOException {
if (processName == null) {
throw new IllegalArgumentException("processName is null");
}
final StringBuilder b = new StringBuilder();
b.append(Command.SEND_BYT... |
public void execute(String[] args) throws Exception {
if (args.length != 4 && args.length != 5) {
System.out.println("Usage: " + this.getClass().getSimpleName() + " <dataSourceClassName> <dataSource.url> "
+ "<user> <password> [topology name]");
System.exit(-1);
... | public void execute(String[] args) throws Exception {
if (args.length != 4 && args.length != 5) {
System.out.println("Usage: " + this.getClass().getSimpleName() + " <dataSourceClassName> <dataSource.url> "
+ "<user> <password> [topology name]");
System.exit(-1);
... |
public JdrReport collect() throws OperationFailedException {
JdrRunner runner = new JdrRunner();
serverEnvironment = serverEnvironmentValue.getValue();
runner.setJbossHomeDir(serverEnvironment.getHomeDir().getAbsolutePath());
runner.setReportLocationDir(serverEnvironment.getServerTem... | public JdrReport collect() throws OperationFailedException {
JdrRunner runner = new JdrRunner(true);
serverEnvironment = serverEnvironmentValue.getValue();
runner.setJbossHomeDir(serverEnvironment.getHomeDir().getAbsolutePath());
runner.setReportLocationDir(serverEnvironment.getServe... |
public MicrosphereInterpolatingFunction(double[][] xval,
double[] yval,
int brightnessExponent,
int microsphereElements,
UnitSphereRandomVec... | public MicrosphereInterpolatingFunction(double[][] xval,
double[] yval,
int brightnessExponent,
int microsphereElements,
UnitSphereRandomVec... |
public interface LoggingLogger extends BasicLogger {
/*
* 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 soft... | public interface LoggingLogger extends BasicLogger {
/*
* 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 soft... |
public SystemUtils() {
// no init.
}
| public SystemUtils() {
super();
}
|
public Object encode(Object pObject) throws EncoderException {
if (!(pObject instanceof java.lang.String)) {
throw new EncoderException("Parameter supplied to Caverphone encode is not of type java.lang.String");
}
return caverphone((String) pObject);
}
| public Object encode(Object pObject) throws EncoderException {
if (!(pObject instanceof String)) {
throw new EncoderException("Parameter supplied to Caverphone encode is not of type java.lang.String");
}
return caverphone((String) pObject);
}
|
public Object encode(Object pObject) throws EncoderException {
if (!(pObject instanceof java.lang.String)) {
throw new EncoderException("Parameter supplied to Metaphone encode is not of type java.lang.String");
}
return metaphone((String) pObject);
}
| public Object encode(Object pObject) throws EncoderException {
if (!(pObject instanceof String)) {
throw new EncoderException("Parameter supplied to Metaphone encode is not of type java.lang.String");
}
return metaphone((String) pObject);
}
|
public Object encode(Object pObject) throws EncoderException {
if (!(pObject instanceof java.lang.String)) {
throw new EncoderException("Parameter supplied to RefinedSoundex encode is not of type java.lang.String");
}
return soundex((String) pObject);
}
| public Object encode(Object pObject) throws EncoderException {
if (!(pObject instanceof String)) {
throw new EncoderException("Parameter supplied to RefinedSoundex encode is not of type java.lang.String");
}
return soundex((String) pObject);
}
|
protected String runIf(CommandContext ctx) throws Exception {
ctx.handle("if result.value==true of " + this.getReadPropertyReq());
ctx.handle(this.getWritePropertyReq("\"false\""));
ctx.handle("else");
ctx.handle(this.getWritePropertyReq("\"true\""));
ctx.handle("end-if");
... | protected String runIf(CommandContext ctx) throws Exception {
ctx.handle("if result.value==\"true\" of " + this.getReadPropertyReq());
ctx.handle(this.getWritePropertyReq("\"false\""));
ctx.handle("else");
ctx.handle(this.getWritePropertyReq("\"true\""));
ctx.handle("end-if")... |
public void bootstrap() throws Exception {
final HostRunningModeControl runningModeControl = new HostRunningModeControl(environment.getInitialRunningMode(), RestartMode.SERVERS);
final ControlledProcessState processState = new ControlledProcessState(false);
ServiceTarget target = serviceCon... | public void bootstrap() throws Exception {
final HostRunningModeControl runningModeControl = environment.getRunningModeControl();
final ControlledProcessState processState = new ControlledProcessState(false);
ServiceTarget target = serviceContainer.subTarget();
ControlledProcessStat... |
protected AbstractModelElement() {
//assert getClass() == getElementClass() : ""+getClass() + " != " + getElementClass();
}
| protected AbstractModelElement() {
assert getClass() == getElementClass() : ""+getClass() + " != " + getElementClass();
}
|
public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException {
final ModelNode composite = new ModelNode();
composite.get(Util.OPERATION).set(Util.COMPOSITE);
composite.get(Util.ADDRESS).setEmptyList();
final ModelNode steps = composite.get(Util.STEP... | public ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException {
final ModelNode composite = new ModelNode();
composite.get(Util.OPERATION).set(Util.COMPOSITE);
composite.get(Util.ADDRESS).setEmptyList();
final ModelNode steps = composite.get(Util.STEP... |
Map<String, Object> execute(Map<String, ?> args);
/*
* Copyright 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | Map<String, Object> execute(Map<String, ?> args);
/*
* Copyright 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
protected void updateRuntime(final OperationContext context, final ServiceBuilder<Handler> serviceBuilder, final String name, final ConsoleHandlerService service, final ModelNode model) throws OperationFailedException {
super.updateRuntime(context, serviceBuilder, name, service, model);
final ModelN... | protected void updateRuntime(final OperationContext context, final ServiceBuilder<Handler> serviceBuilder, final String name, final ConsoleHandlerService service, final ModelNode model) throws OperationFailedException {
super.updateRuntime(context, serviceBuilder, name, service, model);
final ModelN... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ModuleLoader moduleLoader = Module.getBootModuleLoader();
final ModuleSpecification moduleSpecification = deploymen... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final ModuleLoader moduleLoader = Module.getBootModuleLoader();
final ModuleSpecification moduleSpecification = deploymen... |
public void start(StartContext context) throws StartException {
try {
String protocol = "TLS";
if (ssl.has(PROTOCOL)) {
protocol = ssl.get(PROTOCOL).asString();
}
KeyManager[] keyManagers = null;
KeyStore theKeyStore = keystore.get... | public void start(StartContext context) throws StartException {
try {
String protocol = "TLS";
if (ssl.hasDefined(PROTOCOL)) {
protocol = ssl.get(PROTOCOL).asString();
}
KeyManager[] keyManagers = null;
KeyStore theKeyStore = keyst... |
public ConvexHull2D(final Collection<Vector2D> vertices, final double tolerance) {
this.vertices = vertices.toArray(new Vector2D[vertices.size()]);
// construct the line segments - handle special cases of 1 or 2 points
final int size = vertices.size();
if (size <= 1) {
t... | private final Line[] lineSegments;
/**
* Simple constructor.
* @param vertices the vertices of the convex hull
* @param tolerance tolerance below which points are considered identical
*/
ConvexHull2D(final Collection<Vector2D> vertices, final double tolerance) {
this.vertices = ... |
private static STSType toSAMLConfig(OperationContext context, ModelNode fromModel) throws OperationFailedException {
int tokenTimeout = SAMLResourceDefinition.TOKEN_TIMEOUT.resolveModelAttribute(context, fromModel).asInt();
int clockSkew = SAMLResourceDefinition.CLOCK_SKEW.resolveModelAttribute(cont... | protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model,
final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException {
launchServices(context... |
public ManagedReference getReference() {
PersistenceUnitServiceImpl service = (PersistenceUnitServiceImpl) serviceRegistry.getRequiredService(puServiceName).getValue();
EntityManagerFactory emf = service.getEntityManagerFactory();
EntityManager entityManager;
bool... | public ManagedReference getReference() {
PersistenceUnitServiceImpl service = (PersistenceUnitServiceImpl) serviceRegistry.getRequiredService(puServiceName).getValue();
EntityManagerFactory emf = service.getEntityManagerFactory();
EntityManager entityManager;
bool... |
public ProtocolDescription getDefaultProtocol() {
return new ProtocolDescription("jmx-as7");
}
| public ProtocolDescription getDefaultProtocol() {
return new ProtocolDescription("Servlet 3.0");
}
|
private static void printAST(PrintStream out, SpelNode t, String indent) {
if (t != null) {
StringBuffer sb = new StringBuffer();
String s = (t.getType() == -1 ? "EOF" : t.getClass().getSimpleName());
sb.append(indent).append(s);
sb.append(" value=").append(t.getText());
sb.append(t.getChildCount() <... | private static void printAST(PrintStream out, SpelNode t, String indent) {
if (t != null) {
StringBuilder sb = new StringBuilder();
String s = (t.getType() == -1 ? "EOF" : t.getClass().getSimpleName());
sb.append(indent).append(s);
sb.append(" value=").append(t.getText());
sb.append(t.getChildCount()... |
public String toStringAST() {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < getChildCount(); i++) {
sb.append(getChild(i).toStringAST());
}
return sb.toString();
}
| public String toStringAST() {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < getChildCount(); i++) {
sb.append(getChild(i).toStringAST());
}
return sb.toString();
}
|
public String toStringAST() {
StringBuffer sb = new StringBuffer();
return sb.append("!{").append(getChild(0).toStringAST()).append("}").toString();
}
| public String toStringAST() {
StringBuilder sb = new StringBuilder();
return sb.append("!{").append(getChild(0).toStringAST()).append("}").toString();
}
|
public static String reverseString(String input) {
StringBuffer backwards = new StringBuffer();
for (int i = 0; i < input.length(); i++) {
backwards.append(input.charAt(input.length() - 1 - i));
}
return backwards.toString();
}
| public static String reverseString(String input) {
StringBuilder backwards = new StringBuilder();
for (int i = 0; i < input.length(); i++) {
backwards.append(input.charAt(input.length() - 1 - i));
}
return backwards.toString();
}
|
public ResultSetExtractor getResultSetExtractor() {
return resultSetExtractor;
}
| public ResultSetExtractor getResultSetExtractor() {
return this.resultSetExtractor;
}
|
public static String convertUnderscoreNameToPropertyName(String name) {
StringBuffer result = new StringBuffer();
boolean nextIsUpper = false;
if (name != null && name.length() > 0) {
if (name.length() > 1 && name.substring(1,2).equals("_")) {
result.append(name.substring(0, 1).toUpperCase());
}
els... | public static String convertUnderscoreNameToPropertyName(String name) {
StringBuilder result = new StringBuilder();
boolean nextIsUpper = false;
if (name != null && name.length() > 0) {
if (name.length() > 1 && name.substring(1,2).equals("_")) {
result.append(name.substring(0, 1).toUpperCase());
}
e... |
Map<String, ?> getJpaPropertyMap();
/*
* Copyright 2002-2008 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/LI... | Map<String, ?> getJpaPropertyMap();
/*
* Copyright 2002-2008 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/LI... |
public String toString() {
StringBuffer sb = new StringBuffer("BindStatus: ");
sb.append("expression=[").append(this.expression).append("]; ");
sb.append("value=[").append(this.value).append("]");
if (isError()) {
sb.append("; errorCodes=").append(Arrays.asList(this.errorCodes));
}
return sb.toString();... | public String toString() {
StringBuilder sb = new StringBuilder("BindStatus: ");
sb.append("expression=[").append(this.expression).append("]; ");
sb.append("value=[").append(this.value).append("]");
if (isError()) {
sb.append("; errorCodes=").append(Arrays.asList(this.errorCodes));
}
return sb.toString(... |
package org.wildfly.extension.undertow;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... | package org.wildfly.extension.undertow;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... |
package org.wildfly.extension.undertow;
package org.jboss.as.undertow;
import io.undertow.server.HttpHandler;
import org.jboss.as.controller.OperationContext;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.controller.PersistentResourceDefinition;
import org.jboss.dmr.ModelNode;
/**
* @... | package org.wildfly.extension.undertow;
package org.wildfly.extension.undertow;
import io.undertow.server.HttpHandler;
import org.jboss.as.controller.OperationContext;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.controller.PersistentResourceDefinition;
import org.jboss.dmr.ModelNode;
... |
package org.wildfly.extension.undertow;
package org.jboss.as.undertow;
import io.undertow.servlet.api.DeploymentInfo;
/**
* @author <a href="mailto:tomaz.cerar@redhat.com">Tomaz Cerar</a> (c) 2013 Red Hat Inc.
*/
public interface UndertowEventListener {
void onShutdown();
void onDeploymentAdd(DeploymentIn... | package org.wildfly.extension.undertow;
package org.wildfly.extension.undertow;
import io.undertow.servlet.api.DeploymentInfo;
/**
* @author <a href="mailto:tomaz.cerar@redhat.com">Tomaz Cerar</a> (c) 2013 Red Hat Inc.
*/
public interface UndertowEventListener {
void onShutdown();
void onDeploymentAdd(Dep... |
package org.wildfly.extension.undertow;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... | package org.wildfly.extension.undertow;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can... |
package org.wildfly.extension.undertow.security;
package org.jboss.as.undertow.security;
import io.undertow.util.AttachmentKey;
import org.jboss.security.SecurityContext;
/**
* @author Stuart Douglas
*/
public class UndertowSecurityAttachments {
public static final AttachmentKey<SecurityContext> SECURITY_CONT... | package org.wildfly.extension.undertow.security;
package org.wildfly.extension.undertow.security;
import io.undertow.util.AttachmentKey;
import org.jboss.security.SecurityContext;
/**
* @author Stuart Douglas
*/
public class UndertowSecurityAttachments {
public static final AttachmentKey<SecurityContext> SECU... |
package org.wildfly.extension.undertow.session;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free ... | package org.wildfly.extension.undertow.session;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free ... |
package org.wildfly.extension.undertow.session;
/*
* 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 software;... | package org.wildfly.extension.undertow.session;
/*
* 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 software;... |
package org.wildfly.extension.undertow.session;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free ... | package org.wildfly.extension.undertow.session;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free ... |
package org.wildfly.extension.undertow.session;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free ... | package org.wildfly.extension.undertow.session;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free ... |
package org.wildfly.extension.undertow.session.notification;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* ... | package org.wildfly.extension.undertow.session.notification;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* ... |
protected void execute(DeploymentProcessorTarget processorTarget) {
processorTarget.addDeploymentProcessor(WeldExtension.SUBSYSTEM_NAME, Phase.DEPENDENCIES, Phase.DEPENDENCIES_WELD, new WeldDependencyProcessor());
processorTarget.addDeploymentProcessor(WeldExtension.SUBSYSTEM... | protected void execute(DeploymentProcessorTarget processorTarget) {
processorTarget.addDeploymentProcessor(WeldExtension.SUBSYSTEM_NAME, Phase.DEPENDENCIES, Phase.DEPENDENCIES_WELD, new WeldDependencyProcessor());
processorTarget.addDeploymentProcessor(WeldExtension.SUBSYSTEM... |
public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
// no attributes
if (reader.getAttributeCount() > 0) {
throw unexpectedAttribute(reader, 0);
}
final ModelNode address = new ModelNode();
address.add(ModelDe... | public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {
// no attributes
if (reader.getAttributeCount() > 0) {
throw unexpectedAttribute(reader, 0);
}
final ModelNode address = new ModelNode();
address.add(ModelDe... |
protected Object getEmptyValue(PropertyBinding binding) {
Class<?> type = binding.getModel().getValueType();
if (boolean.class.equals(type) || Boolean.class.equals(type)) {
return Boolean.FALSE;
} else {
return null;
}
}
| protected Object getEmptyValue(PropertyBinding binding) {
Class<?> type = binding.getValueModel().getValueType();
if (boolean.class.equals(type) || Boolean.class.equals(type)) {
return Boolean.FALSE;
} else {
return null;
}
}
|
private void populateTemplate(TemplateParser templateParser, SubsystemsParser subsystemsParser) throws IOException, XMLStreamException{
final Set<String> extensions = new TreeSet<String>();
final Map<String, Map<String, ElementNode>> socketBindingsByGroup = new HashMap<String, Map<String, ElementNod... | private void populateTemplate(TemplateParser templateParser, SubsystemsParser subsystemsParser) throws IOException, XMLStreamException{
final Set<String> extensions = new TreeSet<String>();
final Map<String, Map<String, ElementNode>> socketBindingsByGroup = new HashMap<String, Map<String, ElementNod... |
private String marshall(SubsystemParser subsystemParser) throws Exception {
StringWriter stringWriter = new StringWriter();
XMLOutputFactory factory = XMLOutputFactory.newInstance();
FormattingXMLStreamWriter writer = new FormattingXMLStreamWriter(factory.createXMLStreamWriter(stringWriter))... | private String marshall(SubsystemParser subsystemParser) throws Exception {
StringWriter stringWriter = new StringWriter();
XMLOutputFactory factory = XMLOutputFactory.newInstance();
FormattingXMLStreamWriter writer = new FormattingXMLStreamWriter(factory.createXMLStreamWriter(stringWriter))... |
public TestUndertowService(String defaultContainer, String defaultServer, String defaultVirtualHost, String instanceId, Server server) {
super(defaultContainer, defaultServer, defaultVirtualHost, instanceId);
this.registerServer(server);
}
| public TestUndertowService(String defaultContainer, String defaultServer, String defaultVirtualHost, String instanceId, Server server) {
super(defaultContainer, defaultServer, defaultVirtualHost, instanceId, true);
this.registerServer(server);
}
|
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
fina... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));
fina... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> controllers) throws OperationFailedException {
ROOT_LOGGER.activatingSubsystem();
controllers.addAll(installRuntimeServices(conte... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> controllers) throws OperationFailedException {
ROOT_LOGGER.activatingSubsystem();
controllers.addAll(installRuntimeServices(conte... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
// remove the ProtocolDefaultsService
context.removeService(ProtocolDefaultsService.SERVICE_NAME);
String defaultStack = ModelNodes.asString(JGroupsSubsystemResour... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException {
// remove the ProtocolDefaultsService
context.removeService(ProtocolDefaultsService.SERVICE_NAME);
String defaultStack = ModelNodes.asString(JGroupsSubsystemResour... |
protected void realCheckPermission(MethodType methodType, InvocationType invocationType) {
checkTransactionSync(methodType);
if (invocationType != null) {
if (denied.contains(new DeniedMethodKey(invocationType, methodType))) {
throwException(methodType, invocationType);
... | protected void realCheckPermission(MethodType methodType, InvocationType invocationType) {
checkTransactionSync(methodType);
if (invocationType != null) {
if (denied.contains(new DeniedMethodKey(invocationType, methodType))) {
throwException(methodType, invocationType);
... |
public String getComponentId(int taskId) {
if(taskId==-1) {
return Constants.SYSTEM_COMPONENT_ID;
} else {
return _taskToComponent.get(taskId);
}
}
| public String getComponentId(int taskId) {
if(taskId==Constants.SYSTEM_TASK_ID) {
return Constants.SYSTEM_COMPONENT_ID;
} else {
return _taskToComponent.get(taskId);
}
}
|
public Object update(Object stored) {
Object ret = (stored == null) ? this.agg.init() : stored;
for(TridentTuple t: tuples) {
ret = this.agg.reduce(ret, t);
}
return ret;
}
| public Object update(Object stored) {
Object ret = stored;
for(TridentTuple t: tuples) {
ret = this.agg.reduce(ret, t);
}
return ret;
}
|
public StormTopology buildTopology() {
TopologyBuilder builder = new TopologyBuilder();
Map<GlobalStreamId, String> batchIdsForSpouts = fleshOutStreamBatchIds(false);
Map<GlobalStreamId, String> batchIdsForBolts = fleshOutStreamBatchIds(true);
Map<String, List<String>> batch... | public StormTopology buildTopology() {
TopologyBuilder builder = new TopologyBuilder();
Map<GlobalStreamId, String> batchIdsForSpouts = fleshOutStreamBatchIds(false);
Map<GlobalStreamId, String> batchIdsForBolts = fleshOutStreamBatchIds(true);
Map<String, List<String>> batch... |
public void close() throws NamingException {
namingStore.close();
}
| public void close() throws NamingException {
// NO-OP
}
|
class HostCommunicationServices {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redis... | class HostCommunicationServices {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redis... |
public interface ManagedServerLifecycleCallback {
/*
* 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 softwar... | public interface ManagedServerLifecycleCallback {
/*
* 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 softwar... |
public void placeHoldersInRequestMapping() throws Exception {
StubWebApplicationContext cxt = new StubWebApplicationContext(new MockServletContext());
StandaloneMockMvcBuilder builder = new StandaloneMockMvcBuilder(new PlaceholderController());
builder.addPlaceHolderValues("sys.login.ajax", "/foo");
builder.i... | public void placeHoldersInRequestMapping() throws Exception {
StubWebApplicationContext cxt = new StubWebApplicationContext(new MockServletContext());
StandaloneMockMvcBuilder builder = new StandaloneMockMvcBuilder(new PlaceholderController());
builder.addPlaceHolderValue("sys.login.ajax", "/foo");
builder.in... |
private synchronized URI getConnectionURI() throws IOException, URISyntaxException {
if (this.connectionURI != null) {
return this.connectionURI;
}
final OutboundSocketBinding destinationOutboundSocket = this.destinationOutboundSocketBindingInjectedValue.getValue();
final... | private synchronized URI getConnectionURI() throws IOException, URISyntaxException {
if (this.connectionURI != null) {
return this.connectionURI;
}
final OutboundSocketBinding destinationOutboundSocket = this.destinationOutboundSocketBindingInjectedValue.getValue();
final... |
private synchronized URI getConnectionURI() throws IOException, URISyntaxException {
if (this.connectionURI != null) {
return this.connectionURI;
}
final OutboundSocketBinding destinationOutboundSocket = this.destinationOutboundSocketBindingInjectedValue.getValue();
final... | private synchronized URI getConnectionURI() throws IOException, URISyntaxException {
if (this.connectionURI != null) {
return this.connectionURI;
}
final OutboundSocketBinding destinationOutboundSocket = this.destinationOutboundSocketBindingInjectedValue.getValue();
final... |
public void testDisabled() throws Exception {
this.tag.setDisabled(true);
this.tag.doStartTag();
this.tag.doEndTag();
String output = getOutput();
assertTagOpened(output);
assertTagClosed(output);
assertContainsAttribute(output, "disabled", "disabled");
}
| public void testDisabled() throws Exception {
this.tag.setDisabled("true");
this.tag.doStartTag();
this.tag.doEndTag();
String output = getOutput();
assertTagOpened(output);
assertTagClosed(output);
assertContainsAttribute(output, "disabled", "disabled");
}
|
public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("someBoolean");
this.tag.setDisabled(true);
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>... | public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("someBoolean");
this.tag.setDisabled("true");
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the output so it is valid XML
output = "<doc>" + output + "</do... |
public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("stringArray");
this.tag.setItems(new Object[] {"foo", "bar", "baz"});
this.tag.setDisabled(true);
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the output... | public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("stringArray");
this.tag.setItems(new Object[] {"foo", "bar", "baz"});
this.tag.setDisabled("true");
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the outp... |
public void testWithNonEscapedErrors() throws Exception {
this.tag.setHtmlEscape(false);
// construct an errors instance of the tag
TestBean target = new TestBean();
target.setName("Rob Harrop");
Errors errors = new BeanPropertyBindingResult(target, COMMAND_NAME);
errors.rejectValue("name", "some.code", "... | public void testWithNonEscapedErrors() throws Exception {
this.tag.setHtmlEscape("false");
// construct an errors instance of the tag
TestBean target = new TestBean();
target.setName("Rob Harrop");
Errors errors = new BeanPropertyBindingResult(target, COMMAND_NAME);
errors.rejectValue("name", "some.code",... |
public void testWithNullResolvedCommand() throws Exception {
try {
tag.setCommandName(null);
tag.doStartTag();
fail("Must not be able to have a command name that resolves to null");
}
catch (IllegalArgumentException ex) {
// expected
}
}
| public void testWithNullResolvedCommand() throws Exception {
try {
tag.setCommandName("${null}");
tag.doStartTag();
fail("Must not be able to have a command name that resolves to null");
}
catch (IllegalArgumentException ex) {
// expected
}
}
|
public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("stringArray");
this.tag.setItems(new Object[] {"foo", "bar", "baz"});
this.tag.setDisabled(true);
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the output... | public void testHiddenElementOmittedOnDisabled() throws Exception {
this.tag.setPath("stringArray");
this.tag.setItems(new Object[] {"foo", "bar", "baz"});
this.tag.setDisabled("true");
int result = this.tag.doStartTag();
assertEquals(Tag.SKIP_BODY, result);
String output = getOutput();
// wrap the outp... |
public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription viewDescription, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException {
if (componentConfiguration.getComponentDescription() instanceof EJBComponentDescription == fal... | public void configure(DeploymentPhaseContext context, ComponentConfiguration componentConfiguration, ViewDescription viewDescription, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException {
if (componentConfiguration.getComponentDescription() instanceof EJBComponentDescription == fal... |
public void testGeneratorConfig() {
double[] testData = {0, 1, 2, 3, 4};
RandomGenerator generator = new RandomAdaptorTest.ConstantGenerator(0.5);
EmpiricalDistribution dist = new EmpiricalDistributionImpl(5, generator);
dist.load(testData);
for (int i = 0; i < 5; i+... | public void testGeneratorConfig() {
double[] testData = {0, 1, 2, 3, 4};
RandomGenerator generator = new RandomAdaptorTest.ConstantGenerator(0.5);
EmpiricalDistribution dist = new EmpiricalDistributionImpl(5, generator);
dist.load(testData);
for (int i = 0; i < 5; i+... |
super(size);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or mod... | super(size);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or mod... |
private void populateServerGroupResults(final OperationContext context, final ModelNode result) {
final Set<String> groupNames = new TreeSet<String>();
final Map<String, Set<HostServer>> groupToServerMap = new HashMap<String, Set<HostServer>>();
for (Map.Entry<ServerIdentity, ModelNode> entr... | private void populateServerGroupResults(final OperationContext context, final ModelNode result) {
final Set<String> groupNames = new TreeSet<String>();
final Map<String, Set<HostServer>> groupToServerMap = new HashMap<String, Set<HostServer>>();
for (Map.Entry<ServerIdentity, ModelNode> entr... |
protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final String coordinatorURL = model.get(CommonAttributes.XTS_ENVIRONMENT).hasDefined(Mod... | protected void performBoottime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
final String coordinatorURL = model.get(CommonAttributes.XTS_ENVIRONMENT,ModelDescriptio... |
public Object lookup(String name) throws IllegalArgumentException {
if (name == null) {
throw EjbLogger.ROOT_LOGGER.jndiNameCannotBeNull();
}
final NamespaceContextSelector namespaceContextSelector = NamespaceContextSelector.getCurrentSelector();
if (namespaceContextSelec... | public Object lookup(String name) throws IllegalArgumentException {
if (name == null) {
throw EjbLogger.ROOT_LOGGER.jndiNameCannotBeNull();
}
final NamespaceContextSelector namespaceContextSelector = NamespaceContextSelector.getCurrentSelector();
if (namespaceContextSelec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.