buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void applyModelToRuntime(OperationContext context, final ModelNode model) throws OperationFailedException { long timeout = attribute.validateResolvedOperation(model).asLong(); final ServiceRegistry serviceRegistry = context.getServiceRegistry(true); ServiceController<DefaultAccessTim...
private void applyModelToRuntime(OperationContext context, final ModelNode model) throws OperationFailedException { long timeout = attribute.resolveModelAttribute(context, model).asLong(); final ServiceRegistry serviceRegistry = context.getServiceRegistry(true); ServiceController<DefaultAcce...
protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException { final ModelNode restored = context.readResource(PathAddress.EMPTY_ADDRESS).getModel().clone(); ...
protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException { final ModelNode restored = context.readResource(PathAddress.EMPTY_ADDRESS).getModel().clone(); ...
protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException { final ModelNode restored = context.readResource(PathAddress.EMPTY_ADDRESS).getModel().clone(); ...
protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException { final ModelNode restored = context.readResource(PathAddress.EMPTY_ADDRESS).getModel().clone(); ...
protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException { final ModelNode restored = context.readResource(PathAddress.E...
protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException { final ModelNode restored = context.readResource(PathAddress.E...
protected void executeWriteAttribute(String attributeName, OperationContext context, ModelNode operation, T component, ComponentConfiguration config, PathAddress address) throws OperationFailedException { if (componentType.hasPool() && POOL_MAX_SIZE.getName().equals(a...
protected void executeWriteAttribute(String attributeName, OperationContext context, ModelNode operation, T component, ComponentConfiguration config, PathAddress address) throws OperationFailedException { if (componentType.hasPool() && POOL_MAX_SIZE.getName().equals(a...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final HornetQServer server = AddressSettingAdd.getServer(context, operation); PathAddress address = null; HierarchicalRepository<Ad...
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final HornetQServer server = AddressSettingAdd.getServer(context, operation); PathAddress address = null; HierarchicalRepository<Ad...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { final ServiceRegistry registry = context.getServiceRegistry(true); final ServiceName hqServiceName = MessagingServices.getHornetQServiceName(PathAddress.pathAddress(opera...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { final ServiceRegistry registry = context.getServiceRegistry(true); final ServiceName hqServiceName = MessagingServices.getHornetQServiceName(PathAddress.pathAddress(opera...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { final ServiceRegistry registry = context.getServiceRegistry(true); final ServiceName hqServiceName = MessagingServices.getHornetQServiceName(PathAddress.pathAddress(opera...
protected void recoverServices(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { final ServiceRegistry registry = context.getServiceRegistry(true); final ServiceName hqServiceName = MessagingServices.getHornetQServiceName(PathAddress.pathAddress(opera...
protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode currentValue, HandbackHolder<Set<Role>> handbackHolder) throws OperationFailedException { ...
protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode currentValue, HandbackHolder<Set<Role>> handbackHolder) throws OperationFailedException { ...
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<?>> newControllers) throws OperationFailedException { ModelNode opAddr = operation.require(OP_ADDR); ...
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { ModelNode opAddr = operation.require(OP_ADDR); ...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { for(final AttributeDefinition attribute : ATTR...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { for(final AttributeDefinition attribute : ATTR...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { for(final AttributeDefinition attribute : ATTR...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { for(final AttributeDefinition attribute : ATTR...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { for(final AttributeDefinition attribute : ATTR...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { for(final AttributeDefinition attribute : ATTR...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { for(final AttributeDefinition attribute : ATTR...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { for(final AttributeDefinition attribute : ATTR...
protected void processTld(ArrayList<TagLibraryInfo> tagLibraries, String location, TldMetaData tldMetaData) { String relativeLocation = location; String jarPath = null; if (relativeLocation.startsWith("/WEB-INF/lib/")) { int pos = relativeLocation.indexOf('/', "/WEB-INF/lib/".le...
protected void processTld(ArrayList<TagLibraryInfo> tagLibraries, String location, TldMetaData tldMetaData) { String relativeLocation = location; String jarPath = null; if (relativeLocation != null && relativeLocation.startsWith("/WEB-INF/lib/")) { int pos = relativeLocation.ind...
public static PropertiesAttributeDefinition VAULT_OPTIONS = new PropertiesAttributeDefinition.Builder(ModelDescriptionConstants.VAULT_OPTIONS, true) .addFlag(Flag.RESTART_ALL_SERVICES) .setAllowExpression(true) .setCorrector(MapAttributeDefinition.LIST_TO_MAP_CORRECTOR) ...
public static PropertiesAttributeDefinition VAULT_OPTIONS = new PropertiesAttributeDefinition.Builder(ModelDescriptionConstants.VAULT_OPTIONS, true) .addFlag(Flag.RESTART_ALL_SERVICES) .setAllowExpression(true) .setCorrector(MapAttributeDefinition.LIST_TO_MAP_CORRECTOR) ...
public void setUp() { //caller = new Caller(); ControlledProcessState processState = new ControlledProcessState(false); processState.setRunning(); environment = new Environment(processState, ProcessType.EMBEDDED_SERVER); authorizer = new ManagementPermissionAuthorizer(new Tes...
public void setUp() { caller = Caller.createCaller(null); ControlledProcessState processState = new ControlledProcessState(false); processState.setRunning(); environment = new Environment(processState, ProcessType.EMBEDDED_SERVER); authorizer = new ManagementPermissionAuthori...
public void setUp() { //caller = new Caller(); ControlledProcessState processState = new ControlledProcessState(false); processState.setRunning(); environment = new Environment(processState, ProcessType.EMBEDDED_SERVER); }
public void setUp() { caller = Caller.createCaller(null); ControlledProcessState processState = new ControlledProcessState(false); processState.setRunning(); environment = new Environment(processState, ProcessType.EMBEDDED_SERVER); }
private void initCommands() { cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn"); cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls"); cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command"); cmdRegistry.registerHandler(new ConnectHa...
private void initCommands() { cmdRegistry.registerHandler(new PrefixHandler(), "cd", "cn"); cmdRegistry.registerHandler(new ClearScreenHandler(), "clear", "cls"); cmdRegistry.registerHandler(new CommandCommandHandler(cmdRegistry), "command"); cmdRegistry.registerHandler(new ConnectHa...
public static void submitTopology(String name, Map stormConf, StormTopology topology, SubmitOptions opts) throws AlreadyAliveException, InvalidTopologyException { if(!Utils.isValidConf(stormConf)) { throw new IllegalArgumentException("Storm conf is not valid. Must be json-serializable"); ...
public static void submitTopology(String name, Map stormConf, StormTopology topology, SubmitOptions opts) throws AlreadyAliveException, InvalidTopologyException { if(!Utils.isValidConf(stormConf)) { throw new IllegalArgumentException("Storm conf is not valid. Must be json-serializable"); ...
private static final char[] VALID_PUNCTUATION; static { char[] validPunctuation = { '.', '@', '\\', '=', ',', '/' }; Arrays.sort(validPunctuation); VALID_PUNCTUATION = validPunctuation; }
private static final char[] VALID_PUNCTUATION; static { char[] validPunctuation = { '.', '-', ',', '@', '/', '\\', '=' }; Arrays.sort(validPunctuation); VALID_PUNCTUATION = validPunctuation; }
public void testMessageNumber() { Assert.assertEquals(313, LocalizedFormats.values().length); }
public void testMessageNumber() { Assert.assertEquals(314, LocalizedFormats.values().length); }
public void addDeploymentOverlays(final List<ModelNode> updates) { if (domainModel.hasDefined(DEPLOYMENT_OVERLAY)) { HostFileRepository remoteRepository = null; if (!domainController.getLocalHostInfo().isMasterDomainController()) { remoteRepository = domainController...
public void addDeploymentOverlays(final List<ModelNode> updates) { if (domainModel.hasDefined(DEPLOYMENT_OVERLAY)) { HostFileRepository remoteRepository = null; if (!domainController.getLocalHostInfo().isMasterDomainController()) { remoteRepository = domainController...
protected InjectionSource createInjectionSource(final ServiceName serviceName) { if(methodIntf != MethodIntf.REMOTE) { return super.createInjectionSource(serviceName); } else { final EJBComponentDescription componentDescription = getComponentDescription(); final E...
protected InjectionSource createInjectionSource(final ServiceName serviceName) { if(methodIntf != MethodIntf.REMOTE && methodIntf != MethodIntf.HOME) { return super.createInjectionSource(serviceName); } else { final EJBComponentDescription componentDescription = getComponentD...
private CoreManagementDefinition() { super(PathElement.pathElement(CORE_SERVICE, MANAGEMENT), CommonDescriptions.getResourceDescriptionResolver("core", MANAGEMENT)); }
private CoreManagementDefinition() { super(PathElement.pathElement(CORE_SERVICE, MANAGEMENT), ControllerResolver.getResolver("core", MANAGEMENT)); }
public boolean expectFailed(ModelNode operation) { if ("groupU".equals(operation.get(OP_ADDR).get(2).get(CommonAttributes.DISCOVERY_GROUP).asString())) { // groupU use JGroups and do not define socket...
public boolean expectFailed(ModelNode operation) { if ("groupU".equals(operation.get(OP_ADDR).get(2).get(CommonAttributes.DISCOVERY_GROUP).asString())) { // groupU use JGroups and do not define socket...
public State execute() { boolean direct = theConsole.getConsole() == null; // Errors should be output in all modes. printf(NEW_LINE, direct); printf(" * ", direct); printf(MESSAGES.errorHeader(), direct); printf(" * ", direct); printf(NEW_LINE, direct); ...
public State execute() { boolean direct = theConsole.hasConsole(); // Errors should be output in all modes. printf(NEW_LINE, direct); printf(" * ", direct); printf(MESSAGES.errorHeader(), direct); printf(" * ", direct); printf(NEW_LINE, direct); printf...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ManagementResourceRegistration baseRegistration = deploymentUnit.getAttachment(DeploymentModelUtils.MUTABLE_REGISTRATION_AT...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ManagementResourceRegistration baseRegistration = deploymentUnit.getAttachment(DeploymentModelUtils.MUTABLE_REGISTRATION_AT...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ServiceController<?> managementRepoService = context.getServiceRegistry(false).getService( ConnectorServices.MANAGEMENT_REPOSITORY_SERVICE); ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { final ServiceController<?> managementRepoService = context.getServiceRegistry(false).getService( ConnectorServices.MANAGEMENT_REPOSITORY_SERVICE); ...
private T getDataSourceConfig(final PathAddress operationAddress) throws OperationFailedException { final List<PathElement> relativeAddress = new ArrayList<PathElement>(); for (int i = operationAddress.size() - 1; i >= 0; i--) { PathElement pe = operationAddress.getElement(i); ...
private T getDataSourceConfig(final PathAddress operationAddress) throws OperationFailedException { final List<PathElement> relativeAddress = new ArrayList<PathElement>(); for (int i = operationAddress.size() - 1; i >= 0; i--) { PathElement pe = operationAddress.getElement(i); ...
public static void beforeClass() { beforeClass(SimpleMixedDomain_7_1_2_Final_TestCase.class); }
public static void beforeClass() { MixedDomainTestSuite.getSupport(SimpleMixedDomain_7_1_2_Final_TestCase.class); }
public static void beforeClass() { beforeClass(SimpleMixedDomain_7_1_3_Final_TestCase.class); }
public static void beforeClass() { MixedDomainTestSuite.getSupport(SimpleMixedDomain_7_1_3_Final_TestCase.class); }
public void cacheResolver() { ConfigurableApplicationContext context = new GenericXmlApplicationContext( "/org/springframework/cache/jcache/config/jCacheNamespaceDriven-resolver.xml"); DefaultJCacheOperationSource ci = context.getBean(DefaultJCacheOperationSource.class); assertSame(context.getBean("cacheRes...
public void cacheResolver() { ConfigurableApplicationContext context = new GenericXmlApplicationContext( "/org/springframework/cache/jcache/config/jCacheNamespaceDriven-resolver.xml"); DefaultJCacheOperationSource ci = context.getBean(DefaultJCacheOperationSource.class); assertSame(context.getBean("cacheRes...
public interface BasicCacheOperation { /* * Copyright 2002-2014 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...
public interface BasicCacheOperation { /* * Copyright 2002-2014 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...
public interface CacheOperationInvocationContext<O extends BasicCacheOperation> { /* * Copyright 2002-2014 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 a...
public interface CacheOperationInvocationContext<O extends BasicCacheOperation> { /* * Copyright 2002-2014 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 a...
public void setTaskExecutor(Executor executor) { this.advice = buildAdvice(executor, this.exceptionHandler); }
public void setTaskExecutor(Executor executor) { this.advice = buildAdvice(executor, exceptionHandler); }
public String toString() { return "overridden"; } }; } } @Configuration static class ConfigWithOverloading { @Bean String aString() { return "regular"; } @Bean String aString(Integer dependency) { return "overloaded" + dependency; } } @Configuration static class ConfigWit...
public String toString() { return "overridden"; } }; } } @Configuration static class ConfigWithOverloading { @Bean String aString() { return "regular"; } @Bean String aString(Integer dependency) { return "overloaded" + dependency; } } @Configuration static class ConfigWit...
private void assertCorrectSetup(DataSource dataSource) { JdbcTemplate t = new JdbcTemplate(dataSource); assertEquals(1, t.queryForObject("select count(*) from T_TEST", Integer.class).intValue()); }
private void assertCorrectSetup(DataSource dataSource) { JdbcTemplate t = new JdbcTemplate(dataSource); assertEquals(1, t.queryForInt("select count(*) from T_TEST")); }
C createMessageListenerContainer(JmsListenerEndpoint endpoint); /* * Copyright 2002-2014 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:...
C createMessageListenerContainer(JmsListenerEndpoint endpoint); /* * Copyright 2002-2014 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:...
public String toString() { return "BrokerAvailabilityEvent[available=" + this.brokerAvailable + ", " + getSource() + "]"; }
public String toString() { return "BrokerAvailabilityEvent=" + this.brokerAvailable; }
public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**") .addResourceLocations("classpath:org/springframework/web/servlet/resource/test/") .addVersionHash("/**"); } }
public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**") .addResourceLocations("classpath:org/springframework/web/servlet/resource/test/") .setResourceResolvers(new FingerprintResourceResolver(), new PathResourceResolver()); } }
* public WebSocketHandler echoWebSocketHandler() { * return new EchoWebSocketHandler(); * } * } * </pre> * * @author Rossen Stoyanchev * @since 4.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented @Import(DelegatingWebSocketConfiguration.class) public @interface EnableWebSocket {
* public WebSocketHandler echoWebSocketHandler() { * return new EchoWebSocketHandler(); * } * } * </pre> * * @author Rossen Stoyanchev * @since 4.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented @Import({DelegatingWebSocketConfiguration.class, WebSocketScopeConfiguration.class}) ...
public void initialize(ExtensionContext context) { TransactionLogger.ROOT_LOGGER.debug("Initializing Transactions Extension"); final LogStoreResource resource = new LogStoreResource(); final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegist...
public void initialize(ExtensionContext context) { TransactionLogger.ROOT_LOGGER.debug("Initializing Transactions Extension"); final LogStoreResource resource = new LogStoreResource(); final boolean registerRuntimeOnly = context.isRuntimeOnlyRegistrationValid(); final SubsystemRegist...
public void testTransformers_1_1_0() throws Exception { System.setProperty("org.jboss.as.jpa.testBadExpr", "hello"); try { ModelVersion oldVersion = ModelVersion.create(1, 1, 0); KernelServicesBuilder builder = createKernelServicesBuilder(null) .setSubsys...
public void testTransformers_1_1_0() throws Exception { System.setProperty("org.jboss.as.jpa.testBadExpr", "hello"); try { ModelVersion oldVersion = ModelVersion.create(1, 1, 0); KernelServicesBuilder builder = createKernelServicesBuilder(null) .setSubsys...
public void testTransformers() throws Exception { ModelVersion oldVersion = ModelVersion.create(1, 0, 0); KernelServicesBuilder builder = createKernelServicesBuilder(null) .setSubsystemXml(getSubsystemXml()); builder.createLegacyKernelServicesBuilder(null, oldVersion) ...
public void testTransformers() throws Exception { ModelVersion oldVersion = ModelVersion.create(1, 0, 0); KernelServicesBuilder builder = createKernelServicesBuilder(null) .setSubsystemXml(getSubsystemXml()); builder.createLegacyKernelServicesBuilder(null, oldVersion) ...
public void testTransformation_1_1_0() throws Exception { String subsystemXml = readResource("subsystem-1.1.0.xml"); ModelVersion modelVersion = ModelVersion.create(1, 1, 0); KernelServicesBuilder builder = createKernelServicesBuilder(null) .setSubsystemXml(subsystemXml); ...
public void testTransformation_1_1_0() throws Exception { String subsystemXml = readResource("subsystem-1.1.0.xml"); ModelVersion modelVersion = ModelVersion.create(1, 1, 0); KernelServicesBuilder builder = createKernelServicesBuilder(null) .setSubsystemXml(subsystemXml); ...
private boolean isCopyByReference(TypeDescriptor sourceType, TypeDescriptor targetType) { if (BeanUtils.isSimpleValueType(targetType.getType()) || Enum.class.isAssignableFrom(targetType.getType())) { return true; } else { return false; } }
private boolean isCopyByReference(TypeDescriptor sourceType, TypeDescriptor targetType) { if (BeanUtils.isSimpleValueType(targetType.getType())) { return true; } else { return false; } }
public synchronized void stop(final StopContext context) { context.asynchronous(); final DeploymentUnit deploymentUnitContext = deploymentUnitInjector.getValue(); final DeployerChains chains = deployerChainsInjector.getValue(); final List<DeploymentUnitProcessor> list = chains.getCha...
public synchronized void stop(final StopContext context) { context.asynchronous(); final DeploymentUnit deploymentUnitContext = deploymentUnitInjector.getValue(); final DeployerChains chains = deployerChainsInjector.getValue(); final List<DeploymentUnitProcessor> list = chains.getCha...
public RealVector ebeDivide(double[] v) throws IllegalArgumentException { checkVectorDimensions(v.length); SparseRealVector res = new SparseRealVector(this); Iterator iter = res.entries.iterator(); while (iter.hasNext()) { iter.advance(); res.setEntry(iter.key...
public RealVector ebeDivide(double[] v) throws IllegalArgumentException { checkVectorDimensions(v.length); SparseRealVector res = new SparseRealVector(this); Iterator iter = res.entries.iterator(); while (iter.hasNext()) { iter.advance(); res.setEntry(iter.key...
public void testThreadingMXBean() throws IOException { DescribedResource describedResource = basicResourceTest("threading", null); ThreadMXBean mbean = ManagementFactory.getThreadMXBean(); boolean syncSupported = describedResource.resource.get(PlatformMBeanConstants.SYNCHRONIZER_USAGE_SUPPO...
public void testThreadingMXBean() throws IOException { DescribedResource describedResource = basicResourceTest("threading", null); ThreadMXBean mbean = ManagementFactory.getThreadMXBean(); boolean syncSupported = describedResource.resource.get(PlatformMBeanConstants.SYNCHRONIZER_USAGE_SUPPO...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { validator.validate(operation); String name = operation.require(NAME).asString(); String toReplace = operation.require(TO_REPLACE).asString(); if (name.equals(toReplace)) { ...
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { //TODO readd validation and attributes String name = operation.require(NAME).asString(); String toReplace = operation.require(TO_REPLACE).asString(); if (name.equals(toReplace)) { ...
public OperationTransformationOverrideBuilder addOperationTransformationOverride(final String operationName) { final OperationTransformationOverrideBuilderImpl transformationBuilder = new OperationTransformationOverrideBuilderImpl(this); addOperationTransformerEntry(operationName, new OperationTrans...
public OperationTransformationOverrideBuilder addOperationTransformationOverride(final String operationName) { final OperationTransformationOverrideBuilderImpl transformationBuilder = new OperationTransformationOverrideBuilderImpl(operationName, this); addOperationTransformerEntry(operationName, new...
protected MessageDrivenComponentInstanceContext() { super(MessageDrivenComponentInstance.this.getComponent(), getInstance()); } };
protected MessageDrivenComponentInstanceContext() { super(MessageDrivenComponentInstance.this.getComponent(), MessageDrivenComponentInstance.this); } };
private static final String info = "JvmRouteValve/1.0"; private static Logger log = Logger.getLogger(JvmRouteHandler.class);
private static final String info = "JvmRouteValve/1.0"; private static final Logger log = Logger.getLogger(JvmRouteHandler.class);
protected void performBoottime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { final boolean enabled = BeanValidationParamet...
protected void performBoottime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { final boolean enabled = BeanValidationParamet...
protected void performBoottime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { String name = WmParame...
protected void performBoottime(final OperationContext context, final ModelNode operation, final ModelNode model, final ServiceVerificationHandler verificationHandler, final List<ServiceController<?>> newControllers) throws OperationFailedException { String name = WmParame...
public static void main(String[] args) { final InputStream initialInput = System.in; final PrintStream initialError = System.err; // Install JBoss Stdio to avoid any nasty crosstalk. StdioContext.install(); final StdioContext context = StdioContext.create( new Nu...
public static void main(String[] args) { final InputStream initialInput = System.in; final PrintStream initialError = System.err; // Install JBoss Stdio to avoid any nasty crosstalk. StdioContext.install(); final StdioContext context = StdioContext.create( new Nu...
public void addHttpsConnector(Map<String, String> options) throws Exception { final Map<String, String> sslOptionsMap = new HashMap<String, String>(); final Map<String, String> truststoreOptionsMap = new HashMap<String, String>(); if (options != null) { for (final Entry<String, S...
public void addHttpsConnector(Map<String, String> options) throws Exception { final Map<String, String> sslOptionsMap = new HashMap<String, String>(); final Map<String, String> truststoreOptionsMap = new HashMap<String, String>(); if (options != null) { for (final Entry<String, S...
package org.springframework.jms.core; /* * Copyright 2002-2014 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/...
package org.springframework.jms.core; /* * Copyright 2002-2014 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/...
public void overridePropertyfileLocationRead() throws IOException { File domainMgmtUserFile = createPropertyFile("mgmt-users.properties", "domain"); File standaloneMgmtUserFile = createPropertyFile("mgmt-users.properties", "standalone"); System.setProperty("jboss.server.config.user.dir", st...
public void overridePropertyfileLocationRead() throws IOException { File domainMgmtUserFile = createPropertyFile("mgmt-users.properties", "domain"); File standaloneMgmtUserFile = createPropertyFile("mgmt-users.properties", "standalone"); System.setProperty("jboss.server.config.user.dir", st...
public void testNaturalZero() { final int[] natural = MathArrays.natural(0); Assert.assertEquals(natural.length, 0); } }
public void testNaturalZero() { final int[] natural = MathArrays.natural(0); Assert.assertEquals(0, natural.length); } }
private void doLoadBeanDefinitionForConfigurationClassIfNecessary(ConfigurationClass configClass) { if (configClass.getBeanName() != null) { // a bean definition already exists for this configuration class -> nothing to do return; } // no bean definition exists yet -> this must be an imported configuratio...
private void doLoadBeanDefinitionForConfigurationClassIfNecessary(ConfigurationClass configClass) { if (configClass.getBeanName() != null) { // a bean definition already exists for this configuration class -> nothing to do return; } // no bean definition exists yet -> this must be an imported configuratio...
public void getMediaTypeAcceptHeader() { MockHttpServletRequest request = new MockHttpServletRequest("GET", "/test"); request.addHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"); List<MediaType> result = viewResolver.getMediaTypes(request); assertEquals("Invalid amount of med...
public void getMediaTypeAcceptHeader() { MockHttpServletRequest request = new MockHttpServletRequest("GET", "/test"); request.addHeader("Accept", "text/html,application/xml;q=0.9,application/xhtml+xml,*/*;q=0.8"); List<MediaType> result = viewResolver.getMediaTypes(request); assertEquals("Invalid amount of med...
private SubHyperplane<S> fitToCell(final SubHyperplane<S> sub) { SubHyperplane<S> s = sub; for (BSPTree<S> tree = this; tree.parent != null; tree = tree.parent) { if (tree == tree.parent.plus) { s = s.split(tree.parent.cut.getHyperplane()).getPlus(); } else { ...
private SubHyperplane<S> fitToCell(final SubHyperplane<S> sub) { SubHyperplane<S> s = sub; for (BSPTree<S> tree = this; tree.parent != null && s != null; tree = tree.parent) { if (tree == tree.parent.plus) { s = s.split(tree.parent.cut.getHyperplane()).getPlus(); ...
protected AsynchronousService() { this(true, true); }
protected AsynchronousService() { this(true, false); }
public void start(StartContext context) throws StartException { ROOT_LOGGER.infof("starting Inactive:" + value.toString()); }
public void start(StartContext context) throws StartException { ROOT_LOGGER.debugf("starting Inactive:" + value.toString()); }
private void startDriverServices(final ServiceTarget target, final ModuleIdentifier moduleId, Driver driver) throws IllegalStateException { final int majorVer = driver.getMajorVersion(); final int minorVer = driver.getMinorVersion(); ...
private void startDriverServices(final ServiceTarget target, final ModuleIdentifier moduleId, Driver driver) throws IllegalStateException { final int majorVer = driver.getMajorVersion(); final int minorVer = driver.getMinorVersion(); ...
public void datePriorToEpochInGNUFormat() throws Exception { datePriorToEpoch("/preepoch-gnu.tar"); }
public void datePriorToEpochInGNUFormat() throws Exception { datePriorToEpoch("/preepoch-star.tar"); }
public void setExpired() { DeferredResult<String> result = new DeferredResult<String>(); assertFalse(result.isSetOrExpired()); result.getAndSetExpired(); assertTrue(result.isSetOrExpired()); assertFalse(result.setResult("hello")); }
public void setExpired() { DeferredResult<String> result = new DeferredResult<String>(); assertFalse(result.isSetOrExpired()); result.expire(); assertTrue(result.isSetOrExpired()); assertFalse(result.setResult("hello")); }
public static void init(GlobalConfiguration global, ChannelFactory factory) { Properties properties = global.getTransportProperties(); properties.setProperty(JGroupsTransport.CHANNEL_LOOKUP, ChannelProvider.class.getName()); properties.put(CHANNEL_FACTORY, factory); properties.put(ID...
public static void init(GlobalConfiguration global, ChannelFactory factory) { Properties properties = global.getTransportProperties(); properties.setProperty(JGroupsTransport.CHANNEL_LOOKUP, ChannelProvider.class.getName()); properties.put(CHANNEL_FACTORY, factory); properties.put(ID...
public @interface SendTo { /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
public @interface SendTo { /* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleSpecification attachment = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION); if (attachment == ...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ModuleSpecification attachment = deploymentUnit.getAttachment(Attachments.MODULE_SPECIFICATION); if (attachment == ...
public void testcreateFieldMatrix() { Assert.assertEquals(new Array2DRowFieldMatrix<Fraction>(asFraction(testData)), MatrixUtils.createFieldMatrix(asFraction(testData))); Assert.assertEquals(new Array2DRowFieldMatrix<Fraction>(fractionColMatrix), MatrixUtils...
public void testcreateFieldMatrix() { Assert.assertEquals(new Array2DRowFieldMatrix<Fraction>(asFraction(testData)), MatrixUtils.createFieldMatrix(asFraction(testData))); Assert.assertEquals(new Array2DRowFieldMatrix<Fraction>(FractionField.getInstance(), fractionColMatrix), ...
public void testMultiply() { SparseFieldMatrix<Fraction> m = createSparseMatrix(testData); SparseFieldMatrix<Fraction> mInv = createSparseMatrix(testDataInv); SparseFieldMatrix<Fraction> identity = createSparseMatrix(id); SparseFieldMatrix<Fraction> m2 = createSparseMatrix(testData2)...
public void testMultiply() { SparseFieldMatrix<Fraction> m = createSparseMatrix(testData); SparseFieldMatrix<Fraction> mInv = createSparseMatrix(testDataInv); SparseFieldMatrix<Fraction> identity = createSparseMatrix(id); SparseFieldMatrix<Fraction> m2 = createSparseMatrix(testData2)...
public static KernelServices create(List<ModelNode> bootOperations, boolean validateOperations, ModelVersion legacyModelVersion, List<LegacyModelInitializerEntry> modelInitializerEntries) throws Exception { TestModelType type = TestModelType.DOMAIN; XMLMapper xmlMapper = XMLMapper.Facto...
public static KernelServices create(List<ModelNode> bootOperations, boolean validateOperations, ModelVersion legacyModelVersion, List<LegacyModelInitializerEntry> modelInitializerEntries) throws Exception { TestModelType type = TestModelType.DOMAIN; XMLMapper xmlMapper = XMLMapper.Facto...
public interface DomainController { /* * 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 red...
public interface DomainController { /* * 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 red...
public interface ServerInventory extends 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. *...
public interface ServerInventory extends 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. *...
public interface DomainControllerProtocol extends ModelControllerProtocol { /* * JBoss, Home of Professional Open Source. * Copyright 2006, 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 contribut...
public interface DomainControllerProtocol extends ModelControllerProtocol { /* * JBoss, Home of Professional Open Source. * Copyright 2006, 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 contribut...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final ResourceRoot resourceRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT); final VirtualFile deploymentRoot = resourceRoot.getRoot(); if (deploymentRoot == ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final ResourceRoot resourceRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT); final VirtualFile deploymentRoot = resourceRoot.getRoot(); if (deploymentRoot == ...
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(); final ResourceRoot resourceRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT); final Vir...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final ResourceRoot resourceRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT); final Vir...
public boolean isRecurse(VirtualFile file) { // don't recurse into /lib if (file.equals(libDir)) { return false; } for (String suffix : CHILD_ARCHIVE_EX...
public boolean isRecurse(VirtualFile file) { // don't recurse into /lib if (file.equals(libDir)) { return false; } for (String suffix : CHILD_ARCHIVE_EX...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot(); if(deploymentRoot == null || deploymentRoot.exists() == false) ret...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot(); if(deploymentRoot == null || deploymentRoot.exists() == false) ret...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot(); if(deploymentRoot == null || !deploymentRoot.exists()) return; ...
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot(); if(deploymentRoot == null || !deploymentRoot.exists()) return; ...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if(deploymentUnit.hasAttachment(Attachments.OSGI_MANIFEST)) { return; } VirtualFile virtualFile = dep...
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if(deploymentUnit.hasAttachment(Attachments.OSGI_MANIFEST)) { return; } VirtualFile virtualFile = dep...
public boolean accepts(final VirtualFile file) { if (file == null) { return false; } final String fileName = file.getName().toLowerCase(); final boolean hasWsdlSuffix = fileName.endsWith(".wsdl"); final boolean hasXsdSuffix = fileName.endsWith(".xsd"); fi...
public boolean accepts(final VirtualFile file) { if (file == null) { return false; } final String fileName = file.getLowerCaseName(); final boolean hasWsdlSuffix = fileName.endsWith(".wsdl"); final boolean hasXsdSuffix = fileName.endsWith(".xsd"); final b...
public void testWeightedConsistency() throws Exception { // See if this statistic computes weighted statistics // If not, skip this test UnivariateStatistic statistic = getUnivariateStatistic(); if (!(statistic instanceof WeightedEvaluation)) { return; } ...
public void testWeightedConsistency() throws Exception { // See if this statistic computes weighted statistics // If not, skip this test UnivariateStatistic statistic = getUnivariateStatistic(); if (!(statistic instanceof WeightedEvaluation)) { return; } ...
private ClassLoader beanClassLoader = ClassUtils.getDefaultClassLoader(); @Override public void setBeanClassLoader(ClassLoader classLoader) { this.beanClassLoader = classLoader; } @Override protected Class resolveClassName(String className) throws ClassNotFoundException { return ClassUtils.forName(classNam...
private ClassLoader beanClassLoader = ClassUtils.getDefaultClassLoader(); @Override public void setBeanClassLoader(ClassLoader classLoader) { this.beanClassLoader = classLoader; } @Override protected Class<?> resolveClassName(String className) throws ClassNotFoundException { return ClassUtils.forName(class...
public void testSingleton() throws Exception { final String message = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:test=\"http://wsejb.integration.testsuite.as.jboss.org/\">" + " <soapenv:Header/>" + " <soapenv:Body>" ...
public void testSingleton() throws Exception { final String message = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:test=\"http://ejb.ws.integration.testsuite.as.jboss.org/\">" + " <soapenv:Header/>" + " <soapenv:Body>" ...
package org.jboss.as.testsuite.smoke.embedded.demos.ejb3.jndi; /* * 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...
package org.jboss.as.testsuite.smoke.embedded.demos.ejb3.jndi; /* * 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...
package org.jboss.as.testsuite.smoke.embedded.demos.ejb3.jndi; /* * 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...
package org.jboss.as.testsuite.smoke.embedded.demos.ejb3.jndi; /* * 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...
package org.jboss.as.testsuite.smoke.embedded.demos.fakejndi; /* * 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 ...
package org.jboss.as.testsuite.smoke.embedded.demos.fakejndi; /* * 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 ...
package org.jboss.as.testsuite.smoke.embedded.deployment; /* * 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. * * Thi...
package org.jboss.as.testsuite.smoke.embedded.deployment; /* * 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. * * Thi...
package org.jboss.as.testsuite.smoke.embedded.deployment; /* * 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. * * Thi...
package org.jboss.as.testsuite.smoke.embedded.deployment; /* * 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. * * Thi...
package org.jboss.as.testsuite.smoke.embedded.mgmt.datasource; /* * 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...
package org.jboss.as.testsuite.smoke.embedded.mgmt.datasource; /* * 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...
package org.jboss.as.testsuite.smoke.surefire.servermodule.archive.sar; /* * JBoss, Home of Professional Open Source. * Copyright 2006, 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.jboss.as.testsuite.smoke.surefire.servermodule.archive.sar; /* * JBoss, Home of Professional Open Source. * Copyright 2006, 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.jboss.as.testsuite.smoke.surefire.servermodule.archive.sar; /* * JBoss, Home of Professional Open Source. * Copyright 2006, 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.jboss.as.testsuite.smoke.surefire.servermodule.archive.sar; /* * JBoss, Home of Professional Open Source. * Copyright 2006, 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 transient LinkEntry<K, V> header;
public String toString() { if (last != null) { return "Iterator[" + last.getKey() + "=" + last.getValue() + "]"; } return "Iterator[]"; } } }
protected transient Map<K, V> map;
public String toString() { return decorated().toString(); } }