bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public ServerProducerDelegate(String id, Receiver destination, Destination jmsDestination, ServerSessionDelegate parent) { this.id = id; this.destination = destination; this.jmsDestination = jmsDestination; sessionEndpoint = parent; }
public ServerProducerDelegate(String id, Receiver destination, Destination jmsDestination, ServerSessionDelegate parent) { this.id = id; this.jmsDestination = jmsDestination; sessionEndpoint = parent; }
28,117
public void send(Message m) { if (log.isTraceEnabled()) { log.trace("sending message " + m + " to the core"); } try { // TODO JMS1.1 specs 3.4.3. If the client can live without a messageID, do not set a new messageID on the message m.setJMSMessageID(generateMessageID()); m.se...
public void send(Message m) { if (log.isTraceEnabled()) { log.trace("sending message " + m + " to the core"); } try { // TODO JMS1.1 specs 3.4.3. If the client can live without a messageID, do not set a new messageID on the message m.setJMSMessageID(generateMessageID()); m.se...
28,118
private boolean canReadDestination(Connection conn, Destination dest) throws Exception { Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); try { sess.createConsumer(dest); return true; } catch (JMSSecurityException e) { log.trace("Can't read d...
private boolean canReadDestination(Connection conn, Destination dest) throws Exception { Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); try { MessageConsumer cons = sess.createConsumer(dest); return true; } catch (JMSSecurityException e) { ...
28,119
public static boolean isNumber(int cssPrimitiveType) { switch ( cssPrimitiveType ) { // fall thru on all these // relative length or size case CSSPrimitiveValue.CSS_EMS: case CSSPrimitiveValue.CSS_EXS: case CSSPrimitiveValue.CSS_PERCENTAGE: ...
public static boolean isNumber(int cssPrimitiveType) { switch ( cssPrimitiveType ) { // fall thru on all these // relative length or size case CSSPrimitiveValue.CSS_EMS: case CSSPrimitiveValue.CSS_EXS: case CSSPrimitiveValue.CSS_PERCENTAGE: ...
28,121
public String toString() { return "DistributedQueue[" + getChannelID() + "]"; }
public String toString() { return "DistributedQueue[" + getChannelID() + ":" + Util.guidToString((String)peer.getID()) + "]"; }
28,122
public synchronized void leave() throws DistributedException { if(!joined) { return; } super.join(); // do the generic stuff first // unregister my pipe output rpcServer.unregister(pipeID); rpcServer.unregister(queue.getDestinationID(), this); joined = false; }
public synchronized void leave() throws DistributedException { if(!joined) { return; } super.leave(); // do the generic stuff first // unregister my pipe output rpcServer.unregister(pipeID); rpcServer.unregister(queue.getDestinationID(), this); joined = false; }
28,124
public Object handleSetExceptionListener(Invocation invocation) throws Throwable { justCreated = false; MethodInvocation mi = (MethodInvocation)invocation; exceptionListener = (ExceptionListener)mi.getArguments()[0]; Client client = (Client)invocation.getMetaData(M...
public Object handleSetExceptionListener(Invocation invocation) throws Throwable { justCreated = false; MethodInvocation mi = (MethodInvocation)invocation; exceptionListener = (ExceptionListener)mi.getArguments()[0]; Client client = getState(invocation).getClient()...
28,125
public File getDefaultIvyUserDir() { if (_defaultUserDir==null) { setDefaultIvyUserDir(new File(System.getProperty("user.home"), ".ivy")); Message.verbose("no default ivy user dir defined: set to "+_defaultUserDir); } return _defaultUserDir; }
public File getDefaultIvyUserDir() { if (_defaultUserDir==null) { setDefaultIvyUserDir(new File(System.getProperty("user.home"), ".ivy")); Message.verbose("no default ivy user dir defined: set to "+_defaultUserDir); } return _defaultUserDir; }
28,126
public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_selectedDeps.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (...
public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_selectedRevs.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (...
28,128
public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_selectedDeps.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (...
public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_selectedDeps.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (...
28,129
public void markEvicted(EvictionData evictionData) { _evicted.put(evictionData.getRootModuleConf(), evictionData); if (!_rootModuleConfs.keySet().contains(evictionData.getRootModuleConf())) { _rootModuleConfs.put(evictionData.getRootModuleConf(), null); } // bug 105: u...
public void markEvicted(EvictionData evictionData) { _evicted.put(evictionData.getRootModuleConf(), evictionData); if (!_rootModuleConfs.keySet().contains(evictionData.getRootModuleConf())) { _rootModuleConfs.put(evictionData.getRootModuleConf(), null); } // bug 105: u...
28,130
public Collection getEvictedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_evictedDeps.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (It...
public Collection getEvictedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_evictedDeps.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (It...
28,131
public Collection getEvictedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_evictedDeps.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (It...
public Collection getEvictedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_evictedDeps.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (It...
28,132
public String[] getRequiredConfigurations() { Collection required = new ArrayList(_confsToFetch.size() + _fetchedConfigurations.size()); required.addAll(_fetchedConfigurations); required.addAll(_confsToFetch); return (String[])required.toArray(new String[required.size()]); }
public String[] getRequiredConfigurations() { Collection required = new ArrayList(_confsToFetch.size() + _fetchedConfigurations.size()); required.addAll(_fetchedConfigurations); required.addAll(_confsToFetch); return (String[])required.toArray(new String[required.size()]); }
28,133
public void parse(URL configuration) throws ParseException, IOException { // put every type definition from ivy to configurator Map typeDefs = _ivy.getTypeDefs(); for (Iterator iter = typeDefs.keySet().iterator(); iter.hasNext();) { String name = (String) iter.next(); _con...
public void parse(URL configuration) throws ParseException, IOException { // put every type definition from ivy to configurator Map typeDefs = _ivy.getTypeDefs(); for (Iterator iter = typeDefs.keySet().iterator(); iter.hasNext();) { String name = (String) iter.next(); _con...
28,134
public static void update(final Ivy ivy, URL srcURL, File destFile, final Map resolvedRevisions, final String status, final String revision, final Date pubdate, final Namespace ns, final boolean replaceInclude) throws IOException, SAXException { if (destFile.getPar...
public static void update(final Ivy ivy, URL srcURL, File destFile, final Map resolvedRevisions, final String status, final String revision, final Date pubdate, final Namespace ns, final boolean replaceInclude) throws IOException, SAXException { if (destFile.getPar...
28,135
public static void update(final Ivy ivy, URL srcURL, File destFile, final Map resolvedRevisions, final String status, final String revision, final Date pubdate, final Namespace ns, final boolean replaceInclude) throws IOException, SAXException { if (destFile.getPar...
public static void update(final Ivy ivy, URL srcURL, File destFile, final Map resolvedRevisions, final String status, final String revision, final Date pubdate, final Namespace ns, final boolean replaceInclude) throws IOException, SAXException { if (destFile.getPar...
28,136
public DefaultModuleRevision(DependencyResolver resolver, ModuleDescriptor descriptor, boolean searched, boolean downloaded) { _resolver = resolver; _descriptor = descriptor; _isSearched = searched; _isDownloaded = downloaded; }
public DefaultModuleRevision(DependencyResolver resolver, DependencyResolver artifactResolver, ModuleDescriptor descriptor, boolean searched, boolean downloaded) { _resolver = resolver; _descriptor = descriptor; _isSearched = searched; _isDownloaded = downloaded; }
28,137
public IvyNode(ResolveData data, ModuleDescriptor md) { _id = md.getModuleRevisionId(); _md = md; _isRoot = true; _root = this; // we do not register nodes created from ModuleDescriptor, cause they are // the root of resolve init(data, false); }
public IvyNode(ResolveData data, ModuleDescriptor md) { _id = md.getModuleRevisionId(); _md = md; _isRoot = true; _root = this; // we do not register nodes created from ModuleDescriptor, cause they are // the root of resolve init(data, false); }
28,139
public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved) { _selectedDeps.put(new ModuleIdConf(moduleId, rootModuleConf), new HashSet(resolved)); }
public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved) { ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf); _selectedDeps.put(moduleIdConf, new HashSet(resolved)); Collection resolvedRevs = new HashSet(); for (Iterator iter = resolved.iterator(); iter...
28,140
public void setEvictedNodes(ModuleId moduleId, String rootModuleConf, Collection evicted) { _evictedDeps.put(new ModuleIdConf(moduleId, rootModuleConf), new HashSet(evicted)); }
public void setEvictedNodes(ModuleId moduleId, String rootModuleConf, Collection evicted) { ModuleIdConf moduleIdConf = new ModuleIdConf(moduleId, rootModuleConf); _evictedDeps.put(moduleIdConf, new HashSet(evicted)); Collection evictedRevs = new HashSet(); for (Iterator iter = evicted.iterator(); iter.hasNe...
28,141
Attribute get (Class Category);
Attribute get (Class category);
28,142
boolean remove (Class category);
boolean remove (Attribute attribute);
28,143
static KeyPair generateRSAKeyPair() { BigInteger p, q, n, d; // Simplified version of GNU Crypto's RSAKeyPairGenerator. int M = 256; BigInteger lower = TWO.pow(255); BigInteger upper = TWO.pow(256).subtract(ONE); byte[] kb = new byte[32]; while (true) { nextBytes(kb); p = new ...
static KeyPair generateRSAKeyPair() { BigInteger p, q, n, d; // Simplified version of GNU Crypto's RSAKeyPairGenerator. int M = 256; BigInteger lower = TWO.pow(255); BigInteger upper = TWO.pow(256).subtract(ONE); byte[] kb = new byte[32]; while (true) { nextBytes(kb); p = new ...
28,144
static KeyPair generateRSAKeyPair() { BigInteger p, q, n, d; // Simplified version of GNU Crypto's RSAKeyPairGenerator. int M = 256; BigInteger lower = TWO.pow(255); BigInteger upper = TWO.pow(256).subtract(ONE); byte[] kb = new byte[32]; while (true) { nextBytes(kb); p = new ...
static KeyPair generateRSAKeyPair() { BigInteger p, q, n, d; // Simplified version of GNU Crypto's RSAKeyPairGenerator. int M = 256; BigInteger lower = TWO.pow(255); BigInteger upper = TWO.pow(256).subtract(ONE); byte[] kb = new byte[32]; while (true) { nextBytes(kb); p = new ...
28,145
protected void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
protected void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
28,146
public void commit() throws Exception { if (state == STATE_ROLLBACK_ONLY) { throw new TransactionException("Transaction marked rollback only, cannot commit"); } if (log.isTraceEnabled()) { log.trace("committing " + this); } //TODO - commit the tx in the database state = ...
public void commit() throws Exception { if (state == STATE_ROLLBACK_ONLY) { throw new TransactionException("Transaction marked rollback only, cannot commit"); } if (trace) { log.trace("committing " + this); } //TODO - commit the tx in the database state = STATE_COMMITTED...
28,148
public void rollback() throws Exception { //TODO - rollback the tx in the database if (log.isTraceEnabled()) { log.trace("rolling back " + this); } state = STATE_ROLLEDBACK; if (insertedTXRecord) { transactionLog.rollbackTx(this); } Iterator iter = callbacks.i...
public void rollback() throws Exception { //TODO - rollback the tx in the database if (trace) { log.trace("rolling back " + this); } state = STATE_ROLLEDBACK; if (insertedTXRecord) { transactionLog.rollbackTx(this); } Iterator iter = callbacks.iterator(); ...
28,149
public void setRollbackOnly() throws Exception { if (log.isTraceEnabled()) { log.trace("setting rollback_only on " + this); } state = STATE_ROLLBACK_ONLY; }
public void setRollbackOnly() throws Exception { if (trace) { log.trace("setting rollback_only on " + this); } state = STATE_ROLLBACK_ONLY; }
28,150
protected void flushDownCache() throws Exception { if (trace) { log.trace(this + " flushing " + downCache.size() + " refs from downcache"); } // Non persistent refs won't already be in the db so they need to be inserted // Persistent refs in a recoverable state will already be there so need to ...
protected void flushDownCache() throws Exception { if (trace) { log.trace(this + " flushing " + downCache.size() + " refs from downcache"); } // Non persistent refs won't already be in the db so they need to be inserted // Persistent refs in a recoverable state will already be there so need to ...
28,151
protected void loadPagedReferences(long number) throws Exception { if (trace) { log.trace(this + " Loading " + number + " paged references from storage"); } // Must flush the down cache first flushDownCache(); List refInfos = pm.getPagedReferenceInfos(channelID, firstPagingOrder, number);...
protected void loadPagedReferences(long number) throws Exception { if (trace) { log.trace(this + " Loading " + number + " paged references from storage"); } // Must flush the down cache first flushDownCache(); List refInfos = pm.getPagedReferenceInfos(channelID, firstPagingOrder, number);...
28,152
public void paintAlternateFlows(RenderingContext c, Layer root, int additionalClearance) { paintTopFlow(c, root, additionalClearance); paintBottomFlow(c, root, additionalClearance); paintLeftFlow(c, root, additionalClearance); paintRightFlow(c, root, additionalClearance); }
public void paintAlternateFlows(RenderingContext c, Layer root, int additionalClearance) { paintTopFlow(c, root, additionalClearance); paintBottomFlow(c, root, additionalClearance); paintLeftFlow(c, root, additionalClearance); paintRightFlow(c, root, additionalClearance); }
28,153
private void paintBottomFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_BOTTOM); if (! flowName.equals("none")) { int left = additionalClearance + (int)g...
private void paintBottomFlow(RenderingContext c, Layer root, short mode, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_BOTTOM); if (! flowName.equals("none")) { int left = additionalCleara...
28,154
private void paintBottomFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_BOTTOM); if (! flowName.equals("none")) { int left = additionalClearance + (int)g...
private void paintBottomFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_BOTTOM); if (! flowName.equals("none")) { int left = additionalClearance + (int)g...
28,155
private void paintLeftFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_LEFT); if (! flowName.equals("none")) { int left = additionalClearance; ...
private void paintLeftFlow(RenderingContext c, Layer root, short mode, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_LEFT); if (! flowName.equals("none")) { int left = additionalClearance;...
28,156
private void paintLeftFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_LEFT); if (! flowName.equals("none")) { int left = additionalClearance; ...
private void paintLeftFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_LEFT); if (! flowName.equals("none")) { int left = additionalClearance; ...
28,157
private void paintRightFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_RIGHT); if (! flowName.equals("none")) { int left = additionalClearance + getWidth...
private void paintRightFlow(RenderingContext c, Layer root, short mode, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_RIGHT); if (! flowName.equals("none")) { int left = additionalClearanc...
28,158
private void paintRightFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_RIGHT); if (! flowName.equals("none")) { int left = additionalClearance + getWidth...
private void paintRightFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_RIGHT); if (! flowName.equals("none")) { int left = additionalClearance + getWidth...
28,159
private void paintTopFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_TOP); if (! flowName.equals("none")) { int left = additionalClearance + (int)getStyl...
private void paintTopFlow(RenderingContext c, Layer root, short mode, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_TOP); if (! flowName.equals("none")) { int left = additionalClearance + ...
28,160
private void paintTopFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_TOP); if (! flowName.equals("none")) { int left = additionalClearance + (int)getStyl...
private void paintTopFlow(RenderingContext c, Layer root, int additionalClearance) { CalculatedStyle style = getStyle().getCalculatedStyle(); String flowName = style.getStringProperty(CSSName.FS_FLOW_TOP); if (! flowName.equals("none")) { int left = additionalClearance + (int)getStyl...
28,161
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType< ? > cls) { if (!cls.isInitialized()) { // Create jump labels final Label doInit = new Label(curInstrLabel + "$$do-cinit-ex"); final Label done = new Label(curInstrLabel + "$$done-cini...
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType< ? > cls) { if (!cls.isInitialized()) { // Create jump labels final Label doInit = new Label(curInstrLabel + "$$do-cinit-ex"); final Label done = new Label(curInstrLabel + "$$done-cini...
28,162
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType< ? > cls) { if (!cls.isInitialized()) { // Create jump labels final Label doInit = new Label(curInstrLabel + "$$do-cinit-ex"); final Label done = new Label(curInstrLabel + "$$done-cini...
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType< ? > cls) { if (!cls.isInitialized()) { // Create jump labels final Label doInit = new Label(curInstrLabel + "$$do-cinit-ex"); final Label done = new Label(curInstrLabel + "$$done-cini...
28,163
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType< ? > cls) { if (!cls.isInitialized()) { // Create jump labels final Label doInit = new Label(curInstrLabel + "$$do-cinit-ex"); final Label done = new Label(curInstrLabel + "$$done-cini...
public final void writeClassInitialize(Label curInstrLabel, GPR classReg, VmType< ? > cls) { if (!cls.isInitialized()) { // Create jump labels final Label doInit = new Label(curInstrLabel + "$$do-cinit-ex"); final Label done = new Label(curInstrLabel + "$$done-cini...
28,164
public final void writeClassInitializers() { for (Map.Entry<VmType<?>, Label> entry : classInitLabels.entrySet()) { final Label label = entry.getValue(); // Set label os.setObjectRef(label); // Save registers if (os.isCode32()) { os.writeP...
public final void writeClassInitializers() { for (Map.Entry<VmType<?>, Label> entry : classInitLabels.entrySet()) { final Label label = entry.getValue(); // Set label os.setObjectRef(label); // Save registers if (os.isCode32()) { os.writeP...
28,166
private void end() throws Exception { try { if (Status.STATUS_MARKED_ROLLBACK == tm.getStatus()) { failed = true; tm.rollback(); } else { tm.commit(); } } ...
private void end() throws Exception { try { if (Status.STATUS_MARKED_ROLLBACK == tm.getStatus()) { failed = true; tm.rollback(); } else { tm.commit(); } } ...
28,168
private void exceptionOccurred() throws Exception { tm.setRollbackOnly(); }
private void exceptionOccurred() throws Exception { getTransactionManagerReference().setRollbackOnly(); }
28,169
public List getMessages(List messageIds) throws Exception { if (trace) { log.trace("Getting batch of messages for " + messageIds); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List getMessages(List messageIds) throws Exception { if (trace) { log.trace("Getting batch of messages for " + messageIds); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
28,170
public List getMessages(List messageIds) throws Exception { if (trace) { log.trace("Getting batch of messages for " + messageIds); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List getMessages(List messageIds) throws Exception { if (trace) { log.trace("Getting batch of messages for " + messageIds); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
28,171
public void setTransactionManager(ObjectName tmObjectName) throws Exception { this.tmObjectName = tmObjectName; TransactionManagerServiceMBean tms = (TransactionManagerServiceMBean) MBeanServerInvocationHandler .newProxyInstance(getServer(), tmObjectName, TransactionManagerServiceMBean.class, ...
public void setTransactionManager(ObjectName tmObjectName) throws Exception { this.tmObjectName = tmObjectName; TransactionManagerServiceMBean tms = (TransactionManagerServiceMBean) MBeanServerInvocationHandler .newProxyInstance(getServer(), tmObjectName, TransactionManagerServiceMBean.class, ...
28,172
protected void startService() throws Exception { if (ds == null) { InitialContext ic = new InitialContext(); ds = (DataSource) ic.lookup(dataSourceJNDIName); ic.close(); } if (ds == null) { throw new Exception("No DataSource found. This service depende...
protected void startService() throws Exception { if (ds == null) { InitialContext ic = new InitialContext(); ds = (DataSource) ic.lookup(dataSourceJNDIName); ic.close(); } if (ds == null) { throw new Exception("No DataSource found. This service depende...
28,173
public String getDocumentTitle(org.w3c.dom.Document doc) { String title = ""; try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:head/xh:title/text()", pres); org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "/...
public String getDocumentTitle(org.w3c.dom.Document doc) { String title = "TITLE UNKNOWN"; try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:head/xh:title/text()", pres); org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocument...
28,174
public String getDocumentTitle(org.w3c.dom.Document doc) { String title = ""; try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:head/xh:title/text()", pres); org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "/...
public String getDocumentTitle(org.w3c.dom.Document doc) { String title = ""; try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:head/xh:title/text()", pres); org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "/...
28,175
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:style[@type='text/css']", pres); //NOTE: type is required and we only handle css ...
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:style[@type='text/css']", pres); //NOTE: type is required and we only handle css ...
28,176
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:style[@type='text/css']", pres); //NOTE: type is required and we only handle css ...
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:style[@type='text/css']", pres); //NOTE: type is required and we only handle css ...
28,177
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:style[@type='text/css']", pres); //NOTE: type is required and we only handle css ...
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); try { //org.apache.xpath.objects.XObject xo = XPathAPI.eval(doc.getDocumentElement(), "//xh:style[@type='text/css']", pres); //NOTE: type is required and we only handle css ...
28,178
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) StylesheetInfo[] refs = super.getStylesheetLinks(doc); list.addAll(java.util.Arrays.asList(refs)); //get the link eleme...
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) StylesheetInfo[] refs = super.getStylesheetLinks(doc); list.addAll(java.util.Arrays.asList(refs)); //get the link eleme...
28,179
XhtmlForm(Context c, Element e) { uac = c.getRenderingContext().getUac(); formElement = e; }
public XhtmlForm(Context c, Element e) { uac = c.getRenderingContext().getUac(); formElement = e; }
28,180
JComponent addComponent(Context c, Element e) { JComponent cc = (JComponent) components.get(e); if (cc != null) { return cc; } if (e.getNodeName().equals("input")) { String type = e.getAttribute("type"); if (type == null || type.equals("")) { ...
public JComponent addComponent(Context c, Element e) { JComponent cc = (JComponent) components.get(e); if (cc != null) { return cc; } if (e.getNodeName().equals("input")) { String type = e.getAttribute("type"); if (type == null || type.equals("")) { ...
28,181
public java.io.Reader getDefaultStylesheet() { return null; }
public InputStream getDefaultStylesheet() { return null; }
28,183
public static final int getPositionAbove(JTextComponent c, int offset, int x) throws BadLocationException { View rootView = c.getUI().getRootView(c); Rectangle r = c.modelToView(offset); int offs = c.viewToModel(new Point(x, r.y)); int pos = rootView.getNextVisualPositionFrom(c, offs, ...
public static final int getPositionAbove(JTextComponent c, int offset, int x) throws BadLocationException { View rootView = c.getUI().getRootView(c); Rectangle r = c.modelToView(offset); int offs = c.viewToModel(new Point(x, r.y)); int pos = rootView.getNextVisualPositionFrom(offs, ...
28,184
public static final int getPositionBelow(JTextComponent c, int offset, int x) throws BadLocationException { View rootView = c.getUI().getRootView(c); Rectangle r = c.modelToView(offset); int offs = c.viewToModel(new Point(x, r.y)); int pos = rootView.getNextVisualPositionFrom(c, offs, ...
public static final int getPositionBelow(JTextComponent c, int offset, int x) throws BadLocationException { View rootView = c.getUI().getRootView(c); Rectangle r = c.modelToView(offset); int offs = c.viewToModel(new Point(x, r.y)); int pos = rootView.getNextVisualPositionFrom(offs, ...
28,186
public TextUI getUI() { return (TextUI) ui; }
public TextUI getUI() { return (TextUI) UIManager.getUI(this); }
28,188
public AnonymousBlockBox(Content content) { super(); setContent(content); setNode(content.getElement()); /* * while(true) { * Node sibling = startNode.getNextSibling(); * if(sibling == null) { break; } * if(Layout.isBlockNode(sibling,c)) { break; } ...
public AnonymousBlockBox(Content content) { super(); setContent(content); setNode(content.getElement()); /* * while(true) { * Node sibling = startNode.getNextSibling(); * if(sibling == null) { break; } * if(Layout.isBlockNode(sibling,c)) { break; } ...
28,189
public Attribute get(String attrID);
Attribute get(String attrID);
28,190
public Attribute remove(String attrID);
Attribute remove(String attrID);
28,191
protected void maintainRelatives(Invocation invocation) { //Get the InvocationHandler for this invocation JMSInvocationHandler thisHandler = ((JMSMethodInvocation)invocation).getHandler(); //We use a clone to avoid a deadlock where requests //are made to clo...
protected void maintainRelatives(Invocation invocation) { //Get the InvocationHandler for this invocation JMSInvocationHandler thisHandler = ((JMSMethodInvocation)invocation).getHandler(); //We use a clone to avoid a deadlock where requests //are made to clo...
28,192
protected boolean disablePointer() { return bus.writeMouseCommand(CMD_DISABLE); }
protected boolean disablePointer() throws DeviceException { log.debug("disablePointer"); return bus.writeMouseCommand(CMD_DISABLE); }
28,194
protected boolean enablePointer() { return bus.writeMouseCommand(CMD_ENABLE); }
protected boolean enablePointer() throws DeviceException { log.debug("enablePointer"); return bus.writeMouseCommand(CMD_ENABLE); }
28,195
protected int getPointerId() throws DriverException { if (!bus.writeMouseCommand(CMD_GET_ID)) { throw new DriverException("Cannot request Pointer ID"); } try { return channel.read(50); } catch (IOException ex) { throw new DriverException("Error in requesting Pointer ID", ex); } catch (TimeoutException ex) {...
protected int getPointerId() throws DriverException { if (!bus.writeMouseCommand(CMD_GET_ID)) { throw new DriverException("Cannot request Pointer ID"); } try { return channel.read(50); } catch (IOException ex) { throw new DriverException("Error in requesting Pointer ID", ex); } catch (TimeoutException ex) {...
28,196
protected boolean initPointer() { boolean result = enablePointer(); result &= setRate(100); return result; }
protected boolean initPointer() throws DeviceException { boolean result = enablePointer(); result &= setRate(100); return result; }
28,198
protected boolean setRate(int samples) { return bus.writeMouseCommands(new int[] { CMD_SET_RATE, samples }); }
protected boolean setRate(int samples) throws DeviceException { return bus.writeMouseCommands(new int[] { CMD_SET_RATE, samples }); }
28,199
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { DurableSubscription removed = removeDurableSubscriptionInMemory(clientID, subscriptionName); if (clientID == null) { throw new JMSException("Clie...
28,203
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (removed != null) { throw new JMSException("Clie...
28,204
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { deleteMappingRow(removed.ge...
28,205
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
28,206
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
28,207
public int getLength() { int retval = 0; NodeIterator iter = createIterator(); while (iter.nextNode() != null) { retval++; } current = null; return retval; }
public int getLength() { int retval = 0; NodeIterator iter = createIterator(); while (iter.nextNode() != null) { retval++; } iter.detach(); return retval; }
28,209
public static Box createBox(LayoutContext c, Content content) { Box block = new AnonymousBlockBox(content); c.pushStyle(CascadedStyle.emptyCascadedStyle); block.setStyle(new Style(c.getCurrentStyle(), 0, c)); c.popStyle(); return block; }
public static Box createBox(LayoutContext c, Content content) { Box block = new AnonymousBlockBox(content); c.pushStyle(CascadedStyle.emptyCascadedStyle); block.setStyle(new Style(c.getCurrentStyle(), 0)); c.popStyle(); return block; }
28,212
public void requestCompleted(USBRequest request) { log.debug("USBStorageBulkTransport completed with status:" + request.getStatus()); }
public void requestCompleted(USBRequest request) { log.debug("*** Request data : " + request.toString()); log.debug("USBStorageBulkTransport completed with status : 0x" + NumberUtils.hex(request.getStatus(),4)); }
28,213
public void requestFailed(USBRequest request) { log.debug("USBStorageBulkTransport failed with status:" + request.getStatus()); pipe.close(); }
public void requestFailed(USBRequest request) { log.debug("*** Request data : " + request.toString()); log.debug("USBStorageBulkTransport failed with status : 0x" + NumberUtils.hex(request.getStatus(),4)); pipe.close(); }
28,214
public void reset() throws USBException { final USBControlPipe pipe = device.getDefaultControlPipe(); final USBRequest req = pipe.createRequest(new SetupPacket(0x01 | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFF, 0, 0, 0), null); pipe.syncSubmit(req, GET_TIMEOUT); }
public void reset() throws USBException { final USBControlPipe pipe = device.getDefaultControlPipe(); final USBRequest req = pipe.createRequest(new SetupPacket(USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFF, 0, 0, 0), null); pipe.syncSubmit(req, GET_TIMEOUT); }
28,215
public void transport(CDB cdb) { try { byte[] scsiCmd = cdb.toByteArray(); // Setup command wrapper BulkCommandBlockWrapper bcb = new BulkCommandBlockWrapper(); bcb.setSignature(US_BULK_CB_SIGN); bcb.setDataTransferLength(scsiCmd.length); bcb...
public void transport(CDB cdb) { try { byte[] scsiCmd = cdb.toByteArray(); // Setup command wrapper BulkCommandBlockWrapper bcb = new BulkCommandBlockWrapper(); bcb.setSignature(US_BULK_CB_SIGN); bcb.setDataTransferLength(scsiCmd.length); bcb...
28,216
public static int findBoxX(BasicPanel panel, int x, int y) { return findBoxX(panel.body_box, x, y); }
public static int findBoxX(BasicPanel panel, int x, int y) { return findBoxX(panel.getRootBox(), x, y); }
28,217
protected void setUp() throws Exception { super.setUp(); DatabaseHelper.createDatabase(""); XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("osworkflow-spring.xml")); //workflow = (AbstractWorkflow) beanFactory.getBean("workflow"); workflow.setConfiguration((...
protected void setUp() throws Exception { super.setUp(); DatabaseHelper.createDatabase(""); XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("osworkflow-spring.xml")); //workflow = (AbstractWorkflow) beanFactory.getBean("workflow"); workflow.setConfiguration((...
28,218
public Object nextElement () throws NoSuchElementException { if (where + 1 >= attributes.size ()) throw new NoSuchElementException ("no more elements"); ++where; Attribute at = (Attribute) attributes.get (where); return id ? (Object) at.getID () : (Object) at; }
public Object nextElement () throws NoSuchElementException { if (where >= attributes.size ()) throw new NoSuchElementException ("no more elements"); ++where; Attribute at = (Attribute) attributes.get (where); return id ? (Object) at.getID () : (Object) at; }
28,219
public Object nextElement () throws NoSuchElementException { if (where + 1 >= attributes.size ()) throw new NoSuchElementException ("no more elements"); ++where; Attribute at = (Attribute) attributes.get (where); return id ? (Object) at.getID () : (Object) at; }
public Object nextElement () throws NoSuchElementException { if (where + 1 >= attributes.size ()) throw new NoSuchElementException ("no more elements"); ++where; return id ? (Object) at.getID () : (Object) at; }
28,220
public boolean equals (Object obj) { if (! (obj instanceof BasicAttributes)) return false; BasicAttributes b = (BasicAttributes) obj; if (ignoreCase != b.ignoreCase || attributes.size () != b.attributes.size ()) return false; // Does order matter? for (int i = 0; i < attributes.size (); ++i)...
public boolean equals (Object obj) { if (! (obj instanceof BasicAttributes)) return false; BasicAttributes b = (BasicAttributes) obj; if (ignoreCase != b.ignoreCase || attributes.size () != b.attributes.size ()) return false; // Does order matter? for (int i = 0; i < attributes.size (); ++i)...
28,221
public boolean equals (Object obj) { if (! (obj instanceof BasicAttributes)) return false; BasicAttributes b = (BasicAttributes) obj; if (ignoreCase != b.ignoreCase || attributes.size () != b.attributes.size ()) return false; // Does order matter? for (int i = 0; i < attributes.size (); ++i)...
public boolean equals (Object obj) { if (! (obj instanceof BasicAttributes)) return false; BasicAttributes b = (BasicAttributes) obj; if (ignoreCase != b.ignoreCase || attributes.size () != b.attributes.size ()) return false; // Does order matter? Attributes bs = (Attributes) obj; if (ignore...
28,222
public boolean equals (Object obj) { if (! (obj instanceof BasicAttributes)) return false; BasicAttributes b = (BasicAttributes) obj; if (ignoreCase != b.ignoreCase || attributes.size () != b.attributes.size ()) return false; // Does order matter? for (int i = 0; i < attributes.size (); ++i)...
public boolean equals (Object obj) { if (! (obj instanceof BasicAttributes)) return false; BasicAttributes b = (BasicAttributes) obj; if (ignoreCase != b.ignoreCase || attributes.size () != b.attributes.size ()) return false; // Does order matter? for (int i = 0; i < attributes.size (); ++i)...
28,223
protected HttpsURLConnection(URL url) throws IOException { super(url); }
protected HttpsURLConnection(URL url) { super(url); }
28,224
final void startPlugin(final PluginRegistryModel registry) throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; } // BootLog.info("Resolve...
final void startPlugin(final PluginRegistryModel registry) throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; } // BootLog.info("Resolve...
28,225
final void startPlugin(final PluginRegistryModel registry) throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; } // BootLog.info("Resolve...
final void startPlugin(final PluginRegistryModel registry) throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; } // BootLog.info("Resolve...
28,226
final void startPlugin(final PluginRegistryModel registry) throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; } // BootLog.info("Resolve...
final void startPlugin(final PluginRegistryModel registry) throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; } // BootLog.info("Resolve...
28,227
final void startPlugin(final PluginRegistryModel registry) throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; } // BootLog.info("Resolve...
final void startPlugin(final PluginRegistryModel registry) throws PluginException { if (started) { return; } synchronized (this) { if (started || starting) { return; } starting = true; } // BootLog.info("Resolve...
28,228
public Object run() throws PluginException { resolve(registry); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); // BootLog.info("S...
public Object run() throws PluginException { resolve(registry); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); // BootLog.info("S...
28,229
public Object run() throws PluginException { resolve(registry); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); // BootLog.info("S...
public Object run() throws PluginException { resolve(registry); final int reqMax = requires.length; for (int i = 0; i < reqMax; i++) { final String reqId = requires[i].getPluginId(); // BootLog.info("S...
28,230
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); Object retVal = invocation.invokeNext(); //TODO browser if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelega...
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); Object retVal = invocation.invokeNext(); //TODO browser if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelega...
28,231
public ParagraphView(Element element) { super(element); }
public ParagraphView(Element element) { super(element, Y_AXIS); }
28,232
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio...
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio...
28,235
public static final synchronized ResourceBundle getBundle (String baseName, Locale locale, ClassLoader classLoader) { // This implementation searches the bundle in the reverse direction // and builds the parent chain on the fly. Locale defaultLocale = Locale.getDefault(); if (defaultLocale != lastDefa...
public static final synchronized ResourceBundle getBundle (String baseName, Locale locale, ClassLoader classLoader) { // This implementation searches the bundle in the reverse direction // and builds the parent chain on the fly. Locale defaultLocale = Locale.getDefault(); if (defaultLocale != lastDefa...
28,239