bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
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...
44,262
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...
44,263
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; }
44,264
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); }
44,266
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...
44,267
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...
44,268
Attribute get (Class Category);
Attribute get (Class Category);
44,269
boolean remove (Class category);
boolean remove (Class category);
44,270
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 ...
44,271
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 ...
44,272
protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal, JBossDestination dest) throws InvalidSelectorException { if (trace) { log....
protected ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal, JBossDestination dest) throws InvalidSelectorException { if (trace) { log....
44,273
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 ...
44,274
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 ...
44,275
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...
44,277
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(); ...
44,278
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; }
44,279
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 ...
44,280
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);...
44,281
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); }
44,282
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...
44,283
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...
44,284
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;...
44,285
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; ...
44,286
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...
44,287
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...
44,288
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 + ...
44,289
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...
44,290
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...
44,291
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...
44,292
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...
44,293
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...
44,295
public final void writeGetStaticsEntry64(Label curInstrLabel, GPR64 dstReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "gs64", true); os .writeMOV(BITS64, dstReg, this.STATICS, getSharedStaticsOffset(entry)); }
public final void writeGetStaticsEntry64(Label curInstrLabel, GPR64 dstReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "gs64", true); os .writeMOV(BITS64, dstReg, this.STATICS, getSharedStaticsOffset(entry)); }
44,296
public final void writeGetStaticsEntry64(Label curInstrLabel, GPR64 dstReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "gs64", true); os .writeMOV(BITS64, dstReg, this.STATICS, getSharedStaticsOffset(entry)); }
public final void writeGetStaticsEntry64(Label curInstrLabel, GPR64 dstReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "gs64", true); os .writeMOV(BITS64, dstReg, this.STATICS, getSharedStaticsOffset(entry)); }
44,297
public final void writePutStaticsEntry64(Label curInstrLabel, GPR64 srcReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "ps64", true); os .writeMOV(BITS64, this.STATICS, getSharedStaticsOffset(entry), srcReg); }
public final void writePutStaticsEntry64(Label curInstrLabel, GPR64 srcReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "ps64", true); os .writeMOV(BITS64, this.STATICS, getSharedStaticsOffset(entry), srcReg); }
44,298
public final void writePutStaticsEntry64(Label curInstrLabel, GPR64 srcReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "ps64", true); os .writeMOV(BITS64, this.STATICS, getSharedStaticsOffset(entry), srcReg); }
public final void writePutStaticsEntry64(Label curInstrLabel, GPR64 srcReg, VmSharedStaticsEntry entry) { writeLoadSTATICS(curInstrLabel, "ps64", true); os .writeMOV(BITS64, this.STATICS, getSharedStaticsOffset(entry), srcReg); }
44,299
public final boolean hasFeature(int feature) { return ((this.features & feature) == feature); }
public final boolean hasFeature(int feature) { return ((this.features & feature) == feature); }
44,300
public static int getReturnType(String signature) { final int endIdx = signature.indexOf(')'); final char ch = signature.charAt(endIdx + 1); if (ch == 'V') { return VOID; } else { return SignatureToType(ch); } }
public static int getReturnType(String signature) { final int endIdx = signature.indexOf(')'); final char ch = signature.charAt(endIdx + 1); if (ch == 'V') { return VOID; } else { return SignatureToType(ch); } }
44,301
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(); } } ...
44,303
private void exceptionOccurred() throws Exception { tm.setRollbackOnly(); }
private void exceptionOccurred() throws Exception { getTransactionManagerReference().setRollbackOnly(); }
44,304
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(); ...
44,305
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(); ...
44,306
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, ...
44,307
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...
44,308
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...
44,309
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(), "/...
44,310
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 ...
44,311
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 ...
44,312
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 ...
44,313
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...
44,314
XhtmlForm(Context c, Element e) { uac = c.getRenderingContext().getUac(); formElement = e; }
public XhtmlForm(Context c, Element e) { uac = c.getRenderingContext().getUac(); formElement = e; }
44,315
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("")) { ...
44,316
public java.io.Reader getDefaultStylesheet() { return null; }
public InputStream getDefaultStylesheet() { return null; }
44,318
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, ...
44,319
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, ...
44,321
public TextUI getUI() { return (TextUI) ui; }
public TextUI getUI() { return (TextUI) UIManager.getUI(this); }
44,323
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; } ...
44,324
public void tearDown() throws Exception { //ServerManagement.deInit(); super.tearDown(); }
public void tearDown() throws Exception { //ServerManagement.deInit(); super.tearDown(); }
44,325
public Attribute get(String attrID);
public Attribute get(String attrID);
44,326
public Attribute remove(String attrID);
public Attribute remove(String attrID);
44,327
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...
44,328
protected boolean disablePointer() { return bus.writeMouseCommand(CMD_DISABLE); }
protected boolean disablePointer() { return bus.writeMouseCommand(CMD_DISABLE); }
44,330
protected boolean enablePointer() { return bus.writeMouseCommand(CMD_ENABLE); }
protected boolean enablePointer() { return bus.writeMouseCommand(CMD_ENABLE); }
44,331
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) {...
44,332
protected boolean initPointer() { boolean result = enablePointer(); result &= setRate(100); return result; }
protected boolean initPointer() { boolean result = enablePointer(); result &= setRate(100); return result; }
44,334
protected boolean setRate(int samples) { return bus.writeMouseCommands(new int[] { CMD_SET_RATE, samples }); }
protected boolean setRate(int samples) { return bus.writeMouseCommands(new int[] { CMD_SET_RATE, samples }); }
44,335
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...
44,339
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...
44,340
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.g...
44,341
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...
44,342
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...
44,343
public CoreDestination undeployCoreDestination(boolean isQueue, String destName) { Map m = isQueue ? queues : topics; CoreDestination dest = (CoreDestination)m.remove(destName); if (dest != null) { idMap.remove(new Long(dest.getId())); } return dest; ...
public CoreDestination undeployCoreDestination(boolean isQueue, String destName) { Map m = isQueue ? queues : topics; CoreDestination dest = (CoreDestination)m.remove(destName); if (dest != null) { idMap.remove(new Long(dest.getId())); } return dest; }
44,344
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; }
44,346
private static Box layout(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle oe = c...
private static Box layout(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) {c.pushStyle(pushed); } Rectangle oe = c.getExtents(); block.setStyle(new Style(c.ge...
44,349
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; }
44,350
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)); }
44,351
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(); }
44,352
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); }
44,353
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...
44,354
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); }
44,355
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((...
44,356
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; Attribute at = (Attribute) attributes.get (where); return id ? (Object) at.getID () : (Object) at; }
44,358
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; }
44,359
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)...
44,360
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 (ignoreC...
44,361
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)...
44,362
protected HttpsURLConnection(URL url) throws IOException { super(url); }
protected HttpsURLConnection(URL url) { super(url); }
44,363
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...
44,364
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...
44,365
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...
44,366
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...
44,367
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...
44,368
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...
44,369
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("createProducerDelegat...
44,370
public ParagraphView(Element element) { super(element); }
public ParagraphView(Element element) { super(element, Y_AXIS); }
44,371
public Object handleClosing(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; SessionState state = getState(invocation); SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = state.getAcknowledgeMode(); //We need to e...
public Object handleClosing(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; SessionState state = getState(invocation); SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = state.getAcknowledgeMode(); //We need to eit...
44,373
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...
44,376
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc...
publicstaticvoidpaint(Contextc,Boxblock){Rectanglebox=newRectangle(block.x+block.margin.left+block.border.left,block.y+block.margin.top+block.border.top,block.width-block.margin.left-block.margin.right-block.border.left-block.border.right,block.height-block.margin.top-block.border.top-block.border.bottom-block.margin.b...
44,378
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...
44,381
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...
44,382
protected void init(Element root) { // joinconditions Element s = XMLUtil.getChildElement(root, "statusvalues"); defaultNextStatus = s.getAttribute("default-next"); defaultOldStatus = s.getAttribute("default-old"); NodeList l = s.getElementsByTagName("status"); for(int i = 0; i < l.getLength(); i++...
protected void init(Element root) { // joinconditions Element s = XMLUtil.getChildElement(root, "statusvalues"); defaultNextStatus = s.getAttribute("default-next"); defaultOldStatus = s.getAttribute("default-old"); NodeList l = s.getElementsByTagName("status"); for(int i = 0; i < l.getLength(); i++...
44,383