bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void testRecoverableState_69() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", true, "payload0")); Delivery d = new SimpleDelivery(channel,...
public void testRecoverableState_69() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", true, "payload0")); Delivery d = new SimpleDelivery(channel,...
50,046
public void testRecoverableState_70() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; Delivery[] deliveries = new Delivery[NUMBER_OF_MESSAGES]; for(in...
public void testRecoverableState_70() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; Delivery[] deliveries = new Delivery[NUMBER_OF_MESSAGES]; for(in...
50,047
public void testRecoverableState_remove_10() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.createMessa...
public void testRecoverableState_remove_10() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.createMessa...
50,048
public void testRecoverableState_remove_10_mixed() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.creat...
public void testRecoverableState_remove_10_mixed() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.creat...
50,049
public void testRecoverableState_remove_7() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", false, "payload0")); state.add(ref); MessageRefer...
public void testRecoverableState_remove_7() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", false, "payload0")); state.addReference(ref); Mes...
50,050
public void testRecoverableState_remove_8() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.createMessag...
public void testRecoverableState_remove_8() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } for(int i = 0; i < NUMBER_OF_MESSAGES; i++) { MessageReference ref = ms.reference(MessageFactory.createMessag...
50,051
public void testRecoverableState_remove_9() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", true, "payload0")); state.add(ref); MessageRefere...
public void testRecoverableState_remove_9() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", true, "payload0")); state.addReference(ref); Mess...
50,052
public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu...
public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu...
50,054
public static Socket get_socket(Object key) { if (true) return null; synchronized (sockets) { Socket s = (Socket) sockets.get(key); if (s == null) return null; // Ensure that the socket is fully reusable. else if (not_reusable(s)) { sockets.remove(key); ret...
public static Socket get_socket(Object key) { if (true) return null; synchronized (sockets) { Socket s = (Socket) sockets.get(key); if (s == null) return null; // Ensure that the socket is fully reusable. else if (not_reusable(s)) { sockets.remove(key); ret...
50,055
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } Border border = c.getCurrentStyle().getBorderWidth(); if (border == null) return; Border ...
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } Border border = c.getCurrentStyle().getBorderWidth(); if (border == null) return; Border ...
50,056
EntryInputStream(final ZipEntry entry, final InputStream in, final JarFile jar) throws IOException { super(in); this.entry = entry; this.jarfile = jar; length = entry.getSize(); pos = 0; checked = false; Attributes attr; Manifest manifest = jarfile.getMani...
EntryInputStream(final ZipEntry entry, final InputStream in, final JarFile jar) throws IOException { super(in); this.entry = entry; this.jarfile = jar; length = entry.getSize(); pos = 0; checked = false; Attributes attr; Manifest manifest = jarfile.getMani...
50,058
private boolean verifyHashes(String entry, Attributes attr) { int verified = 0; // The bytes for ENTRY's manifest entry, which are signed in the // signature file. byte[] entryBytes = null; try { ZipEntry e = super.getEntry(entry); if (e == null) { if (DEBUG) debug("verifyHashes: no e...
private boolean verifyHashes(String entry, Attributes attr) { int verified = 0; // The bytes for ENTRY's manifest entry, which are signed in the // signature file. byte[] entryBytes = null; try { ZipEntry e = super.getEntry(entry); if (e == null) { if (DEBUG) debug("verifyHashes: no e...
50,059
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note that all implementation class...
50,060
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,061
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,062
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,063
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,064
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,065
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,066
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,067
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,068
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,069
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,070
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,071
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,072
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,073
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement and key pair generator"); AccessController.doPrivileged (new PrivilegedAction() { public Object run(...
50,074
private Object lookup(String location) { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return context.lookup("java:comp...
private Object lookup(String location) throws NamingException { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return co...
50,075
private Object lookup(String location) { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return context.lookup("java:comp...
private Object lookup(String location) { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return context.lookup("java:comp...
50,076
private Object lookup(String location) { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return context.lookup("java:comp...
private Object lookup(String location) { try { InitialContext context = new InitialContext(); try { return context.lookup(location); } catch (NamingException e) { //ok, couldn't find it, look in env return context.lookup("java:comp...
50,077
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "UPDATE " + currentTable + " SET " + stepStatus + " = ...
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "UPDATE " + currentTable + " SET " + stepStatus + " = ...
50,078
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme && UIManager.get(getPropertyPrefix() + "gradient") != null && ! b.getModel().isPressed() && ! b.getModel().isArmed()...
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme && UIManager.get(getPropertyPrefix() + "gradient") != null && ! b.getModel().isPressed() && ! b.getModel().isArmed()...
50,079
public static ComponentUI createUI(final JComponent c) { return new BasicButtonUI(); }
public static ComponentUI createUI(final JComponent c) { return new BasicButtonUI(); }
50,080
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
50,081
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
50,082
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
public void setUp() throws Exception { super.setUp(); // FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indeterministic results tl = new JDBCPersistenceManager(sc.getDataSourc...
50,083
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; Rectangle d1 = (Rectangle) dirtyComponents.get(c1); JComponent c2 = (JComponent) o2; Rectangle d2 = (Rectangle) dirtyComponents.g...
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; Rectangle d1 = (Rectangle) dirtyComponentsWork.get(c1); JComponent c2 = (JComponent) o2; Rectangle d2 = (Rectangle) dirtyComponen...
50,084
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; Rectangle d1 = (Rectangle) dirtyComponents.get(c1); JComponent c2 = (JComponent) o2; Rectangle d2 = (Rectangle) dirtyComponents.g...
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; Rectangle d1 = (Rectangle) dirtyComponents.get(c1); JComponent c2 = (JComponent) o2; Rectangle d2 = (Rectangle) dirtyComponentsWo...
50,085
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
50,087
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
50,088
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
50,089
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { // We sort the components by their size here. This way we have a good // chance that painting the bigger components also paint...
50,090
public void run() { try { int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); if (m != null) { ...
public void run() { try { int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); if (m != null) { ...
50,091
public ReceiverJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart, int ackMode, String subName, String selector, boole...
public ReceiverJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, int ackMode, String subName, String selector, boolean noLocal, boolea...
50,092
public ReceiverJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart, int ackMode, String subName, String selector, boole...
public ReceiverJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages, long timeToStart, int ackMode, String subName, String selector, boole...
50,093
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
50,094
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
50,095
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
public void setUp() throws Exception { sc = new ServiceContainer("all,-remoting,-security"); sc.start(); super.setUp(); //FIXME - Why are we starting more than one persistence manager using the same datasource?? //They will pointing at the same set of db tables thus giving indetermin...
50,096
protected void installDefaults() { // FIXME: move icons to defaults. UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("InternalFrame.titleFont")); activeFGColor = defaults.getColor("InternalFrame.activeTitleForeground"); activeBGColor = defaults.getColor("InternalFram...
protected void installDefaults() { // FIXME: move icons to defaults. UIDefaults defaults = UIManager.getLookAndFeelDefaults(); setFont(defaults.getFont("InternalFrame.titleFont")); activeFGColor = defaults.getColor("InternalFrame.activeTitleForeground"); activeBGColor = defaults.getColor("InternalFram...
50,097
public void paintComponent(Graphics g) { paintTitleBackground(g); Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); if (frame.getTitle() != null && title != null) { Color saved = g.getColor(); if (frame.isSelected()) g.setColor(activeFGColor); else g.setColor(inactiveFGColor); title.se...
public void paintComponent(Graphics g) { paintTitleBackground(g); Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); if (frame.getTitle() != null && title != null) { Color saved = g.getColor(); if (frame.isSelected()) g.setColor(activeFGColor); else g.setColor(inactiveFGColor); title.se...
50,098
public void paintComponent(Graphics g) { paintTitleBackground(g); Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); if (frame.getTitle() != null && title != null) { Color saved = g.getColor(); if (frame.isSelected()) g.setColor(activeFGColor); else g.setColor(inactiveFGColor); title.se...
public void paintComponent(Graphics g) { paintTitleBackground(g); Font f = g.getFont(); FontMetrics fm = g.getFontMetrics(f); if (frame.getTitle() != null && title != null) { Color saved = g.getColor(); if (frame.isSelected()) g.setColor(activeFGColor); else g.setColor(inactiveFGColor); title.se...
50,099
protected void paintTitleBackground(Graphics g) { Color saved = g.getColor(); Dimension dims = getSize(); Color bg = getBackground(); if (frame.isSelected()) bg = activeBGColor; else bg = inactiveBGColor; g.setColor(bg); g.fillRect(0, 0, dims.width, dims.height); g.setColor(saved); ...
protected void paintTitleBackground(Graphics g) { Color saved = g.getColor(); Dimension dims = getSize(); Color bg = getBackground(); if (frame.isSelected()) bg = selectedTitleColor; else bg = inactiveBGColor; g.setColor(bg); g.fillRect(0, 0, dims.width, dims.height); g.setColor(sav...
50,100
protected void paintTitleBackground(Graphics g) { Color saved = g.getColor(); Dimension dims = getSize(); Color bg = getBackground(); if (frame.isSelected()) bg = activeBGColor; else bg = inactiveBGColor; g.setColor(bg); g.fillRect(0, 0, dims.width, dims.height); g.setColor(saved); ...
protected void paintTitleBackground(Graphics g) { Color saved = g.getColor(); Dimension dims = getSize(); Color bg = getBackground(); if (frame.isSelected()) bg = activeBGColor; else bg = notSelectedTitleColor; g.setColor(bg); g.fillRect(0, 0, dims.width, dims.height); g.setColor(sa...
50,101
protected void uninstallDefaults() { setFont(null); activeFGColor = null; activeBGColor = null; inactiveFGColor = null; inactiveBGColor = null; }
protected void uninstallDefaults() { setFont(null); activeFGColor = null; activeBGColor = null; inactiveFGColor = null; inactiveBGColor = null; }
50,103
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password);...
50,104
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
50,105
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
public ConnectionDelegate createConnectionDelegate(String username, String password) throws JMSException { log.debug("Creating a new connection with username=" + username); //authenticate the user serverPeer.getSecurityManager().authenticate(username, password); //See if there is...
50,106
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
50,107
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
50,108
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
public void scale(int width, int height) { int targetWidth = width; int targetHeight = height; if (targetWidth == -1) { targetWidth = getWidth() * (targetHeight / getHeight()); } if (targetHeight == -1) { targetHeight = getHeight() * (targetWi...
50,109
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); localServer.setAttribute(ServiceContainer.REMOTING_OBJECT_NAME, "LeasePeriod", "30000"); ...
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all", true); localServer.setAttribute(ServiceContainer.REMOTING_OBJECT_NAME, "LeasePeriod", "30000"); ...
50,110
public void startRepaintLoop() { //Uu.sleep(2000); while (true) { //Uu.sleep(1000); // wait for a repaint event ReflowEvent evt = root.queue.waitForNextRepaintEvent(); if (evt == null) {// we're being shutdown return; } /...
public void startRepaintLoop() { //Uu.sleep(2000); while (true) { //Uu.sleep(1000); // wait for a repaint event ReflowEvent evt = root.queue.waitForNextRepaintEvent(); if (evt == null) {// we're being shutdown return; } /...
50,111
public void startRepaintLoop() { //Uu.sleep(2000); while (true) { //Uu.sleep(1000); // wait for a repaint event ReflowEvent evt = root.queue.waitForNextRepaintEvent(); if (evt == null) {// we're being shutdown return; } /...
Uu.p("got a repaint event: " + evt); Uu.p("got a repaint event: " + evt); Uu.p("got a repaint event: " + evt); Uu.p("got a repaint event: " + evt); publicUu.p("got a repaint event: " + evt); voidUu.p("got a repaint event: " + evt); startRepaintLoop()Uu.p("got a repaint event: " + evt); {Uu.p("got a repaint event: " + e...
50,112
public void testChannelShareNP_2PC() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; ...
public void testChannelShareNP_2PC() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; ...
50,113
public void commit(Xid xid, boolean onePhase) throws XAException { if (trace) { log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); } rm.commit(xid, onePhase, connection); }
public void commit(Xid xid, boolean onePhase) throws XAException { if (trace) { log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); } rm.commit(xid, onePhase, connection); }
50,114
public void start(Xid xid, int flags) throws XAException { if (trace) { log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); } boolean convertTx = false; if (sessionState.getCurrentTxId() != null) { if (flags == TMNOFLAGS && sessionState.getCurrentTxI...
public void start(Xid xid, int flags) throws XAException { if (trace) { log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); } boolean convertTx = false; if (sessionState.getCurrentTxId() != null) { if (flags == TMNOFLAGS && sessionState.getCurrentTxId() in...
50,115
public void assignPagePaintingPositions(CssContext cssCtx, int additionalClearance) { List pages = getPages(); int paintingTop = additionalClearance; for (Iterator i = pages.iterator(); i.hasNext(); ) { PageBox page = (PageBox)i.next(); page.setPaintingTop(paintingTop); ...
public void assignPagePaintingPositions(CssContext cssCtx, int additionalClearance) { List pages = getPages(); int paintingTop = additionalClearance; for (Iterator i = pages.iterator(); i.hasNext(); ) { PageBox page = (PageBox)i.next(); page.setPaintingTop(paintingTop); ...
50,116
public InlineBox() { }
public InlineBox() { }
50,117
protected AccessibleJSeparator(JSeparator component) { super(component); // TODO } // AccessibleJSeparator()
protected AccessibleJSeparator(JSeparator component) { super(component); // TODO } // AccessibleJSeparator()
50,118
public AccessibleRole getAccessibleRole() { return AccessibleRole.SEPARATOR; } // getAccessibleRole()
public AccessibleRole getAccessibleRole() { return AccessibleRole.SEPARATOR; } // getAccessibleRole()
50,119
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJSeparator(this); } // if return accessibleContext; } // getAccessibleContext()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJSeparator(this); } // if return accessibleContext; } // getAccessibleContext()
50,120
public int getOrientation() { return orientation; } // getOrientation()
public int getOrientation() { return orientation; } // getOrientation()
50,121
public SeparatorUI getUI() { return (SeparatorUI) ui; } // getUI()
public SeparatorUI getUI() { return (SeparatorUI) ui; } // getUI()
50,122
public String getUIClassID() { return uiClassID; } // getUIClassID()
public String getUIClassID() { return uiClassID; } // getUIClassID()
50,123
public boolean isFocusTraversable() { return false; } // isFocusTraversable()
public boolean isFocusTraversable() { return false; } // isFocusTraversable()
50,124
protected String paramString() { return null; // TODO } // paramString()
protected String paramString() { return null; // TODO } // paramString()
50,125
public void setOrientation(int orientation) { this.orientation = orientation; // TODO } // setOrientation()
public void setOrientation(int orientation) { this.orientation = orientation; // TODO } // setOrientation()
50,126
public void setUI(SeparatorUI ui) { super.setUI(ui); } // setUI()
public void setUI(SeparatorUI ui) { super.setUI(ui); } // setUI()
50,127
public void updateUI() { setUI((SeparatorUI) UIManager.get(this)); invalidate(); } // updateUI()
public void updateUI() { setUI((SeparatorUI) UIManager.get(this)); invalidate(); } // updateUI()
50,128
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); }
public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); }
50,129
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
50,130
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
50,131
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
50,132
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
if (trace) { log.trace("Session is not transacted (or XA with no tx set), retrieving deliveries from session state"); } if (trace) { log.trace("Session is not transacted (or XA with no tx set), retrieving deliveries from session state"); } if (trace) { log.trace("Session is not transacted (or XA with no tx ...
50,133
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
50,134
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
50,135
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
50,136
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
private void performClientSideFailover(ClientConnectionDelegate failedConnDelegate, ClientConnectionDelegate newConnDelegate) throws Exception { log.debug(this + " performing client side failover"); ConnectionState failedState = (ConnectionState)failedConnDelegate...
50,137
public PolicyFile() { cs2pc = new HashMap(); refresh(); }
public PolicyFile() { cs2pc = new HashMap(); refresh(); }
50,139
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
50,140
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
50,141
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
50,142
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
50,143
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
public void refresh() { cs2pc.clear(); final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ()); AccessController.doPrivileged( new PrivilegedExceptionAction() ...
50,144
protected void installKeyboardActions(JSlider slider) throws NotImplementedException { // FIXME: implement. }
protected void installKeyboardActions(JSlider slider) { // FIXME: implement. }
50,145
protected void installKeyboardActions(JSlider slider) throws NotImplementedException { // FIXME: implement. }
InputMap keyMap = getInputMap(JComponent.WHEN_FOCUSED); SwingUtilities.replaceUIInputMap(slider, JComponent.WHEN_FOCUSED, keyMap); ActionMap map = getActionMap(); SwingUtilities.replaceUIActionMap(slider, map); InputMap keyMap = getInputMap(JComponent.WHEN_FOCUSED); SwingUtilities.replaceUIInputMap(slider, JComponent.W...
50,146
public void scrollByBlock(int direction) { // The direction is -1 for backwards and 1 for forwards. int unit = direction * (slider.getMaximum() - slider.getMinimum()) / 10; int moveTo = slider.getValue() + unit; if (slider.getSnapToTicks()) moveTo = findClosestTick(moveTo); slider.setValue(moveTo...
public void scrollByBlock(int direction) { // The direction is -1 for backwards and 1 for forwards. int unit = direction * (slider.getMaximum() - slider.getMinimum()) / 10; int moveTo = slider.getValue() + unit; if (slider.getSnapToTicks()) moveTo = findClosestTick(moveTo); slider.setValue(moveTo...
50,147
public void scrollByUnit(int direction) { // The direction is -1 for backwards and 1 for forwards. int moveTo = slider.getValue() + direction; if (slider.getSnapToTicks()) moveTo = findClosestTick(moveTo); slider.setValue(moveTo); }
public void scrollByUnit(int direction) { // The direction is -1 for backwards and 1 for forwards. int moveTo = slider.getValue(); if (direction > 0) moveTo++; else moveTo--; if (slider.getSnapToTicks()) moveTo = findClosestTick(moveTo); slider.setValue(moveTo); }
50,148
protected void uninstallKeyboardActions(JSlider slider) throws NotImplementedException { // FIXME: implement. }
protected void uninstallKeyboardActions(JSlider slider) { // FIXME: implement. }
50,149
protected void uninstallKeyboardActions(JSlider slider) throws NotImplementedException { // FIXME: implement. }
SwingUtilities.replaceUIActionMap(slider, null); SwingUtilities.replaceUIInputMap(slider, JComponent.WHEN_FOCUSED, null); SwingUtilities.replaceUIActionMap(slider, null); SwingUtilities.replaceUIInputMap(slider, JComponent.WHEN_FOCUSED, null); protectedSwingUtilities.replaceUIActionMap(slider, null); SwingUtilities.rep...
50,150