bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public // interface ProxyData data = new ProxyData(); data.interface...
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public // interface ProxyData data = new ProxyData(); data.interface...
36,207
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public // interface ProxyData data = new ProxyData(); data.interface...
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public // interface ProxyData data = new ProxyData(); data.interface...
36,208
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public // interface ProxyData data = new ProxyData(); data.interface...
static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public // interface ProxyData data = new ProxyData(); data.interface...
36,209
public static synchronized Class getProxyClass(ClassLoader loader, Class[] interfaces) { interfaces = (Class[]) interfaces.clone(); ProxyType pt = new ProxyType(loader, interfaces); Class clazz = (Class) proxyClasses.get(pt); if (clazz == null) { ProxyData data = ProxyData.getProxyData(pt); C...
public static synchronized Class getProxyClass(ClassLoader loader, Class[] interfaces) { interfaces = (Class[]) interfaces.clone(); ProxyType pt = new ProxyType(loader, interfaces); Class clazz = (Class) proxyClasses.get(pt); if (clazz == null) { ProxyData data = ProxyData.getProxyData(pt); C...
36,210
public static synchronized Class getProxyClass(ClassLoader loader, Class[] interfaces) { interfaces = (Class[]) interfaces.clone(); ProxyType pt = new ProxyType(loader, interfaces); Class clazz = (Class) proxyClasses.get(pt); if (clazz == null) { ProxyData data = ProxyData.getProxyData(pt); C...
public static synchronized Class getProxyClass(ClassLoader loader, Class[] interfaces) { interfaces = (Class[]) interfaces.clone(); ProxyType pt = new ProxyType(loader, interfaces); Class clazz = (Class) proxyClasses.get(pt); if (clazz == null) { ProxyData data = ProxyData.getProxyData(pt); C...
36,211
private String readAttributeValue(Reader in) throws IOException { StringBuffer buf = new StringBuffer(); int ch = in.read(); if (ch == '#') { while (true) { ch = in.read(); if (('a' <= ch && ch <= 'f') || ('A' <= ch && ch <= 'F') || Character.isDigit...
private String readAttributeValue(Reader in) throws IOException { StringBuffer buf = new StringBuffer(); int ch = in.read(); if (ch == '#') { while (true) { ch = in.read(); if (('a' <= ch && ch <= 'f') || ('A' <= ch && ch <= 'F') || Character.isDigit...
36,212
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.info("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,215
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,216
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,217
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,218
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,219
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,220
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,221
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,222
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
public void onMessage(Message m) { try { TextMessage tm = (TextMessage)m; log.trace("Got message:" + tm.getText() + " count is " + count); if (count == 0) { if (!("a".equals(tm.getText()))) { ...
36,223
private Class getQueryClass(com.opensymphony.workflow.query.Expression expr, Collection classesCache) throws StoreException { if (classesCache == null) { classesCache = new HashSet(); } if (expr instanceof FieldExpression) { FieldExpression fieldExpression = (FieldExpressi...
private Class getQueryClass(com.opensymphony.workflow.query.Expression expr, Collection classesCache) throws StoreException { if (classesCache == null) { classesCache = new HashSet(); } if (expr instanceof FieldExpression) { FieldExpression fieldExpression = (FieldExpressi...
36,225
private ResourceManagerFactory() { resourceManagers = new HashMap(); }
private ResourceManagerFactory() { holders = new HashMap(); }
36,226
public synchronized ResourceManager getResourceManager(String serverID) { ResourceManager rm = (ResourceManager)resourceManagers.get(serverID); if (rm == null) { rm = new ResourceManager(); resourceManagers.put(serverID, rm); } return rm; }
public synchronized ResourceManager getResourceManager(String serverID) { ResourceManager rm = (ResourceManager)resourceManagers.get(serverID); if (rm == null) { rm = new ResourceManager(); resourceManagers.put(serverID, rm); } return rm; }
36,227
public synchronized ResourceManager getResourceManager(String serverID) { ResourceManager rm = (ResourceManager)resourceManagers.get(serverID); if (rm == null) { rm = new ResourceManager(); resourceManagers.put(serverID, rm); } return rm; }
public synchronized ResourceManager getResourceManager(String serverID) { ResourceManager rm = (ResourceManager)resourceManagers.get(serverID); if (rm == null) { rm = new ResourceManager(); resourceManagers.put(serverID, rm); } return rm; }
36,228
public synchronized ResourceManager getResourceManager(String serverID) { ResourceManager rm = (ResourceManager)resourceManagers.get(serverID); if (rm == null) { rm = new ResourceManager(); resourceManagers.put(serverID, rm); } return rm; }
public synchronized ResourceManager getResourceManager(String serverID) { ResourceManager rm = (ResourceManager)resourceManagers.get(serverID); if (rm == null) { rm = new ResourceManager(); resourceManagers.put(serverID, rm); } else { h.refCount++; } return h.rm; }
36,229
public void read(Reader in, Document document, int offset) throws BadLocationException, IOException { BufferedReader reader = new BufferedReader(in); String line; StringBuffer content = new StringBuffer(); while ((line = reader.readLine()) != null) content.append(line); document.insertSt...
public void read(InputStream in, Document document, int offset) throws BadLocationException, IOException { BufferedReader reader = new BufferedReader(in); String line; StringBuffer content = new StringBuffer(); while ((line = reader.readLine()) != null) content.append(line); document.ins...
36,230
public void read(Reader in, Document document, int offset) throws BadLocationException, IOException { BufferedReader reader = new BufferedReader(in); String line; StringBuffer content = new StringBuffer(); while ((line = reader.readLine()) != null) content.append(line); document.insertSt...
public void read(Reader in, Document document, int offset) throws BadLocationException, IOException { BufferedReader reader = new BufferedReader(in); String line; StringBuffer content = new StringBuffer(); while ((line = reader.readLine()) != null) content.append(line); document.insertSt...
36,231
public boolean isRunning() { return running; }
public boolean isRunning() { return task != null; }
36,232
public void start() { synchronized (queueLock) { if (!running) { running = true; waker = new Waker(); waker.start(); } } }
public void start() { synchronized (queueLock) { if (!running) { running = true; waker = new Waker(); waker.start(); } } }
36,234
public void start() { synchronized (queueLock) { if (!running) { running = true; waker = new Waker(); waker.start(); } } }
public void start() { synchronized (queueLock) { if (!running) { running = true; waker = new Waker(); waker.start(); } } }
36,235
public void start() { synchronized (queueLock) { if (!running) { running = true; waker = new Waker(); waker.start(); } } }
public void start() { synchronized (queueLock) { if (!running) { running = true; waker = new Waker(); waker.start();
36,236
public void stop() { synchronized (queueLock) { running = false; queue = 0; queueLock.notifyAll(); waker = null; } }
public void stop() { Task t = task; if (t != null) { running = false; queue = 0; queueLock.notifyAll(); waker = null; } }
36,237
public void stop() { synchronized (queueLock) { running = false; queue = 0; queueLock.notifyAll(); waker = null; } }
public void stop() { synchronized (queueLock) { running = false; queue = 0; queueLock.notifyAll(); waker = null; } }
36,238
public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); if (box == null) { return null; ...
public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); if (box == null) { return null; ...
36,239
public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); if (box == null) { return null; ...
public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); if (box == null) { return null; ...
36,240
public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); if (box == null) { return null; ...
public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); if (box == null) { return null; ...
36,241
public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if(box == null) { return null; } int dx = 0; ...
public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if(box == null) { return null; } int dx = 0; ...
36,242
public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if(box == null) { return null; } int dx = 0; ...
public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if(box == null) { return null; } int dx = 0; ...
36,243
public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if(box == null) { return null; } int dx = 0; ...
public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if(box == null) { return null; } int dx = 0; ...
36,244
public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if(box == null) { return null; } int dx = 0; ...
public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if(box == null) { return null; } int dx = 0; ...
36,245
public Cell addCell(Node node, int x, int y) throws Exception { //u.p("addCell("+node+","+x+","+y+")"); if(node.getNodeType() != node.ELEMENT_NODE) { throw new Exception("this isn't an element" + node); } Element cell = (Element)node; Cell cl = new Cell(); cl.nod...
public Cell addCell(Node node, int x, int y) { //u.p("addCell("+node+","+x+","+y+")"); if(node.getNodeType() != node.ELEMENT_NODE) { throw new Exception("this isn't an element" + node); } Element cell = (Element)node; Cell cl = new Cell(); cl.node = node; ...
36,246
public Cell addCell(Node node, int x, int y) throws Exception { //u.p("addCell("+node+","+x+","+y+")"); if(node.getNodeType() != node.ELEMENT_NODE) { throw new Exception("this isn't an element" + node); } Element cell = (Element)node; Cell cl = new Cell(); cl.nod...
public Cell addCell(Node node, int x, int y) throws Exception { //u.p("addCell("+node+","+x+","+y+")"); if(node.getNodeType() != node.ELEMENT_NODE) { throw new Error("this isn't an element" + node); } Element cell = (Element)node; Cell cl = new Cell(); cl.node = ...
36,247
public void addFirstRow(Node row) throws Exception { addRow(row,true, 0); }
public void addFirstRow(Node row) { addRow(row,true, 0); }
36,248
public void addRow(Node row, int y) throws Exception { addRow(row,false, y); }
public void addRow(Node row, int y) { addRow(row,false, y); }
36,249
public Cell addTopCell(Node node, int x, int y) throws Exception { Cell cl = addCell(node, x, y); top_cells.add(cl); return cl; }
public Cell addTopCell(Node node, int x, int y) { Cell cl = addCell(node, x, y); top_cells.add(cl); return cl; }
36,250
public void dispatch() { if (catchExceptions) try { runnable.run(); } catch (Exception e) { exception = e; } else runnable.run(); if (notifier != null) notifier.notifyAll(); }
public void dispatch() { if (catchExceptions) try { runnable.run(); } catch (Exception e) { exception = e; } else runnable.run(); if (notifier != null) notifier.notifyAll(); }
36,251
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); list.setPreferredSize(...
public void show() { Rectangle cbBounds = comboBox.getBounds(); // popup should have same width as the comboBox and should be hight anough // to display number of rows equal to 'maximumRowCount' property int popupHeight = getPopupHeightForRowCount(comboBox.getMaximumRowCount()); list.setPreferredSize(...
36,252
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LATIN ||...
36,253
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase(); } else if (listStyle == IdentValue.UPPER_LATIN || ...
36,254
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
36,255
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
36,256
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
36,257
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
36,258
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
private MarkerData.TextMarker makeTextMarker(LayoutContext c, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(getListCounter()).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LAT...
36,259
public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { jndiName = destinationJNDIMapper.registerDestination(isQueue, name, jndiName); if (securityConfiguration == null) { // rel...
public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { jndiName = destinationJNDIMapper.registerDestination(isQueue, name, jndiName); if (securityConfiguration != null) { // rel...
36,260
public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { jndiName = destinationJNDIMapper.registerDestination(isQueue, name, jndiName); if (securityConfiguration == null) { // rel...
public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { jndiName = destinationJNDIMapper.registerDestination(isQueue, name, jndiName); if (securityConfiguration == null) { // rel...
36,261
public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { jndiName = destinationJNDIMapper.registerDestination(isQueue, name, jndiName); if (securityConfiguration == null) { // rel...
public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { jndiName = destinationJNDIMapper.registerDestination(isQueue, name, jndiName); if (securityConfiguration == null) { // rel...
36,262
public void setSecurityConfiguration(boolean isQueue, String name, Element securityConfig) throws JMSException { sm.setSecurityConfig(name, securityConfig); }
public void setSecurityConfiguration(boolean isQueue, String name, Element securityConfig) throws JMSException { sm.setSecurityConfig(isQueue, name, securityConfig); }
36,263
public void unregisterDestination(boolean isQueue, String name) throws JMSException { destinationJNDIMapper.unregisterDestination(isQueue, name); sm.clearSecurityConfig(name); }
public void unregisterDestination(boolean isQueue, String name) throws JMSException { destinationJNDIMapper.unregisterDestination(isQueue, name); sm.clearSecurityConfig(isQueue, name); }
36,264
public void testCannotReceiveMessageOnStoppedConnection() throws Exception { TopicConnection conn1 = ((TopicConnectionFactory)cf).createTopicConnection(); TopicConnection conn2 = ((TopicConnectionFactory)cf).createTopicConnection(); TopicSession sess1 = conn1.createTopicSession(false, Session....
public void testCannotReceiveMessageOnStoppedConnection() throws Exception { TopicConnection conn1 = ((TopicConnectionFactory)cf).createTopicConnection(); TopicConnection conn2 = ((TopicConnectionFactory)cf).createTopicConnection(); TopicSession sess1 = conn1.createTopicSession(false, Session....
36,265
public void testCannotReceiveMessageOnStoppedConnection() throws Exception { TopicConnection conn1 = ((TopicConnectionFactory)cf).createTopicConnection(); TopicConnection conn2 = ((TopicConnectionFactory)cf).createTopicConnection(); TopicSession sess1 = conn1.createTopicSession(false, Session....
public void testCannotReceiveMessageOnStoppedConnection() throws Exception { TopicConnection conn1 = ((TopicConnectionFactory)cf).createTopicConnection(); TopicConnection conn2 = ((TopicConnectionFactory)cf).createTopicConnection(); TopicSession sess1 = conn1.createTopicSession(false, Session....
36,266
public void setUp() throws Exception { super.setUp(); pm = new HSQLDBPersistenceManager(); ms = new PersistentMessageStore("persistent-message-store", pm); tr.setPersistenceManager(pm); channel = new DurableSubscription("testDurableSubscription", null, null, ms, pm); log.debug("setup ...
public void setUp() throws Exception { super.setUp(); pm = new HSQLDBPersistenceManager(); ms = new PersistentMessageStore("persistent-message-store", pm); tr.setPersistenceManager(pm); channel = new DurableSubscription("clientid123", "testDurableSubscription", null, null, ms, pm); lo...
36,269
public void actionPerformed(ActionEvent ae) { long now = System.currentTimeMillis(); if ( first ) { if (( now - timestamp ) > millisToDecideToPopup ) { first = false; long expected = ( now - timestamp ) * ( max - min ) / ( progress - min ); if ( exp...
public void actionPerformed(ActionEvent ae) { long now = System.currentTimeMillis(); if ( first ) { if (( now - timestamp ) > millisToDecideToPopup ) { first = false; long expected = ( progress - min == 0 ) ? ( now - timestamp ) * ( max - min ) : ( now - time...
36,270
public static void paintChild(Context c, Box box) { if (box.isChildrenExceedBounds()) { BoxRendering.paint(c, box); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false)) { if (c.getGraphics().getClip() != null) { Rectangle2D o...
public static void paintChild(Context c, Box box) { if (box.isChildrenExceedBounds()) { BoxRendering.paint(c, box, false); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false)) { if (c.getGraphics().getClip() != null) { Rectan...
36,271
public ObjectName getChannelMapperObjectName() throws Exception;
ObjectName getChannelMapperObjectName() throws Exception;
36,272
public ObjectName getServerPeerObjectName() throws Exception;
ObjectName getServerPeerObjectName() throws Exception;
36,273
public void findDevices(DeviceManager devMan, Bus bus) throws DeviceException { try { log.debug("Searching for PS2 devices"); final PS2Bus ps2 = new PS2Bus(bus); // register the keyboard device PS2Device kbDev = new PS2Device(ps2, PS2_KEYBOARD_DEV); kbDev.setDriver(new PS2KeyboardDriver(ps2)); devMan.regi...
public void findDevices(DeviceManager devMan, Bus bus) throws DeviceException { try { log.debug("Searching for PS2 devices"); final PS2Bus ps2 = new PS2Bus(bus); // register the keyboard device PS2Device kbDev = new PS2Device(ps2, PS2_KEYBOARD_DEV); kbDev.setDriver(new PS2KeyboardDriver(ps2)); devMan.regi...
36,274
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != WorkflowEntry.ACTIVATED) { return; } WorkflowDescriptor wf = getConfiguration()....
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry.getState() != WorkflowEntry.ACTIVATED) { return; } WorkflowDescriptor wf = getConfiguration()....
36,275
public void executeTriggerFunction(long id, int triggerId) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry == null) { log.warn("Cannot execute trigger #" + triggerId + " on non-existent workflow id#" + id); ...
public void executeTriggerFunction(long id, int triggerId) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry == null) { log.warn("Cannot execute trigger #" + triggerId + " on non-existent workflow id#" + id); ...
36,276
protected int[] getAvailableAutoActions(long id, Map inputs) { try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry == null) { throw new IllegalArgumentException("No such workflow id " + id); } ...
protected int[] getAvailableAutoActions(long id, Map inputs) { try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); if (entry == null) { throw new IllegalArgumentException("No such workflow id " + id); } ...
36,277
public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, WorkflowException { WorkflowDescriptor wf = getConfiguration().getWorkflow(workflowName); WorkflowStore store = getPersistence(); WorkflowEntry entry = store.createEntr...
public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, WorkflowException { WorkflowDescriptor wf = getConfiguration().getWorkflow(workflowName); WorkflowStore store = getPersistence(); WorkflowEntry entry = store.createEntr...
36,278
protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi...
protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps, PropertySet ps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()...
36,279
protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi...
protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi...
36,280
public MessageConsumer createConsumer(Destination d) throws JMSException { if (d == null) { throw new InvalidDestinationException("Cannot create a consumer with a null destination"); } ConsumerDelegate consumerDelegate = sessionDelegate.createConsumerDelegate(d, null, false, null); ...
public MessageConsumer createConsumer(Destination d) throws JMSException { if (d == null) { throw new InvalidDestinationException("Cannot create a consumer with a null destination"); } ConsumerDelegate consumerDelegate = sessionDelegate.createConsumerDelegate(d, null, false, null, fa...
36,282
public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_QUEUE_SESSION) { throw new IllegalStateException("Cannot create a durable subscriber on a QueueSession"); } if (topic == null) { ...
public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_QUEUE_SESSION) { throw new IllegalStateException("Cannot create a durable subscriber on a QueueSession"); } if (topic == null) { ...
36,283
public void installDefaults(AbstractButton b) { super.installDefaults(b); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); disabledTextColor = defaults.getColor("RadioButton.disabledText"); focusColor = defaults.getColor("RadioButton.focus"); selectColor = defaults.getColor("RadioButton.selec...
public void installDefaults(AbstractButton b) { super.installDefaults(b); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); disabledTextColor = defaults.getColor("RadioButton.disabledText"); focusColor = defaults.getColor("RadioButton.focus"); selectColor = defaults.getColor("RadioButton.selec...
36,284
protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(focusColor); // minus 2 because of line thickness. Prevents border // from being cutoff. g.drawRect(t.x, t.y, t.width - 2, t.height - 2); }
protected void paintFocus(Graphics g, Rectangle t, Dimension d) { g.setColor(focusColor); // minus 2 because of line thickness. Prevents border // from being cutoff. g.drawRect(t.x - 1, t.y + 2, t.width + 2, t.height - 4); }
36,285
public Set browse() { // TODO Very inefficient implementation, change it Set messageIDs = getUndelivered(); Set s = new HashSet(); for(Iterator i = messageIDs.iterator(); i.hasNext(); ) { Routable r = (Routable)messages.get(i.next()); if (r != null) { s.a...
public Set browse() { // TODO Very inefficient implementation, change it Set messageIDs = getUndelivered(); Set s = new HashSet(); for(Iterator i = messageIDs.iterator(); i.hasNext(); ) { Routable r = (Routable)messages.get(i.next()); if (r != null) { s.a...
36,286
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList attributs...
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); NodeList attributs...
36,287
public synchronized void addContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.add(containerListener, l); }
public synchronized void addContainerListener(ContainerListener listener) { containerListener = AWTEventMulticaster.add(containerListener, l); }
36,290
public synchronized void addContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.add(containerListener, l); }
public synchronized void addContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.add(containerListener, listener); }
36,291
public synchronized void removeContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.remove(containerListener, l); }
public synchronized void removeContainerListener(ContainerListener listener) { containerListener = AWTEventMulticaster.remove(containerListener, l); }
36,292
public synchronized void removeContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.remove(containerListener, l); }
public synchronized void removeContainerListener(ContainerListener l) { containerListener = AWTEventMulticaster.remove(containerListener, listener); }
36,293
protected void init(Element function) { type = function.getAttribute("type"); String n = function.getAttribute("negate"); boolean negate; if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = function.getElement...
protected void init(Element function) { type = function.getAttribute("type"); String n = function.getAttribute("negate"); boolean negate; if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = function.getElement...
36,294
protected void init(Element function) { type = function.getAttribute("type"); String n = function.getAttribute("negate"); boolean negate; if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = function.getElement...
protected void init(Element function) { type = function.getAttribute("type"); String n = function.getAttribute("negate"); boolean negate; if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = function.getElement...
36,295
public void testTwoStoresSameDatabase() throws Exception { Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); assertEquals(0, ((JDBCPersistenceManager)pm).getMessageReferenceCount(m.getMessageID())); MessageReference ref = ms.reference(m); log.debug("...
public void testTwoStoresSameDatabase() throws Exception { Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); assertEquals(0, ((JDBCPersistenceManager)pm).getMessageReferenceCount(m.getMessageID())); MessageReference ref = ms.reference(m); log.debug("...
36,296
public void testTwoStoresSameDatabase() throws Exception { Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); assertEquals(0, ((JDBCPersistenceManager)pm).getMessageReferenceCount(m.getMessageID())); MessageReference ref = ms.reference(m); log.debug("...
public void testTwoStoresSameDatabase() throws Exception { Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); assertEquals(0, ((JDBCPersistenceManager)pm).getMessageReferenceCount(m.getMessageID())); MessageReference ref = ms.reference(m); log.debug("...
36,297
public void testTwoStoresSameDatabase() throws Exception { Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); assertEquals(0, ((JDBCPersistenceManager)pm).getMessageReferenceCount(m.getMessageID())); MessageReference ref = ms.reference(m); log.debug("...
public void testTwoStoresSameDatabase() throws Exception { Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); assertEquals(0, ((JDBCPersistenceManager)pm).getMessageReferenceCount(m.getMessageID())); MessageReference ref = ms.reference(m); log.debug("...
36,298
private void layoutAbsoluteChild(LayoutContext c, Layer child) { BlockBox master = (BlockBox)child.getMaster(); if (child.getMaster().getStyle().isBottomAuto()) { // Set top, left master.positionAbsolute(c); master.positionAbsoluteOnPage(c); c.reInit(child.g...
private void layoutAbsoluteChild(LayoutContext c, Layer child) { BlockBox master = (BlockBox)child.getMaster(); if (child.getMaster().getStyle().isBottomAuto()) { // Set top, left master.positionAbsolute(c, BlockBox.POSITION_BOTH); master.positionAbsoluteOnPage(c); ...
36,299
private void layoutAbsoluteChild(LayoutContext c, Layer child) { BlockBox master = (BlockBox)child.getMaster(); if (child.getMaster().getStyle().isBottomAuto()) { // Set top, left master.positionAbsolute(c); master.positionAbsoluteOnPage(c); c.reInit(child.g...
private void layoutAbsoluteChild(LayoutContext c, Layer child) { BlockBox master = (BlockBox)child.getMaster(); if (child.getMaster().getStyle().isBottomAuto()) { // Set top, left master.positionAbsolute(c); master.positionAbsoluteOnPage(c); c.reInit(child.g...
36,300
private void layoutAlternateFlowChild(LayoutContext c, Layer child) { BlockBox master = (BlockBox)child.getMaster(); // Set top, left master.positionAbsolute(c); c.reInit(child.getLayoutData().getParentStyle()); c.setExtents(child.getMaster().getContainingBlock().getPaddingEdge(0,...
private void layoutAlternateFlowChild(LayoutContext c, Layer child) { BlockBox master = (BlockBox)child.getMaster(); // Set top, left master.positionAbsolute(c, BlockBox.POSITION_BOTH); c.reInit(child.getLayoutData().getParentStyle()); c.setExtents(child.getMaster().getContainingB...
36,301
private void position(LayoutContext c) { if (getMaster().getStyle().isAbsolute() && ! c.isPrint()) { ((BlockBox)getMaster()).positionAbsolute(c); } else if (getMaster().getStyle().isRelative() && isInline()) { getMaster().positionRelative(c); } }
private void position(LayoutContext c) { if (getMaster().getStyle().isAbsolute() && ! c.isPrint()) { ((BlockBox)getMaster()).positionAbsolute(c, BlockBox.POSITION_BOTH); } else if (getMaster().getStyle().isRelative() && isInline()) { getMaster().positionRelative(c); } }
36,302
private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = 0; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ...
private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = 0; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ...
36,303
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode) { // create the dynamic proxy that implements SessionDelegate SessionDelegate sd = null; Serializable oid = serverPeer.getSessionAdvisor().getName(); String stackName = "SessionStack"; AdviceStack stac...
public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode) { // create the dynamic proxy that implements SessionDelegate SessionDelegate sd = null; Serializable oid = serverPeer.getSessionAdvisor().getName(); String stackName = "SessionStack"; AdviceStack stac...
36,304
public static String elementToString(Node n) throws XMLException { String name = n.getNodeName(); if (name.startsWith("#")) { return ""; } StringBuffer sb = new StringBuffer(); sb.append('<').append(name); NamedNodeMap attrs = n.getAttributes(); if (attrs != null) ...
public static String elementToString(Node n) throws XMLException { String name = n.getNodeName(); if (name.startsWith("#")) { return ""; } StringBuffer sb = new StringBuffer(); sb.append('<').append(name); NamedNodeMap attrs = n.getAttributes(); if (attrs != null) ...
36,305
public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ...
public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ...
36,307
public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ...
public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ...
36,308
public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ...
public static String getTextContent(Node n) throws XMLException { if (n.hasChildNodes()) { StringBuffer sb = new StringBuffer(); NodeList nl = n.getChildNodes(); for(int i = 0; i < nl.getLength(); i++) { sb.append(XMLUtil.elementToString(nl.item(i))); ...
36,309
protected String paramString() { return "JProgressBar"; }
protected String paramString() { String superParamStr = super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(",orientation="); if (orientation == HORIZONTAL) sb.append("HORIZONTAL"); else sb.append("VERTICAL"); sb.append(",paintBorder=").append(isBorderPainted()); sb.append(",paintString=").append...
36,311
public static String getClassAnnotation (Class cl) { ClassLoader loader = cl.getClassLoader(); if (loader == null || loader == ClassLoader.getSystemClassLoader()) { return System.getProperty ("java.rmi.server.codebase"); } if (loader instanceof MyClassLoader) { return...
public static String getClassAnnotation (Class cl) { ClassLoader loader = cl.getClassLoader(); if (loader == null || loader == ClassLoader.getSystemClassLoader()) { return System.getProperty ("java.rmi.server.codebase"); } if (loader instanceof MyClassLoader) { return...
36,312
public static String getClassAnnotation (Class cl) { ClassLoader loader = cl.getClassLoader(); if (loader == null || loader == ClassLoader.getSystemClassLoader()) { return System.getProperty ("java.rmi.server.codebase"); } if (loader instanceof MyClassLoader) { return...
public static String getClassAnnotation (Class cl) { ClassLoader loader = cl.getClassLoader(); if (loader == null || loader == ClassLoader.getSystemClassLoader()) { return System.getProperty ("java.rmi.server.codebase"); } if (loader instanceof MyClassLoader) { return...
36,313
public static ClassLoader getClassLoader (String codebases) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ...
public static ClassLoader getClassLoader(String codebase) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ...
36,314
public static ClassLoader getClassLoader (String codebases) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ...
public static ClassLoader getClassLoader (String codebases) throws MalformedURLException { ClassLoader loader; CacheKey loaderKey = new CacheKey (codebases, Thread.currentThread().getContextClassLoader()); loader = (ClassLoader) cacheLoaders.get (loaderKey); if (loader == null) { ...
36,315
private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;...
private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;...
36,317
private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;...
private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;...
36,318