buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public static WebArchive deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "NonTransactionalEmTestCase.war");
war.addClasses(HttpRequest.class, SimpleServlet.class, Employee.class);
war.addAsResource(new StringAsset(persistence_xml), "WEB-INF/classes/META-INF/persistence.xm... | public static WebArchive deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "NonTransactionalEmTestCase.war");
war.addClasses(HttpRequest.class, SimpleServlet.class, Employee.class);
war.addAsResource(new StringAsset(persistence_xml), "META-INF/persistence.xml");
ret... |
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "ws-endpoint-example.war");
war.addPackage(SimpleWebserviceEndpointImpl.class.getPackage());
war.addClass(SimpleWebserviceEndpointImpl.class);
war.addAsWebResource(WebXml.get("<se... | public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "ws-endpoint-example.war");
war.addPackage(SimpleWebserviceEndpointImpl.class.getPackage());
war.addClass(SimpleWebserviceEndpointImpl.class);
war.addAsWebInfResource(WebXml.get("... |
public void addClient(final NewHostControllerClient client) {
Logger.getLogger("org.jboss.domain").info("register client " + client);
}
| public void addClient(final NewHostControllerClient client) {
Logger.getLogger("org.jboss.domain").info("register host " + client.getId());
}
|
private static final Object[][] CONTENTS = {
// org.apache.commons.math.util.MathUtils
{ "must have n >= k for binomial coefficient (n,k), got n = {0}, k = {1}",
"n doit \u00eatre sup\u00e9rieur ou \u00e9gal \u00e0 k " +
"pour le coefficient du bin\u00f4me (n,k), or n = {0}, k = {1}" },
{ "mu... | private static final Object[][] CONTENTS = {
// org.apache.commons.math.util.MathUtils
{ "must have n >= k for binomial coefficient (n,k), got n = {0}, k = {1}",
"n doit \u00eatre sup\u00e9rieur ou \u00e9gal \u00e0 k " +
"pour le coefficient du bin\u00f4me (n,k), or n = {0}, k = {1}" },
{ "mu... |
public void createLdap1(ManagementClient managementClient, final String hostname) throws Exception, IOException, ClassNotFoundException, FileNotFoundException {
final Map<String, String> map = new HashMap<String, String>();
final String cannonicalHost = getCannonicalHost(managementClient);
f... | public void createLdap1(ManagementClient managementClient, final String hostname) throws Exception, IOException, ClassNotFoundException, FileNotFoundException {
final Map<String, String> map = new HashMap<String, String>();
final String cannonicalHost = getCannonicalHost(managementClient);
f... |
public static String[] getRootCauseStackTrace(Throwable throwable) {
if (throwable == null) {
return ArrayUtils.EMPTY_STRING_ARRAY;
}
Throwable throwables[] = getThrowables(throwable);
int count = throwables.length;
ArrayList<String> frames = new ArrayList<String>... | public static String[] getRootCauseStackTrace(Throwable throwable) {
if (throwable == null) {
return ArrayUtils.EMPTY_STRING_ARRAY;
}
Throwable throwables[] = getThrowables(throwable);
int count = throwables.length;
List<String> frames = new ArrayList<String>();
... |
public static final AttributeDefinition[] ROOT_ATTRIBUTES = new AttributeDefinition[] {
ANY_ADDRESS, ANY_IPV4_ADDRESS, ANY_IPV6_ADDRESS, INET_ADDRESS, LINK_LOCAL_ADDRESS,
LOOPBACK, LOOPBACK_ADDRESS, MULTICAST, NAME, NIC, NIC_MATCH, POINT_TO_POINT, PUBLIC_ADDRESS,
SITE_LOCAL_ADDR... | public static final AttributeDefinition[] ROOT_ATTRIBUTES = new AttributeDefinition[] {
ANY_ADDRESS, ANY_IPV4_ADDRESS, ANY_IPV6_ADDRESS, INET_ADDRESS, LINK_LOCAL_ADDRESS,
LOOPBACK, LOOPBACK_ADDRESS, MULTICAST, NIC, NIC_MATCH, POINT_TO_POINT, PUBLIC_ADDRESS,
SITE_LOCAL_ADDRESS, S... |
public void setup(T config) {
containerConfig = config;
ModelControllerClient modelControllerClient = ModelControllerClient.Factory.create(
config.getManagementAddress(),
config.getManagementPort());
managementClient = new ManagementClient(modelControllerCli... | public void setup(T config) {
containerConfig = config;
ModelControllerClient modelControllerClient = ModelControllerClient.Factory.create(
config.getManagementAddress(),
config.getManagementPort());
managementClient = new ManagementClient(modelControllerCli... |
private int calculatePort() {
int port = this.port;
if (port > 0 && isFixedPort == false) {
port += socketBindings.getPortOffset();
}
return port;
}
| private int calculatePort() {
int port = this.port;
if (!isFixedPort) {
port += socketBindings.getPortOffset();
}
return port;
}
|
public void unregisterProxyController(final PathElement address) throws IllegalArgumentException {
final Map<String, NodeSubregistry> snapshot = childrenUpdater.get(this);
final NodeSubregistry subregistry = snapshot.get(address.getKey());
if (subregistry != null) {
subregistry.u... | public void unregisterProxyController(final PathElement address) throws IllegalArgumentException {
final Map<String, NodeSubregistry> snapshot = childrenUpdater.get(this);
final NodeSubregistry subregistry = snapshot.get(address.getKey());
if (subregistry != null) {
subregistry.u... |
protected void manageTransaction() throws Throwable {
// first associate the tx on this thread, by resuming the tx
final Transaction transaction = this.transactionsRepository.removeTransaction(this.xidTransactionID);
this.resumeTransaction(transaction);
try {
// invoke th... | protected void manageTransaction() throws Throwable {
// first associate the tx on this thread, by resuming the tx
final Transaction transaction = this.transactionsRepository.getTransaction(this.xidTransactionID);
this.resumeTransaction(transaction);
try {
// invoke the b... |
private int prepareTransaction() throws Throwable {
// first associate the tx on this thread, by resuming the tx
final Transaction transaction = this.transactionsRepository.removeTransaction(this.xidTransactionID);
if(transaction == null) {
if(EjbLogger.EJB3_INVOCATION_LOGGER.isD... | private int prepareTransaction() throws Throwable {
// first associate the tx on this thread, by resuming the tx
final Transaction transaction = this.transactionsRepository.getTransaction(this.xidTransactionID);
if(transaction == null) {
if(EjbLogger.EJB3_INVOCATION_LOGGER.isDebu... |
protected Class getTypeForFactoryMethod(String beanName, RootBeanDefinition mbd, Class[] typesToMatch) {
Class factoryClass;
boolean isStatic = true;
String factoryBeanName = mbd.getFactoryBeanName();
if (factoryBeanName != null) {
if (factoryBeanName.equals(beanName)) {
throw new BeanDefinitionStoreEx... | protected Class getTypeForFactoryMethod(String beanName, RootBeanDefinition mbd, Class[] typesToMatch) {
Class factoryClass;
boolean isStatic = true;
String factoryBeanName = mbd.getFactoryBeanName();
if (factoryBeanName != null) {
if (factoryBeanName.equals(beanName)) {
throw new BeanDefinitionStoreEx... |
public void testPadsOutputToFullBlockLength() throws Exception {
File f = File.createTempFile("commons-compress-padding", ".tar");
f.deleteOnExit();
FileOutputStream fos = new FileOutputStream(f);
TarArchiveOutputStream tos = new TarArchiveOutputStream(fos);
File file1 = getF... | public void testPadsOutputToFullBlockLength() throws Exception {
File f = File.createTempFile("commons-compress-padding", ".tar");
f.deleteOnExit();
FileOutputStream fos = new FileOutputStream(f);
TarArchiveOutputStream tos = new TarArchiveOutputStream(fos);
File file1 = getF... |
package org.jboss.as.test.integration.ejb.entity.cmp.cascadedelete;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... | package org.jboss.as.test.integration.ejb.entity.cmp.cascadedelete;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... |
package org.jboss.as.test.integration.ejb.entity.cmp.cascadedelete;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... | package org.jboss.as.test.integration.ejb.entity.cmp.cascadedelete;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... |
package org.jboss.as.test.integration.ejb.entity.cmp.cascadedelete;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... | package org.jboss.as.test.integration.ejb.entity.cmp.cascadedelete;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... |
package org.jboss.as.test.integration.ejb.entity.cmp.cascadedelete;
/*
* JBoss, Home of Professional Open Source.
* Copyright 2008, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... | package org.jboss.as.test.integration.ejb.entity.cmp.cascadedelete;
/*
* 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.... |
private Resource resolveRecursive(final Resource resource, final ImmutableManagementResourceRegistration registration, final PathAddress address) {
boolean isSubsystem = address.size() > 0
&& !ModelDescriptionConstants.EXTENSION.equals(address.getElement(0).getKey())
&& Model... | private Resource resolveRecursive(final Resource resource, final ImmutableManagementResourceRegistration registration, final PathAddress address) {
boolean isSubsystem = address.size() > 0
&& !ModelDescriptionConstants.EXTENSION.equals(address.getElement(0).getKey())
&& Model... |
public static synchronized Set<ServiceName> getResourceAdapterServiceNames(final String raName) {
if (raName == null || raName.trim().isEmpty()) {
throw MESSAGES.stringParamCannotBeNullOrEmpty("resource adapter name");
}
ROOT_LOGGER.tracef("ConnectorServices: getResourceAdapterS... | public static synchronized Set<ServiceName> getResourceAdapterServiceNames(final String raName) {
if (raName == null || raName.trim().isEmpty()) {
throw MESSAGES.stringParamCannotBeNullOrEmpty("resource adapter name");
}
ROOT_LOGGER.tracef("ConnectorServices: getResourceAdapterS... |
public static void main(String[] args) throws Exception {
int exitCode = 0;
CommandContext cmdCtx = null;
boolean gui = false;
try {
String argError = null;
List<String> commands = null;
File file = null;
boolean connect = false;
... | public static void main(String[] args) throws Exception {
int exitCode = 0;
CommandContext cmdCtx = null;
boolean gui = false;
try {
String argError = null;
List<String> commands = null;
File file = null;
boolean connect = false;
... |
public synchronized void start(final StartContext startContext) throws StartException {
try {
final RiverMarshallerFactory factory = new RiverMarshallerFactory();
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setClassResolve... | public synchronized void start(final StartContext startContext) throws StartException {
try {
final RiverMarshallerFactory factory = new RiverMarshallerFactory();
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setClassResolve... |
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... |
private Configuration transformConfig(final OperationContext context, String serverName, final ModelNode model) throws OperationFailedException {
Configuration configuration = new ConfigurationImpl();
configuration.setName(serverName);
// --
configuration.setAllowAutoFailBack(ALLO... | private Configuration transformConfig(final OperationContext context, String serverName, final ModelNode model) throws OperationFailedException {
Configuration configuration = new ConfigurationImpl();
configuration.setName(serverName);
// --
configuration.setAllowAutoFailBack(ALLO... |
public void updateOperationID(final int operationID) {
DomainServerCommunicationServices.updateOperationID(operationID);
}
}));
super.start(context);
}
| public void updateOperationID(final int operationID) {
DomainServerCommunicationServices.updateOperationID(operationID);
}
}, authorizer));
super.start(context);
}
|
public void start(StartContext context) throws StartException {
rootResourceDefinition.setDelegate(new ServerRootResourceDefinition(MockRepository.INSTANCE,
persister, environment, processState, null, null, extensionRegistry, false, MOCK_PATH_MANAGER, null));
super.st... | public void start(StartContext context) throws StartException {
rootResourceDefinition.setDelegate(new ServerRootResourceDefinition(MockRepository.INSTANCE,
persister, environment, processState, null, null, extensionRegistry, false, MOCK_PATH_MANAGER, null, authorizer));
... |
@Message(id = 11428, value = "Cannot inject RESOURCE_LOCAL container managed EntityManagers using @PersistenceContext")
/*
* 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... | @Message(id = 11428, value = "Cannot inject RESOURCE_LOCAL container managed EntityManagers using @PersistenceContext")
/*
* 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... |
public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0,
final double t, final double[] y)
throws MathUserException, IntegratorException {
final int n = y0.length;
sanityChecks(equati... | public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0,
final double t, final double[] y)
throws MathUserException, IntegratorException {
final int n = y0.length;
sanityChecks(equati... |
public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0,
final double t, final double[] y)
throws MathUserException, IntegratorException {
final int n = y0.length;
sanityChecks(equati... | public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0,
final double t, final double[] y)
throws MathUserException, IntegratorException {
final int n = y0.length;
sanityChecks(equati... |
public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0,
final double t, final double[] y)
throws MathUserException, IntegratorException {
sanityChecks(equations, t0, y0, t, y);
setEquations(equations);
... | public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0,
final double t, final double[] y)
throws MathUserException, IntegratorException {
sanityChecks(equations, t0, y0, t, y);
setEquations(equations);
... |
public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0, final double t, final double[] y)
throws MathUserException, IntegratorException {
sanityChecks(equations, t0, y0, t, y);
setEquations(equations);
resetEvaluations()... | public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0, final double t, final double[] y)
throws MathUserException, IntegratorException {
sanityChecks(equations, t0, y0, t, y);
setEquations(equations);
resetEvaluations()... |
public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0,
final double t, final double[] y)
throws MathUserException, IntegratorException {
sanityChecks(equations, t0, y0, t, y);
setEquations(equations);
... | public double integrate(final FirstOrderDifferentialEquations equations,
final double t0, final double[] y0,
final double t, final double[] y)
throws MathUserException, IntegratorException {
sanityChecks(equations, t0, y0, t, y);
setEquations(equations);
... |
private static double log(final double x, final double[] hiPrec) {
if (x==0) { // Handle special case of +0/-0
return Double.NEGATIVE_INFINITY;
}
long bits = Double.doubleToLongBits(x);
/* Handle special cases of negative input, and NaN */
if ((bits & 0x800000000... | private static double log(final double x, final double[] hiPrec) {
if (x==0) { // Handle special case of +0/-0
return Double.NEGATIVE_INFINITY;
}
long bits = Double.doubleToLongBits(x);
/* Handle special cases of negative input, and NaN */
if ((bits & 0x800000000... |
public Binding getBinding(String property) {
PropertyPath path = new PropertyPath(property);
Binding binding = getBindingRule(path.getFirstElement().getValue()).getBinding(model);
for (PropertyPathElement element : path.getNestedElements()) {
if (element.isIndex()) {
if (binding.isMap()) {
binding = ... | public Binding getBinding(String property) {
PropertyPath path = new PropertyPath(property);
Binding binding = getBindingRule(path.getFirstElement().getValue()).getBinding(model);
for (PropertyPathElement element : path.getNestedElements()) {
if (element.isIndex()) {
if (binding.isMap()) {
binding = ... |
protected ProcessingInstructionNode parseProcessingInstruction(XMLStreamReader reader, ElementNode parent) throws XMLStreamException {
ProcessingInstructionNode node = null;
String pi = reader.getPITarget();
Map<String, String> data = parseProcessingInstructionData(reader.getPIData());
... | protected ProcessingInstructionNode parseProcessingInstruction(XMLStreamReader reader, ElementNode parent) throws XMLStreamException {
ProcessingInstructionNode node = null;
String pi = reader.getPITarget();
Map<String, String> data = parseProcessingInstructionData(reader.getPIData());
... |
protected void doHandle(CommandContext ctx) throws CommandLineException {
final PatchOperationTarget target = createPatchOperationTarget(ctx);
final PatchOperationBuilder builder = createPatchOperationBuilder(ctx.getParsedCommandLine());
final ModelNode result;
try {
resu... | protected void doHandle(CommandContext ctx) throws CommandLineException {
final PatchOperationTarget target = createPatchOperationTarget(ctx);
final PatchOperationBuilder builder = createPatchOperationBuilder(ctx.getParsedCommandLine());
final ModelNode result;
try {
resu... |
protected AbstractFileTask(PatchingTaskDescription description, File target, File backup) {
super(description, MiscContentItem.class);
this.target = target;
this.backup = backup;
}
/**
* Create the rollback item.
*
* @param original the original content modification
... | protected AbstractFileTask(PatchingTaskDescription description, File target, File backup) {
super(description, MiscContentItem.class);
this.target = target;
this.backup = backup;
}
/**
* Create the rollback item.
*
* @param original the original content modification
... |
public boolean prepare(final PatchingTaskContext context) throws IOException {
// Backup
backupHash = backup(context);
// If the content is already present just resolve any conflict automatically
final byte[] contentHash = contentItem.getContentHash();
if(Arrays.equals(backup... | public boolean prepare(final PatchingTaskContext context) throws IOException {
// Backup
backupHash = backup(context);
// If the content is already present just resolve any conflict automatically
final byte[] contentHash = contentItem.getContentHash();
if(Arrays.equals(backup... |
@Message(id = 17118, value = "Destination URI cannot be null while creating a outbound remote connection service")
/*
* 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 fu... | @Message(id = 17118, value = "Destination URI cannot be null while creating a outbound remote connection service")
/*
* 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 fu... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final JBossServiceXmlDescriptor serviceXmlDescriptor = deploymentUnit
.getAttachment(JBossServiceXmlDescriptor.AT... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final JBossServiceXmlDescriptor serviceXmlDescriptor = deploymentUnit
.getAttachment(JBossServiceXmlDescriptor.AT... |
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
if (serverEnvironment != null) { // TODO eliminate test cases that result in serverEnvironment == null
if (isDomain) {
resourceRegistration.registerReadOnlyAttribute(NAME, serverEnvironment.getP... | public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
if (serverEnvironment != null) { // TODO eliminate test cases that result in serverEnviroment == null
if (isDomain) {
resourceRegistration.registerReadOnlyAttribute(NAME, serverEnvironment.getPr... |
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
// Get the batch file name
final String jobXml = req.getParameter(JOB_XML_PARAMETER);
final String timeoutString = req.getParameter(TIMEOUT_PARAM);
final String ... | protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
// Get the batch file name
final String jobXml = req.getParameter(JOB_XML_PARAMETER);
final String timeoutString = req.getParameter(TIMEOUT_PARAM);
final String ... |
public void init(ServletConfig config) throws ServletException {
try {
final KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
final InputStream in = new BufferedInputStream(new FileInputStream("../jcetest.keystore"));
try {
keyStore.loa... | public void init(ServletConfig config) throws ServletException {
try {
final KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
final InputStream in = new BufferedInputStream(new FileInputStream("../jcetest.keystore"));
try {
keyStore.loa... |
public void intercept(InvocationContext ctx) {
aroundConstructCalled = true;
throw new Error("Do not suppress me.");
}
| public void intercept(InvocationContext ctx) {
aroundConstructCalled = true;
throw new Error("Do not supress me.");
}
|
public String help(String arg) {
final StringBuilder sb = new StringBuilder();
if (arg == null) {
for (String s : cmds.keySet()) {
sb.append(s).append("\n");
}
} else {
final Cmd cmd = cmds.get(arg);
if (cmd == null) {
... | public String help(String arg) {
final StringBuilder sb = new StringBuilder();
if (arg == null) {
for (String s : cmds.keySet()) {
sb.append(s).append("\n");
}
} else {
final Cmd cmd = cmds.get(arg);
if (cmd == null) {
... |
public void testClientTransactionManagement() throws Exception {
final StatelessEJBLocator<RemoteBatch> batchBeanLocator = new StatelessEJBLocator<RemoteBatch>(RemoteBatch.class, APP_NAME, MODULE_NAME, BatchCreationBean.class.getSimpleName(), "");
final RemoteBatch batchBean = EJBClient.createProxy(... | public void testClientTransactionManagement() throws Exception {
final StatelessEJBLocator<RemoteBatch> batchBeanLocator = new StatelessEJBLocator<RemoteBatch>(RemoteBatch.class, APP_NAME, MODULE_NAME, BatchCreationBean.class.getSimpleName(), "");
final RemoteBatch batchBean = EJBClient.createProxy(... |
public void testSFSBNotDestroyed() throws SystemException, NotSupportedException {
try {
sfsb.doStuff();
throw new RuntimeException("Expected an EJBTransactionRequiredException");
} catch (EJBTransactionRequiredException e) {
//ignore
}
userTransac... | public void testSFSBNotDestroyed() throws SystemException, NotSupportedException {
try {
sfsb.doStuff();
throw new RuntimeException("Expected a EJBTransactionRequiredException");
} catch (EJBTransactionRequiredException e) {
//ignore
}
userTransact... |
public void run() {
try {
LOGGER.debug("Creating Syslog server socket");
this.serverSocket = createServerSocket();
} catch (IOException e) {
LOGGER.error("ServerSocket creation failed.", e);
throw new SyslogRuntimeException(e);
}
while... | public void run() {
try {
LOGGER.debug("Creating Syslog server socket");
this.serverSocket = createServerSocket();
} catch (IOException e) {
LOGGER.error("ServerSocket creation failed.", e);
throw new SyslogRuntimeException(e);
}
while... |
public void run() {
try {
final BufferedInputStream bis = new BufferedInputStream(socket.getInputStream());
int b = -1;
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
boolean firstByte = true;
boolean octetCounting = false;
... | public void run() {
try {
final BufferedInputStream bis = new BufferedInputStream(socket.getInputStream());
int b = -1;
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
boolean firstByte = true;
boolean octetCounting = false;
... |
public void initialize() throws SyslogRuntimeException {
super.initialize();
// remove BouncyCastle provider if installed
Security.removeProvider("BC");
final SSLTCPNetSyslogServerConfigIF config = (SSLTCPNetSyslogServerConfigIF) this.tcpNetSyslogServerConfig;
try {
... | public void initialize() throws SyslogRuntimeException {
super.initialize();
// remove BouncyCastle provider if installed
Security.removeProvider("BC");
final SSLTCPNetSyslogServerConfigIF config = (SSLTCPNetSyslogServerConfigIF) this.tcpNetSyslogServerConfig;
try {
... |
public static ModelNode executeOp(ModelNode op, ModelControllerClient client) {
ModelNode modelNodeResult;
try {
modelNodeResult = client.execute(op);
} catch (IOException ioe) {
throw new RuntimeException(ioe);
}
if(!SUCCESS.equals(modelNodeR... | public static ModelNode executeOp(ModelNode op, ModelControllerClient client) {
ModelNode modelNodeResult;
try {
modelNodeResult = client.execute(op);
} catch (IOException ioe) {
throw new RuntimeException(ioe);
}
if(!SUCCESS.equals(modelNodeR... |
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
LOGGER.debug("New request coming.");
final GSSCredential credential = DelegationCredentialContext.getDelegCredential();
if (credential == null) {
resp.sendError(HttpServl... | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
LOGGER.debug("New request comming.");
final GSSCredential credential = DelegationCredentialContext.getDelegCredential();
if (credential == null) {
resp.sendError(HttpServ... |
public void testOrder2(Processor processor) {
Counter.count = 0;
SimpleProcessor.count = 0;
CdiInterceptor.count = 0;
CdiInterceptor2.count = 0;
EjbInterceptor.count = 0;
EjbInterceptor2.count = 0;
int sum = processor.subtract(34, 13);
Assert.assertE... | public void testOrder2(Processor processor) {
Counter.count = 0;
SimpleProcessor.count = 0;
CdiInterceptor.count = 0;
CdiInterceptor2.count = 0;
EjbInterceptor.count = 0;
EjbInterceptor2.count = 0;
int sum = processor.substract(34, 13);
Assert.assert... |
int substract(int x, int y);
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Ver... | int substract(int x, int y);
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Ver... |
public int subtract(int x, int y) {
count = Counter.next();
return x - y;
}
} | public int substract(int x, int y) {
count = Counter.next();
return x - y;
}
} |
public void saveData(String value, ServiceCommand... serviceCommands) throws TestApplicationException {
log.info("[BA COORDINATOR COMPL SERVICE] web method saveData('" + value + "')");
eventLog.foundEventLogName(value);
BusinessActivityManager activityManager = BusinessActivityManagerFactor... | public void saveData(String value, ServiceCommand... serviceCommands) throws TestApplicationException {
log.info("[BA COORDINATOR COMPL SERVICE] web method saveData('" + value + "')");
eventLog.foundEventLogName(value);
BusinessActivityManager activityManager = BusinessActivityManagerFactor... |
public void saveData(String value, ServiceCommand... serviceCommands) throws TestApplicationException {
log.info("[BA PARTICIPANT COMPL SERVICE] invoked saveData('" + value + "')");
eventLog.foundEventLogName(value);
BAParticipantManager participantManager;
BusinessActivity... | public void saveData(String value, ServiceCommand... serviceCommands) throws TestApplicationException {
log.info("[BA PARTICIPANT COMPL SERVICE] invoked saveData('" + value + "')");
eventLog.foundEventLogName(value);
BAParticipantManager participantManager;
BusinessActivity... |
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
return;
}
final Map<String,... | public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
if (!DeploymentTypeMarker.isType(DeploymentType.WAR, deploymentUnit)) {
return;
}
final Map<String,... |
@Message(id = Message.NONE, value = "Is this new user going to be used for one AS process to connect to another AS process? %ne.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Ha... | @Message(id = Message.NONE, value = "Is this new user going to be used for one AS process to connect to another AS process? %ne.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Ha... |
public static Archive<JavaArchive> testAppDeployment(final Logger LOG, final String MODULE, final Class SB_TO_TEST) {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE + ".jar")
.addClass(SB_TO_TEST)
.addClass(SimpleAuthorizationRemote.class)
.addClass(Pare... | public static Archive<JavaArchive> testAppDeployment(final Logger LOG, final String MODULE, final Class SB_TO_TEST) {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE + ".jar")
.addClass(SB_TO_TEST)
.addClass(SimpleAuthorizationRemote.class)
.addClass(Pare... |
public synchronized void start(final StartContext startContext) throws StartException {
try {
final RiverMarshallerFactory factory = new RiverMarshallerFactory();
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setClassResolve... | public synchronized void start(final StartContext startContext) throws StartException {
try {
final RiverMarshallerFactory factory = new RiverMarshallerFactory();
final MarshallingConfiguration configuration = new MarshallingConfiguration();
configuration.setClassResolve... |
public void testPhonetic() {
PhoneticEngine engine = new PhoneticEngine(this.nameType, this.ruleType, this.concat);
String phoneticActual = engine.encode(this.name);
assertEquals("phoneme incorrect", this.phoneticExpected, phoneticActual);
}
} | public void testEncode() {
PhoneticEngine engine = new PhoneticEngine(this.nameType, this.ruleType, this.concat);
String phoneticActual = engine.encode(this.name);
assertEquals("phoneme incorrect", this.phoneticExpected, phoneticActual);
}
} |
private static final int TIMEOUT_MILLISECONDS = 1000;
static final Map<String, TestCommand> COMMANDS;
static {
Map<String, TestCommand> map = new HashMap<String, TestCommand>();
StartCommand start = new StartCommand();
map.put(start.cmd(), start);
MessageCommand msg = new Me... | private static final int TIMEOUT_MILLISECONDS = 1000;
static final Map<String, TestCommand> COMMANDS;
static {
Map<String, TestCommand> map = new HashMap<String, TestCommand>();
StartCommand start = new StartCommand();
map.put(start.cmd(), start);
MessageCommand msg = new Me... |
public BeanInstantiationException(Class<?> beanClass, String msg, Throwable cause) {
super("Could not instantiate bean class [" + beanClass.getName() + "]: " + msg, cause);
this.beanClass = beanClass;
}
| public BeanInstantiationException(Class<?> beanClass, String msg, Throwable cause) {
super("Failed to instantiate [" + beanClass.getName() + "]: " + msg, cause);
this.beanClass = beanClass;
}
|
public interface OperationTransformationOverrideBuilder extends AttributeTransformationDescriptionBuilder<OperationTransformationOverrideBuilder> {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt fil... | public interface OperationTransformationOverrideBuilder extends AttributeTransformationDescriptionBuilder<OperationTransformationOverrideBuilder> {
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt fil... |
ConcreteAttributeTransformationDescriptionBuilder getAttributeBuilder();
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... | ConcreteAttributeTransformationDescriptionBuilder getAttributeBuilder();
/*
* JBoss, Home of Professional Open Source.
* Copyright 2013, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
... |
@Message(id = 18076, value = "Exception expiring or passivating session %s")
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.... | @Message(id = 18076, value = "Exception expiring or passivating session %s")
/*
* 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 ModelNode getModelDescription(Locale locale) {
return MessagingDescriptions.getNoArgSimpleReplyOperation(locale, GET_CONNECTOR_PAIRS_AS_JSON,
CommonAttributes.BROADCAST_GROUP, ModelType.STRING, false);
}
}, EnumSet.of(OperationEntry.Flag.REA... | public ModelNode getModelDescription(Locale locale) {
return MessagingDescriptions.getNoArgSimpleReplyOperation(locale, GET_CONNECTOR_PAIRS_AS_JSON,
CommonAttributes.BROADCAST_GROUP, ModelType.STRING, false);
}
}, EnumSet.of(OperationEntry.Flag.REA... |
public void writeJSON(String path, Map<Object, Object> data) {
LOG.info("Writing " + path + " the data " + data.toString());
writeBytes(path, JSONValue.toJSONString(data).getBytes(Charset.forName("UTF-8")));
}
| public void writeJSON(String path, Map<Object, Object> data) {
LOG.debug("Writing " + path + " the data " + data.toString());
writeBytes(path, JSONValue.toJSONString(data).getBytes(Charset.forName("UTF-8")));
}
|
public DateFormatUtils() {
; // empty constructor
}
| public DateFormatUtils() {
super();
}
|
public StopWatch() {
; // empty constructor
}
| public StopWatch() {
super();
}
|
public static void main(String[] args) throws Exception {
ModelControllerClient client = null;
try {
System.out.println("Connecting");
client = ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999);
System.out.println("Connected");
... | public static void main(String[] args) throws Exception {
ModelControllerClient client = null;
try {
System.out.println("Connecting");
client = ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999);
System.out.println("Connected");
... |
private void addManagementAuthorization(ModelNodeList updates) {
ModelNode domainConfig = domainModel.get(CORE_SERVICE, MANAGEMENT, ACCESS, AUTHORIZATION);
if (domainConfig.isDefined()) {
ModelNode baseAddress = new ModelNode();
baseAddress.add(CORE_SERVICE, MANAGEMENT);
... | private void addManagementAuthorization(ModelNodeList updates) {
ModelNode domainConfig = domainModel.get(CORE_SERVICE, MANAGEMENT, ACCESS, AUTHORIZATION);
if (domainConfig.isDefined()) {
ModelNode baseAddress = new ModelNode();
baseAddress.add(CORE_SERVICE, MANAGEMENT);
... |
private Set<String> getServerNames(String host) {
ModelNode op = new ModelNode();
op.get("operation").set("read-children-names");
op.get("child-type").set("server-config");
op.get("address").set("host", host);
ModelNode result = executeForResult(OperationBuilder.Factory.creat... | private Set<String> getServerNames(String host) {
ModelNode op = new ModelNode();
op.get("operation").set("read-children-names");
op.get("child-type").set("server-config");
op.get("address").add("host", host);
ModelNode result = executeForResult(OperationBuilder.Factory.creat... |
package org.springframework.tests.sample.beans;
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | package org.springframework.tests.sample.beans;
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
package org.springframework.tests.sample.beans;
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... | package org.springframework.tests.sample.beans;
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
package org.springframework.tests.sample.beans;
/*
* Copyright 2002-2012 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.or... | package org.springframework.tests.sample.beans;
/*
* Copyright 2002-2012 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.or... |
public void run() {
sb.append("timeout event");
}
});
result.getInterceptor().afterTimeout(null, null);
assertEquals("timeout event", sb.toString());
assertFalse("Should not be able to set result a second time", result.setResult("hello"));
verify(handler);
}
| public void run() {
sb.append("timeout event");
}
});
result.getInterceptor().handleTimeout(null, null);
assertEquals("timeout event", sb.toString());
assertFalse("Should not be able to set result a second time", result.setResult("hello"));
verify(handler);
}
|
private TesteeSet createTestee(final MockServerController sc, final ScheduledExecutorService executor) throws OperationFailedException {
final MockDeploymentRepository repo = new MockDeploymentRepository();
final FileSystemDeploymentService testee = new FileSystemDeploymentService(null, tmpDir, sc, ... | private TesteeSet createTestee(final MockServerController sc, final ScheduledExecutorService executor) throws OperationFailedException {
final MockDeploymentRepository repo = new MockDeploymentRepository();
final FileSystemDeploymentService testee = new FileSystemDeploymentService(null, tmpDir, null... |
private static ExtensionContext initializeDomainRegistry(final ModelNodeRegistration root, final ExtensibleConfigurationPersister configurationPersister,
final ContentRepository contentRepo, final FileRepository fileRepository, final boolean isMaster, DomainModelImpl model) {
// Global operation... | private static ExtensionContext initializeDomainRegistry(final ModelNodeRegistration root, final ExtensibleConfigurationPersister configurationPersister,
final ContentRepository contentRepo, final FileRepository fileRepository, final boolean isMaster, DomainModelImpl model) {
// Global operation... |
private Map<Set<ServerIdentity>, ModelNode> getServerGroupOperations(ModelNode operation, PathAddress address,
ModelNode domain, ModelNode host) {
Map<Set<ServerIdentity>, ModelNode> result = null;
if (address.size() > 1) {
String type = address.getElement(1).getKey();
... | private Map<Set<ServerIdentity>, ModelNode> getServerGroupOperations(ModelNode operation, PathAddress address,
ModelNode domain, ModelNode host) {
Map<Set<ServerIdentity>, ModelNode> result = null;
if (address.size() > 1) {
String type = address.getElement(1).getKey();
... |
public static final String OPERATION_NAME = ADD;
static final ModelNode getOperation(ModelNode address, ModelNode state) {
ModelNode op = Util.getEmptyOperation(OPERATION_NAME, address);
op.get(RUNTIME_NAME).set(state.get(RUNTIME_NAME));
op.get(HASH).set(state.get(HASH));
return... | public static final String OPERATION_NAME = ADD;
static final ModelNode getOperation(ModelNode address, ModelNode state) {
ModelNode op = Util.getEmptyOperation(OPERATION_NAME, address);
op.get(RUNTIME_NAME).set(state.get(RUNTIME_NAME));
op.get(CONTENT).set(state.get(CONTENT));
... |
public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getDeploymentDescription(locale, true);
}
};
| public ModelNode getModelDescription(Locale locale) {
return DeploymentDescription.getDeploymentDescription(locale, true, true);
}
};
|
public abstract CommandContext newCommandContext(String controllerHost, int controllerPort,
String username, char[] password, boolean initConsole) throws CliInitializationException;
| public abstract CommandContext newCommandContext(String controllerHost, int controllerPort,
String username, char[] password, boolean initConsole, final int connectionTimeout) throws CliInitializationException;
|
private DeploymentUnitProcessingException subDeploymentNotFound(String path, Collection<String> subDeployments) {
StringBuilder builder = new StringBuilder();
builder.append("Sub deployment ");
builder.append(path);
builder.append(" in jboss-structure.xml was not found. Availible sub... | private DeploymentUnitProcessingException subDeploymentNotFound(String path, Collection<String> subDeployments) {
StringBuilder builder = new StringBuilder();
builder.append("Sub deployment ");
builder.append(path);
builder.append(" in jboss-structure.xml was not found. Available sub... |
public void setLength(int length) {
if (length < 0) {
throw new StringIndexOutOfBoundsException(length);
}
if (length < size) {
size = length;
} else {
ensureCapacity(length);
int oldEnd = size;
int newEnd = length;
... | public void setLength(int length) {
if (length < 0) {
throw new StringIndexOutOfBoundsException(length);
}
if (length < size) {
size = length;
} else if (length > size) {
ensureCapacity(length);
int oldEnd = size;
int newEnd... |
protected void performRuntime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> controllers) throws OperationFailedException {
final String... | protected void performRuntime(OperationContext context, ModelNode operation, ModelNode recoveryEnvModel,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> controllers) throws OperationFailedException {
final String... |
private static final ServiceName INTERNAL_OBJECTSTORE_PATH = TxnServices.JBOSS_TXN_PATHS.append("object-store");
| public static final ObjectStoreAdd INSTANCE = new ObjectStoreAdd();
static final ServiceName INTERNAL_OBJECTSTORE_PATH = TxnServices.JBOSS_TXN_PATHS.append("object-store");
|
public void testKepler()
throws DerivativeException, IntegratorException {
final TestProblem3 pb = new TestProblem3(0.9);
double minStep = 0;
double maxStep = pb.getFinalTime() - pb.getInitialTime();
double scalAbsoluteTolerance = 1.0e-8;
double scalRelativeTolerance = scalAbsoluteTolerance;... | public void testKepler()
throws DerivativeException, IntegratorException {
final TestProblem3 pb = new TestProblem3(0.9);
double minStep = 0;
double maxStep = pb.getFinalTime() - pb.getInitialTime();
double scalAbsoluteTolerance = 1.0e-8;
double scalRelativeTolerance = scalAbsoluteTolerance;... |
private static final ModelNode EMPTY = new ModelNode();
static {
EMPTY.setEmptyList();
EMPTY.protect();
}
final NewDomainControllerConnection domainControllerConnection;
final String serverName;
final ModelNode domainModel;
final ModelNode hostModel;
final ModelNode serv... | private static final ModelNode EMPTY = new ModelNode();
static {
EMPTY.setEmptyList();
EMPTY.protect();
}
final NewDomainControllerConnection domainControllerConnection;
final String serverName;
final ModelNode domainModel;
final ModelNode hostModel;
final ModelNode serv... |
protected boolean validateInput(CommandContext ctx, String typePath, String propertyName) {
ModelNode request = new ModelNode();
ModelNode address = request.get(Util.ADDRESS);
if(callback == null) {
callback = new DefaultCallbackHandler();
} else {
callback.... | protected boolean validateInput(CommandContext ctx, String typePath, String propertyName) {
ModelNode request = new ModelNode();
ModelNode address = request.get(Util.ADDRESS);
if(callback == null) {
callback = new DefaultCallbackHandler();
} else {
callback.... |
//private static void addHandler(char start, )
static {
addHandler("STRING_IN_PARANTHESIS", '(', ')');
addHandler("STRING_IN_BRACKETS", '[', ']');
addHandler("STRING_IN_BRACES", '{', '}');
//addHandler("STRING_IN_CHEVRONS", '<', '>', "The closing '>' is missing.");
addHan... | //private static void addHandler(char start, )
static {
addHandler("STRING_IN_PARENTHESIS", '(', ')');
addHandler("STRING_IN_BRACKETS", '[', ']');
addHandler("STRING_IN_BRACES", '{', '}');
//addHandler("STRING_IN_CHEVRONS", '<', '>', "The closing '>' is missing.");
addHan... |
private void parseContainer(XMLExtendedStreamReader reader, ModelNode subsystemAddress, List<ModelNode> operations) throws XMLStreamException {
ModelNode container = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null);
String name = null;
for (int i = 0; i < reader.getAttributeCoun... | private void parseContainer(XMLExtendedStreamReader reader, ModelNode subsystemAddress, List<ModelNode> operations) throws XMLStreamException {
ModelNode container = Util.getEmptyOperation(ModelDescriptionConstants.ADD, null);
String name = null;
for (int i = 0; i < reader.getAttributeCoun... |
public Collection execute(Method unused, Object[] args, CmpEntityBeanContext ctx, EntityProxyFactory factory) throws FinderException {
try {
// invoke implementation method on ejb instance
Object value;
final EntityBeanComponentInstance componentInstance = ctx.getComponen... | public Collection execute(Method unused, Object[] args, CmpEntityBeanContext ctx, EntityProxyFactory factory) throws FinderException {
try {
// invoke implementation method on ejb instance
Object value;
final EntityBeanComponentInstance componentInstance = ctx.getComponen... |
public JDBCTypeComplex(
JDBCTypeComplexProperty[] properties,
Class fieldType) {
this.properties = properties;
this.fieldType = fieldType;
int propNum = properties.length;
columnNames = new String[propNum];
javaTypes = new Class[propNum];
jdb... | public JDBCTypeComplex(
JDBCTypeComplexProperty[] properties,
Class fieldType) {
this.properties = properties;
this.fieldType = fieldType;
int propNum = properties.length;
columnNames = new String[propNum];
javaTypes = new Class[propNum];
jdb... |
public final Object getAnnotation() {
try {
if (isOnField()) {
Class<?> clazz = cl.loadClass(className);
while (!clazz.equals(Object.class)) {
try {
Field field = clazz.getDeclaredField(memberName);
... | public final Object getAnnotation() {
try {
if (isOnField()) {
Class<?> clazz = cl.loadClass(className);
while (!clazz.equals(Object.class)) {
try {
Field field = clazz.getDeclaredField(memberName);
... |
public void start(StartContext context) throws StartException {
MDR_LOGGER.debugf("Starting sevice MDR");
}
| public void start(StartContext context) throws StartException {
MDR_LOGGER.debugf("Starting service MDR");
}
|
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ServiceController<?> managementRepoService = context.getServiceRegistry(false).getService(
ConnectorServices.MANAGEMENT_REPOSISTORY_SERVICE);
... | public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final ServiceController<?> managementRepoService = context.getServiceRegistry(false).getService(
ConnectorServices.MANAGEMENT_REPOSITORY_SERVICE);
... |
public void start() {
if(bean2 == null) {
throw new RuntimeException("PostContruct called before @Inject method");
}
log.info("-----> Constructed BeanWithSimpleInjected, simple=" + simple);
}
| public void start() {
if(bean2 == null) {
throw new RuntimeException("PostConstruct called before @Inject method");
}
log.info("-----> Constructed BeanWithSimpleInjected, simple=" + simple);
}
|
String deploymentPlanDoesNotContainEntry(String entryName);
/*
* 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 fr... | String deploymentPlanDoesNotContainEntry(String entryName);
/*
* 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 fr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.