buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public PropertyResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.PROPERTY), ControllerResolver.getResolver("core.management.security-realm.property"), new SecurityRealmChildAddHandler(true, VALUE), new SecurityRealmChildRemoveHandl...
public PropertyResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.PROPERTY), ControllerResolver.getResolver("core.management.security-realm.property"), new SecurityRealmChildAddHandler(true, VALUE), new SecurityRealmChildRemoveHandl...
public SSLServerIdentityResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SSL), ControllerResolver.getResolver("core.management.security-realm.server-identity.ssl"), new SecurityRealmChildAddHandler(false...
public SSLServerIdentityResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SSL), ControllerResolver.getResolver("core.management.security-realm.server-identity.ssl"), new SecurityRealmChildAddHandler(false...
public SecretServerIdentityResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SECRET), ControllerResolver.getResolver("core", "management", "security-realm", "server-identity", "secret"), new SecurityRealm...
public SecretServerIdentityResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.SERVER_IDENTITY, ModelDescriptionConstants.SECRET), ControllerResolver.getResolver("core", "management", "security-realm", "server-identity", "secret"), new SecurityRealm...
public TruststoreAuthenticationResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.TRUSTSTORE), ControllerResolver.getResolver("core.management.security-realm.authentication.truststore"), new SecurityRealmCh...
public TruststoreAuthenticationResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.TRUSTSTORE), ControllerResolver.getResolver("core.management.security-realm.authentication.truststore"), new SecurityRealmCh...
public XmlAuthenticationResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.USERS), ControllerResolver.getResolver("core.management.security-realm.authentication.xml"), new SecurityRealmChildAddHandler(true)...
public XmlAuthenticationResourceDefinition() { super(PathElement.pathElement(ModelDescriptionConstants.AUTHENTICATION, ModelDescriptionConstants.USERS), ControllerResolver.getResolver("core.management.security-realm.authentication.xml"), new SecurityRealmChildAddHandler(true)...
public void buildMergedConfigWithBareAnnotations() { Class<?> testClass = BareAnnotations.class; MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass); assertMergedConfig( mergedConfig, testClass, new String[] { "classpath:org/springframework/test/context/support/Abstract...
public void buildMergedConfigWithBareAnnotations() { Class<?> testClass = BareAnnotations.class; MergedContextConfiguration mergedConfig = buildMergedContextConfiguration(testClass); assertMergedConfig( mergedConfig, testClass, new String[] { "classpath:org/springframework/test/context/support/Abstract...
public static void processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd) { processCommonDefinitionAnnotations(abd, abd.getMetadata()); } static void processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd, AnnotatedTypeMetadata metadata) { if (metadata.isAnnotated(Lazy.class.getName())) { ab...
public static void processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd) { processCommonDefinitionAnnotations(abd, abd.getMetadata()); } static void processCommonDefinitionAnnotations(AnnotatedBeanDefinition abd, AnnotatedTypeMetadata metadata) { if (metadata.isAnnotated(Lazy.class.getName())) { ab...
public String toString() { StringBuilder str = new StringBuilder(); str.append("TypedValue: ").append(this.value).append(" of type ").append(this.typeDescriptor.asString()); return str.toString(); }
public String toString() { StringBuilder str = new StringBuilder(); str.append("TypedValue: ").append(this.value).append(" of type ").append(this.getTypeDescriptor().asString()); return str.toString(); }
private static void parsePropertyElement(final ModelNode node, final XMLExtendedStreamReader reader) throws XMLStreamException { while (reader.nextTag() != END_ELEMENT) { final int cnt = reader.getAttributeCount(); String name = null; String value = null; for ...
private static void parsePropertyElement(final ModelNode node, final XMLExtendedStreamReader reader) throws XMLStreamException { while (reader.nextTag() != END_ELEMENT) { final int cnt = reader.getAttributeCount(); String name = null; String value = null; for ...
public void validateParameter(final String parameterName, final ModelNode value) throws OperationFailedException { super.validateParameter(parameterName, value); if (value.isDefined()) { for (String key : value.keys()) { if (allowedValues.containsKey(key)) { ...
public void validateParameter(final String parameterName, final ModelNode value) throws OperationFailedException { super.validateParameter(parameterName, value); if (value.isDefined()) { for (String key : value.keys()) { if (allowedValues.containsKey(key)) { ...
private CLIOpResult testRemoveConnector(String rolloutPlanId) throws Exception { cli.sendLine("/profile=default/subsystem=web/connector=test-http:remove" + "{rollout id=" + rolloutPlanId + "}"); return cli.readAllAsOpResult(); }
private CLIOpResult testRemoveConnector(String rolloutPlanId) throws Exception { cli.sendLine("/profile=default/subsystem=web/connector=test-http:remove" + "{rollout id=" + rolloutPlanId + "; allow-resource-service-restart=true}"); return cli.readAllAsOpResult(); }
public void testAddRemoveOperation() throws Exception { // add new connector cli.sendLine("/socket-binding-group=standard-sockets/socket-binding=test:add(port=8181)"); CLIOpResult result = cli.readAllAsOpResult(); assertTrue(result.isIsOutcomeSuccess()); cli.sendLine("/subs...
public void testAddRemoveOperation() throws Exception { // add new connector cli.sendLine("/socket-binding-group=standard-sockets/socket-binding=test:add(port=8181)"); CLIOpResult result = cli.readAllAsOpResult(); assertTrue(result.isIsOutcomeSuccess()); cli.sendLine("/subs...
protected void execute(DeploymentProcessorTarget processorTarget) { if (deployment != null && !deployment.isEmpty()) { processorTarget.addDeploymentProcessor(Constants.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_APP_CLIENT, new ApplicationClientStructureProcessor(dep...
protected void execute(DeploymentProcessorTarget processorTarget) { if (deployment != null && !deployment.isEmpty()) { processorTarget.addDeploymentProcessor(Constants.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_APP_CLIENT, new ApplicationClientStructureProcessor(dep...
public ServerEnvironment getServerEnvironment() { return serverEnvironment; } }; log.info("Activating core services"); // TODO: decide the fate of these // Graceful shutdown ShutdownHandlerImpl.addService(serviceTarget); // Serv...
public ServerEnvironment getServerEnvironment() { return serverEnvironment; } }; log.info("Activating core services"); // TODO: decide the fate of these // Graceful shutdown ShutdownHandlerImpl.addService(serviceTarget); // Serv...
public ArArchiveEntry(File inputFile, String entryName) { // TODO sort out mode this(entryName, inputFile.length(), 0, 0, 0, inputFile.lastModified()); }
public ArArchiveEntry(File inputFile, String entryName) { // TODO sort out mode this(entryName, inputFile.isFile() ? inputFile.length() : 0, 0, 0, 0, inputFile.lastModified()); }
public CpioArchiveEntry(File inputFile, String entryName) { this(entryName, inputFile.length()); long mode=0; if (inputFile.isDirectory()){ mode |= C_ISDIR; } else if (inputFile.isFile()){ mode |= C_ISREG; } else { throw new IllegalArgument...
public CpioArchiveEntry(File inputFile, String entryName) { this(entryName, inputFile.isFile() ? inputFile.length() : 0); long mode=0; if (inputFile.isDirectory()){ mode |= C_ISDIR; } else if (inputFile.isFile()){ mode |= C_ISREG; } else { ...
private static void computeUpToDegree(final int degree, final int maxDegree, final RecurrenceCoefficientsGenerator generator, final ArrayList<BigFraction> coefficients) { int startK = (maxDegree - 1) * maxDegree / 2; ...
private static void computeUpToDegree(final int degree, final int maxDegree, final RecurrenceCoefficientsGenerator generator, final ArrayList<BigFraction> coefficients) { int startK = (maxDegree - 1) * maxDegree / 2; ...
private FieldMatrix<BigFraction> createH(double d) throws MathArithmeticException { int k = (int) Math.ceil(n * d); int m = 2 * k - 1; double hDouble = k - n * d; if (hDouble >= 1) { throw new NumberIsTooLargeException(hDouble, 1.0, false); } ...
private FieldMatrix<BigFraction> createH(double d) throws NumberIsTooLargeException, FractionConversionException { int k = (int) Math.ceil(n * d); int m = 2 * k - 1; double hDouble = k - n * d; if (hDouble >= 1) { throw new NumberIsTooLargeException(hDouble...
private BSPTree<S> merge(final BSPTree<S> tree, final LeafMerger<S> leafMerger, final BSPTree<S> parentTree, final boolean isPlusChild) { if (cut == null) { // cell/tree operation return leafMerger.merge(this, tree, parentTree, isPlusChild, true); ...
private BSPTree<S> merge(final BSPTree<S> tree, final LeafMerger<S> leafMerger, final BSPTree<S> parentTree, final boolean isPlusChild) { if (cut == null) { // cell/tree operation return leafMerger.merge(this, tree, parentTree, isPlusChild, true); ...
protected double computeStepGrowShrinkFactor(final double error) { return FastMath.min(maxGrowth, FastMath.max(minReduction, safety * FastMath.pow(error, exp))); } /** Transformer used to convert the first step to Nordsieck representation. */ public static interface NordsieckTransformer { ...
protected double computeStepGrowShrinkFactor(final double error) { return FastMath.min(maxGrowth, FastMath.max(minReduction, safety * FastMath.pow(error, exp))); } /** Transformer used to convert the first step to Nordsieck representation. */ public interface NordsieckTransformer { /** ...
protected InjectionSource createInjectionSource(final ServiceName serviceName) { if(methodIntf != MethodIntf.REMOTE) { return super.createInjectionSource(serviceName); } else { final EJBComponentDescription componentDescription = getComponentDescription(); EEModul...
protected InjectionSource createInjectionSource(final ServiceName serviceName) { if(methodIntf != MethodIntf.REMOTE) { return super.createInjectionSource(serviceName); } else { final EJBComponentDescription componentDescription = getComponentDescription(); final E...
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...
private LogStoreTransactionParticipantDefinition() { super(TransactionExtension.PARTECIPANT_PATH, TransactionExtension.getResourceDescriptionResolver(LogStoreConstants.LOG_STORE, CommonAttributes.TRANSACTION, CommonAttributes.PARTICIPANT)); }
private LogStoreTransactionParticipantDefinition() { super(TransactionExtension.PARTICIPANT_PATH, TransactionExtension.getResourceDescriptionResolver(LogStoreConstants.LOG_STORE, CommonAttributes.TRANSACTION, CommonAttributes.PARTICIPANT)); }
public void run() { for(int i= 0; i<NROUNDS; ++i) { try { final Date date= new Date(); final String formattedDate= formatter.format(date); final long start= System.currentTimeM...
public void run() { for(int j= 0; j<NROUNDS; ++j) { try { final Date date= new Date(); final String formattedDate= formatter.format(date); final long start= System.currentTimeM...
private AuthorizationResult authorize(Set<String> callerRoles, StandardRole...roles) { for (StandardRole role : roles) { if (callerRoles.contains(role.toString())) { return AuthorizationResult.PERMITTED; } } return new AuthorizationResult(Decision.DENY...
private AuthorizationResult authorize(Set<String> callerRoles, StandardRole...roles) { for (StandardRole role : roles) { if (callerRoles.contains(role.getOfficialForm())) { return AuthorizationResult.PERMITTED; } } return new AuthorizationResult(Decisi...
public Collection<Vector2D> generateHull(final Collection<Vector2D> points) { final double tolerance = getTolerance(); final List<Vector2D> hullVertices = new ArrayList<Vector2D>(); Vector2D pointOnHull = selectLeftMostPoint(points); Vector2D nextPoint; do { hul...
public Collection<Vector2D> generateHull(final Collection<Vector2D> points) { final double tolerance = getTolerance(); final List<Vector2D> hullVertices = new ArrayList<Vector2D>(); Vector2D pointOnHull = selectLeftMostPoint(points); Vector2D nextPoint; do { hul...
public String getResourceDescription(Locale locale, ResourceBundle bundle) { return bundle.getString(specificType); } }, new TransportConfigOperationHandlers.BasicTransportConfigAdd(attrs), new HornetQReloadR...
public String getResourceDescription(Locale locale, ResourceBundle bundle) { return bundle.getString(specificType); } }, new TransportConfigOperationHandlers.BasicTransportConfigAdd(isAcceptor, attrs), new Ho...
private static void registerTransformers_1_1_0(final SubsystemRegistration subsystem) { final ResourceTransformationDescriptionBuilder subsystemRoot = TransformationDescriptionBuilder.Factory.createSubsystemInstance(); // discard JMS bridge resources added in 1.2.0 subsystemRoot.rejectChil...
private static void registerTransformers_1_1_0(final SubsystemRegistration subsystem) { final ResourceTransformationDescriptionBuilder subsystemRoot = TransformationDescriptionBuilder.Factory.createSubsystemInstance(); // discard JMS bridge resources added in 1.2.0 subsystemRoot.rejectChil...
public void registerOperations(ManagementResourceRegistration registry) { super.registerOperations(registry); if (registerRuntimeOnly) { QueueControlHandler.INSTANCE.registerOperations(registry, getResourceDescriptionResolver()); } }
public void registerOperations(ManagementResourceRegistration registry) { super.registerOperations(registry); if (registerRuntimeOnly) { QueueControlHandler.INSTANCE.registerOperations(registry); } }
public static URL[] toURLs(File[] files) throws IOException { URL[] urls = new URL[files.length]; for (int i = 0; i < urls.length; i++) { urls[i] = files[i].toURL(); } return urls; }
public static URL[] toURLs(File[] files) throws IOException { URL[] urls = new URL[files.length]; for (int i = 0; i < urls.length; i++) { urls[i] = files[i].toURI().toURL(); } return urls; }
public void send(int task, byte[] message) { //throw exception if the client is being closed if (being_closed.get()) { throw new RuntimeException("Client is being closed, and does not take requests any more"); } try { message_queue.put(new Tas...
public void send(int task, byte[] message) { //throw exception if the client is being closed if (being_closed.get()) { throw new RuntimeException("Client is being closed, and does not take requests any more"); } try { message_queue.put(new Tas...
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) { Object msg = e.getMessage(); if (msg == null) return; //end of batch? if (msg.equals(ControlMessage.eobMessage())) { Channel channel = ctx.getChannel(); LOG.debug("Send back response ....
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) { Object msg = e.getMessage(); if (msg == null) return; //end of batch? if (msg==ControlMessage.eobMessage()) { Channel channel = ctx.getChannel(); LOG.debug("Send back response ..."); ...
package org.jboss.as.ejb3.remote.protocol.versionone; /* * 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 sof...
package org.jboss.as.ejb3.remote.protocol.versionone; /* * 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 sof...
package org.jboss.as.ejb3.remote.protocol.versionone; /* * 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 sof...
package org.jboss.as.ejb3.remote.protocol.versionone; /* * 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 sof...
package org.jboss.as.ejb3.remote.protocol.versionone; /* * 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 sof...
package org.jboss.as.ejb3.remote.protocol.versionone; /* * 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 sof...
public DimensionMismatchException(Localizable specific, int wrong, int expected) { super(specific, wrong, expected); dimension = expected; }
public DimensionMismatchException(Localizable specific, int wrong, int expected) { super(specific, Integer.valueOf(wrong), Integer.valueOf(expected)); dimension = expected; }
public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(dire...
public NonMonotonicSequenceException(Number wrong, Number previous, int index, MathArrays.OrderDirection direction, boolean strict) { super(dire...
public NotANumberException() { super(LocalizedFormats.NAN_NOT_ALLOWED, Double.NaN); }
public NotANumberException() { super(LocalizedFormats.NAN_NOT_ALLOWED, Double.valueOf(Double.NaN)); }
public ZeroException(Localizable specific, Object ... arguments) { super(specific, 0, arguments); }
public ZeroException(Localizable specific, Object ... arguments) { super(specific, INTEGER_ZERO, arguments); }
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final JBossServiceXmlDescriptor serviceXmlDescriptor = context.getAttachment(JBossServiceXmlDescriptor.ATTACHMENT_KEY); if(serviceXmlDescriptor == null) { return; // Skip deployments w...
public void processDeployment(DeploymentUnitContext context) throws DeploymentUnitProcessingException { final JBossServiceXmlDescriptor serviceXmlDescriptor = context.getAttachment(JBossServiceXmlDescriptor.ATTACHMENT_KEY); if(serviceXmlDescriptor == null) { return; // Skip deployments w...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) { final boolean enabled = this.enabled == null || this.enabled; final WebConnectorService service = new WebConnectorService(protocol, scheme); if(secure != null) service.setSecu...
protected <P> void applyUpdate(UpdateContext context, UpdateResultHandler<? super Void, P> resultHandler, P param) { final boolean enabled = this.enabled == null || this.enabled; final WebConnectorService service = new WebConnectorService(protocol, scheme); if(secure != null) service.setSecu...
package org.jboss.as.testsuite.integration.osgi.api; /* * 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 soft...
package org.jboss.as.testsuite.integration.osgi.api; /* * 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 soft...
protected KernelServicesBuilder createKernelServicesBuilder(ModelType type) { return delegate.createKernelServicesBuilder(type); } }
protected KernelServicesBuilder createKernelServicesBuilder(TestModelType type) { return delegate.createKernelServicesBuilder(type); } }
public enum ModelType { STANDALONE, HOST, DOMAIN }
public enum TestModelType { STANDALONE, HOST, DOMAIN }
public void noWarningTest() throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(logFile), StandardCharsets.UTF_8)); String line; while ((line = br.readLine()) != null) { // Look for message id in order to support all languages. if (line.contains("JBAS011...
public void noWarningTest() throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(logFile), StandardCharsets.UTF_8)); String line; while ((line = br.readLine()) != null) { // Look for message id in order to support all languages. if (line.contains("WFLYLOG...
public void warningMessageTest() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(loggingTestLog), StandardCharsets.UTF_8)); String line; boolean warningFound = false; while ((line = br.readLine()) != null) { // Look for message id in order to suppor...
public void warningMessageTest() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(loggingTestLog), StandardCharsets.UTF_8)); String line; boolean warningFound = false; while ((line = br.readLine()) != null) { // Look for message id in order to suppor...
* @return the resolved public URL path or {@code null} if unresolved */ String resolvePublicUrlPath(String resourcePath, List<? extends Resource> locations, ResourceResolverChain chain); }
* @return the resolved public URL path or {@code null} if unresolved */ String resolveUrlPath(String resourcePath, List<? extends Resource> locations, ResourceResolverChain chain); }
* @return the resolved public URL path or {@code null} if unresolved */ String resolvePublicUrlPath(String resourcePath, List<? extends Resource> locations);
* @return the resolved public URL path or {@code null} if unresolved */ String resolveUrlPath(String resourcePath, List<? extends Resource> locations);
public final void deploy(final VirtualFile deploymentRoot) throws DeploymentException { final ServiceContainer serviceContainer = this.serviceContainer; final BatchBuilder batchBuilder = serviceContainer.batchBuilder(); final String deploymentPath = deploymentRoot.getPathName(); try ...
public final void deploy(final VirtualFile deploymentRoot) throws DeploymentException { final ServiceContainer serviceContainer = this.serviceContainer; final BatchBuilder batchBuilder = serviceContainer.batchBuilder(); final String deploymentPath = deploymentRoot.getPathName(); try ...
public void putArchiveEntry(ArchiveEntry archiveEntry) throws IOException { TarArchiveEntry entry = (TarArchiveEntry) archiveEntry; if (entry.getName().length() >= TarConstants.NAMELEN) { if (longFileMode == LONGFILE_GNU) { // create a TarEntry for the LongLink, the cont...
public void putArchiveEntry(ArchiveEntry archiveEntry) throws IOException { TarArchiveEntry entry = (TarArchiveEntry) archiveEntry; if (entry.getName().length() >= TarConstants.NAMELEN) { if (longFileMode == LONGFILE_GNU) { // create a TarEntry for the LongLink, the cont...
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); normalMap = new TreeMap(comparator); reverseMap = new TreeMap(comparator); Map map = (Map) in.readObject(); putAll(map); }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); normalMap = new TreeMap(comparator); reverseMap = new TreeMap(valueComparator); Map map = (Map) in.readObject(); putAll(map); }
public void testAddNaN() { Complex x = new Complex(3.0, 4.0); Complex z = x.add(Complex.NaN); Assert.assertTrue(z.isNaN()); z = new Complex(1, nan); Complex w = x.add(z); Assert.assertEquals(w.getReal(), 4.0, 0); Assert.assertTrue(Double.isNaN(w.getImaginary()...
public void testAddNaN() { Complex x = new Complex(3.0, 4.0); Complex z = x.add(Complex.NaN); Assert.assertTrue(z.isNaN()); z = new Complex(1, nan); Complex w = x.add(z); Assert.assertTrue(Double.isNaN(w.getReal())); Assert.assertTrue(Double.isNaN(w.getImagina...
boolean supports(Class<?> clazz); /* * Copyright 2005 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/LICENSE-2...
boolean supports(Class<?> clazz); /* * Copyright 2005 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/LICENSE-2...
boolean supports(Class<?> clazz); /* * Copyright 2005-2007 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/LICE...
boolean supports(Class<?> clazz); /* * Copyright 2005-2007 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/LICE...
public static final ServiceName SERVICE_NAME_BASE = ServiceName.JBOSS.append("mail-session"); private final Logger log = Logger.getLogger(MailSubsystemAdd.class);
public static final ServiceName SERVICE_NAME_BASE = ServiceName.JBOSS.append("mail-session"); private final Logger log = Logger.getLogger(MailSessionAdd.class);
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...
private void testRemoveServerGroup(boolean master, boolean rollback) throws Exception { PathAddress pa = PathAddress.pathAddress(PathElement.pathElement(SERVER_GROUP, "group-one")); final MockOperationContext operationContext = getOperationContext(rollback, pa); final ModelNode operation = ...
private void testRemoveServerGroup(boolean master, boolean rollback) throws Exception { PathAddress pa = PathAddress.pathAddress(PathElement.pathElement(SERVER_GROUP, "group-one")); final MockOperationContext operationContext = getOperationContext(rollback, pa); final ModelNode operation = ...
public ModelNode getModelDescription(Locale locale) { ModelNode result = mainDescriptionProvider.getModelDescription(locale); ModelNode attrs = result.get(ModelDescriptionConstants.ATTRIBUTES); for (Map.Entry<String, ModelNode> entry : overrideDescriptionProvider.getAttribute...
public ModelNode getModelDescription(Locale locale) { ModelNode result = mainDescriptionProvider.getModelDescription(locale); ModelNode attrs = result.get(ModelDescriptionConstants.ATTRIBUTES); for (Map.Entry<String, ModelNode> entry : overrideDescriptionProvider.getAttribute...
@Message(id = 67, value = "Could not find the port number listening for protocol %s") /* * 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 cont...
@Message(id = 67, value = "Could not find the port number listening for protocol %s") /* * 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 cont...
private InjectionSource getBindingSource(final DeploymentUnit deploymentUnit, final AnnotationInstance annotation, String injectionTypeName) throws DeploymentUnitProcessingException { String scopedPuName = getScopedPuName(deploymentUnit, annotation); ServiceName puServiceName = getPuSer...
private InjectionSource getBindingSource(final DeploymentUnit deploymentUnit, final AnnotationInstance annotation, String injectionTypeName) throws DeploymentUnitProcessingException { String scopedPuName = getScopedPuName(deploymentUnit, annotation); ServiceName puServiceName = getPuSer...
private InjectionSource getPersistenceUnitBindingSource( final DeploymentUnit deploymentUnit, final String unitName) throws DeploymentUnitProcessingException { String scopedPuName = getScopedPuName(deploymentUnit, unitName); ServiceName puServiceName = getPuServiceName(scope...
private InjectionSource getPersistenceUnitBindingSource( final DeploymentUnit deploymentUnit, final String unitName) throws DeploymentUnitProcessingException { String scopedPuName = getScopedPuName(deploymentUnit, unitName); ServiceName puServiceName = getPuServiceName(scope...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2; /* * 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 License, Vers...
package org.apache.commons.codec2.language.bm; /* * 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 L...
package org.apache.commons.codec2.language.bm; /* * 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 L...
interface ICounter { /* * Copyright 2002-2006 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/LICENSE-2.0 * *...
interface ICounter { /* * Copyright 2002-2006 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/LICENSE-2.0 * *...
protected void validate(Object object) { if (predicate.evaluate(object) == false) { throw new IllegalArgumentException("Cannot add Object '" + object + "' - Predicate rejected it"); } }
protected void validate(Object object) { if (predicate.evaluate(object) == false) { throw new IllegalArgumentException("Cannot add Object '" + object + "' - Predicate '" + predicate + "' rejected it"); } }
protected void addJndiBinding(final EEModuleDescription module, final String componentName, final BindingDescription bindingDescription, final DeploymentPhaseContext phaseContext, final JndiInjectionPointStore injectionPointStore) throws DeploymentUnitProcessingException { // Gather information about the de...
protected void addJndiBinding(final EEModuleDescription module, final String componentName, final BindingDescription bindingDescription, final DeploymentPhaseContext phaseContext, final JndiInjectionPointStore injectionPointStore) throws DeploymentUnitProcessingException { // Gather information about the de...
public void test2() throws Exception { ResUrlChecker bean = (ResUrlChecker) new InitialContext().lookup("java:app/resource-ref-test/ResUrlCheckerBean"); // defined in jboss.xml URL expected = new URL("http://localhost/url2"); URL actual = bean.getURL2(); Assert.assertEquals(e...
public void test2() throws Exception { ResUrlChecker bean = (ResUrlChecker) new InitialContext().lookup("java:app/resource-ref-test/ResUrlCheckerBean"); // defined in jboss.xml URL expected = new URL("http://somewhere/url2"); URL actual = bean.getURL2(); Assert.assertEquals(e...
public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("Delimiter=<").append(delimiter).append('>'); if (isEscaping()) { sb.append(' '); sb.append("Escape=<").append(escape).append('>'); } if (isQuoting()) { sb.a...
public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("Delimiter=<").append(delimiter).append('>'); if (isEscaping()) { sb.append(' '); sb.append("Escape=<").append(escape).append('>'); } if (isQuoting()) { sb.a...
public ServerEnvironment(final String hostControllerName, final Properties props, final Map<String, String> env, final String serverConfig, final LaunchType launchType, final RunningMode initialRunningMode, ProductConfig productConfig) { if (props == null) { throw Co...
public ServerEnvironment(final String hostControllerName, final Properties props, final Map<String, String> env, final String serverConfig, final LaunchType launchType, final RunningMode initialRunningMode, ProductConfig productConfig) { if (props == null) { throw Co...
public static ModelNode getReadConfigAsXmlOperation(Locale locale) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode root = new ModelNode(); root.get(OPERATION_NAME).set(ReadConfigAsXmlHandler.READ_CONFIG_AS_XML); root.get(DESCRIPTION).set(bundle.getString(Re...
public static ModelNode getReadConfigAsXmlOperation(Locale locale) { final ResourceBundle bundle = getResourceBundle(locale); final ModelNode root = new ModelNode(); root.get(OPERATION_NAME).set(ReadConfigAsXmlHandler.READ_CONFIG_AS_XML); root.get(DESCRIPTION).set(bundle.getString(Re...
private static void checkModelAgainstDefinition(final ModelNode model, ManagementResourceRegistration rr, Stack<PathElement> stack) { final Set<String> children = rr.getChildNames(PathAddress.EMPTY_ADDRESS); final Set<String> attributeNames = rr.getAttributeNames(PathAddress.EMPTY_ADDRESS); ...
private static void checkModelAgainstDefinition(final ModelNode model, ManagementResourceRegistration rr, Stack<PathElement> stack) { final Set<String> children = rr.getChildNames(PathAddress.EMPTY_ADDRESS); final Set<String> attributeNames = rr.getAttributeNames(PathAddress.EMPTY_ADDRESS); ...
public UnivariateMatrixFunction derivative();
UnivariateMatrixFunction derivative(); /* * 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 License, ...
public UnivariateRealFunction derivative();
UnivariateRealFunction derivative(); /* * 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 License, Ve...
public UnivariateVectorialFunction derivative();
UnivariateVectorialFunction derivative(); /* * 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 UnivariateRealFunction interpolate(double xval[], double yval[]) throws MathException;
UnivariateRealFunction interpolate(double xval[], double yval[]) /* * 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 ...
public List<T> decode(List<T> sequence);
List<T> decode(List<T> sequence); /* * 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 License, Versi...
public BigMatrix preMultiply(BigMatrix m) throws IllegalArgumentException;
BigMatrix preMultiply(BigMatrix m) throws IllegalArgumentException; /* * 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 Y...
public FieldMatrix<T> preMultiply(FieldMatrix<T> m) throws IllegalArgumentException;
FieldMatrix<T> preMultiply(FieldMatrix<T> m) throws IllegalArgumentException; /* * 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...
public RealMatrix preMultiply(RealMatrix m) throws IllegalArgumentException;
RealMatrix preMultiply(RealMatrix m) throws IllegalArgumentException; /* * 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...
public void integrate(SecondOrderDifferentialEquations equations, double t0, double[] y0, double[] yDot0,
void integrate(SecondOrderDifferentialEquations equations, /* * 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 ...
abstract protected VectorialPointValuePair doOptimize() throws FunctionEvaluationException, OptimizationException, IllegalArgumentException; }
protected abstract VectorialPointValuePair doOptimize() throws FunctionEvaluationException, OptimizationException, IllegalArgumentException; }
abstract protected RealPointValuePair doOptimize() throws FunctionEvaluationException, OptimizationException, IllegalArgumentException; }
protected abstract RealPointValuePair doOptimize() throws FunctionEvaluationException, OptimizationException, IllegalArgumentException; }
abstract protected RealPointValuePair doOptimize() throws OptimizationException; }
protected abstract RealPointValuePair doOptimize() throws OptimizationException; }
public double nextNormalizedDouble();
double nextNormalizedDouble(); /* * 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 License, Version ...
public double[] nextVector();
double[] nextVector(); /* * 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 License, Version 2.0 * (...
public abstract double[] inversetransform(double f[]) throws IllegalArgumentException;
double[] inversetransform(double f[]) /* * 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 License, V...
package org.jboss.as.server.deployment.scanner.api; /* * 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 softw...
package org.jboss.as.server.deployment.scanner.api; /* * 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 softw...
public synchronized void deploy() throws DuplicateDeploymentNameException, IOException, ExecutionException, InterruptedException { ModelNode op = new ModelNode(); OperationBuilder builder = new OperationBuilder(op); op.get(ClientConstants.OP).set("composite"); op.get(ClientConstant...
public synchronized void deploy() throws DuplicateDeploymentNameException, IOException, ExecutionException, InterruptedException { ModelNode op = new ModelNode(); OperationBuilder builder = new OperationBuilder(op, true); op.get(ClientConstants.OP).set("composite"); op.get(ClientCo...
protected ModelNode executeAndRollbackOperation(final ModelNode op) throws IOException, OperationFormatException { ModelNode addDeploymentOp = createOpNode("deployment=malformedDeployment.war", "add"); addDeploymentOp.get("content").get(0).get("input-stream-index").set(0); ModelNode deploym...
protected ModelNode executeAndRollbackOperation(final ModelNode op) throws IOException, OperationFormatException { ModelNode addDeploymentOp = createOpNode("deployment=malformedDeployment.war", "add"); addDeploymentOp.get("content").get(0).get("input-stream-index").set(0); ModelNode deploym...
void processMessage(final ChannelAssociation channelAssociation, final MessageInputStream messageInputStream) throws IOException; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distri...
void processMessage(final ChannelAssociation channelAssociation, final MessageInputStream messageInputStream) throws IOException; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distri...
public BeanEntry<G> findValue(I id) { return this.invoker.invoke(this.cache, new FindOperation<BeanKey<I>, BeanEntry<G>>(this.createKey(id))); }
public BeanEntry<G> findValue(I id) { return this.invoker.invoke(this.cache, new LockingFindOperation<BeanKey<I>, BeanEntry<G>>(this.createKey(id))); }
public CoarseSessionEntry<L> findValue(String id) { CoarseSessionCacheEntry<L> entry = this.invoker.invoke(this.sessionCache, new FindOperation<String, CoarseSessionCacheEntry<L>>(id)); if (entry == null) return null; MarshalledValue<Map<String, Object>, MarshallingContext> value = this.invo...
public CoarseSessionEntry<L> findValue(String id) { CoarseSessionCacheEntry<L> entry = this.invoker.invoke(this.sessionCache, new LockingFindOperation<String, CoarseSessionCacheEntry<L>>(id)); if (entry == null) return null; MarshalledValue<Map<String, Object>, MarshallingContext> value = th...
public FineSessionCacheEntry<L> findValue(String id) { return this.invoker.invoke(this.sessionCache, new FindOperation<String, FineSessionCacheEntry<L>>(id)); }
public FineSessionCacheEntry<L> findValue(String id) { return this.invoker.invoke(this.sessionCache, new LockingFindOperation<String, FineSessionCacheEntry<L>>(id)); }
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ResourceRoot resourceRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT); if(resourceRoot == null) { ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ResourceRoot resourceRoot = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT); if(resourceRoot == null) { ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if(!isEarDeployment(deploymentUnit)) { return; } final ResourceRoot resourceRoot = phaseContext.getD...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if(!isEarDeployment(deploymentUnit)) { return; } final ResourceRoot resourceRoot = phaseContext.getD...