bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException { Map indexedArgumentValues = constructorArgumentValues.getIndexedArgumentValues(); for (Iterator iterator = indexedArgumentValues.values().iterator(); iterator.hasNext();) { ...
public void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException { Map indexedArgumentValues = constructorArgumentValues.getIndexedArgumentValues(); for (Iterator iterator = indexedArgumentValues.values().iterator(); iterator.hasNext();) { ...
1,125,234
public void visitMap(Map map) throws BeansException { for (Iterator iterator = map.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); visitNext(entry.getKey()); visitNext(entry.getValue()); } }
public void visitMap(Map map, Object data) throws BeansException { for (Iterator iterator = map.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); visitNext(entry.getKey()); visitNext(entry.getValue()); } }
1,125,235
public void visitMap(Map map) throws BeansException { for (Iterator iterator = map.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); visitNext(entry.getKey()); visitNext(entry.getValue()); } }
public void visitMap(Map map) throws BeansException { for (Iterator iterator = map.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); visitNext(entry.getKey()); visitNext(entry.getValue()); } }
1,125,236
public void visitMutablePropertyValues(MutablePropertyValues propertyValues) throws BeansException { PropertyValue[] values = propertyValues.getPropertyValues(); for (int i = 0; i < values.length; i++) { visitPropertyValue(values[i]); } }
public void visitMutablePropertyValues(MutablePropertyValues propertyValues, Object data) throws BeansException { PropertyValue[] values = propertyValues.getPropertyValues(); for (int i = 0; i < values.length; i++) { visitPropertyValue(values[i]); } }
1,125,237
public void visitMutablePropertyValues(MutablePropertyValues propertyValues) throws BeansException { PropertyValue[] values = propertyValues.getPropertyValues(); for (int i = 0; i < values.length; i++) { visitPropertyValue(values[i]); } }
public void visitMutablePropertyValues(MutablePropertyValues propertyValues) throws BeansException { PropertyValue[] values = propertyValues.getPropertyValues(); for (int i = 0; i < values.length; i++) { visitPropertyValue(values[i], data); } }
1,125,238
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value, Object data) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) ...
1,125,239
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value, data); } else if (value instanceof BeanDefinitionHolder) { visitB...
1,125,240
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,241
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,242
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,243
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,244
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,245
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,246
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,247
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,248
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
protected void visitNext(Object value) throws BeansException { if (value == null) { return; } if (value instanceof ConfigurableListableBeanFactory) { visitBeanFactory((ConfigurableListableBeanFactory) value); } else if (value instanceof BeanDefinition) { ...
1,125,249
public void visitObject(Object value) throws BeansException { }
public void visitObject(Object value, Object data) throws BeansException { }
1,125,250
public void visitPropertyValue(PropertyValue propertyValue) throws BeansException { visitNext(propertyValue.getValue()); }
public void visitPropertyValue(PropertyValue propertyValue) throws BeansException { visitNext(propertyValue.getValue()); }
1,125,251
public void actionPerformed(ActionEvent e) { String username = getScreenName(); String password = getPassword(); if (!ModelUtil.hasLength(username) || !ModelUtil.hasLength(password)) { JOptionPane.showMessageDialog(this, Res.getString("message.username.password.error"), Res.getString...
public void actionPerformed(ActionEvent e) { String username = getScreenName(); String password = getPassword(); if (!ModelUtil.hasLength(username) || !ModelUtil.hasLength(password)) { JOptionPane.showMessageDialog(this, Res.getString("message.username.password.error"), Res.getString...
1,125,252
public void execute() throws MojoExecutionException, MojoFailureException { getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); getLog().debug( "schema[" + schema + "]" ); getLog().d...
public void execute() throws MojoExecutionException, MojoFailureException { getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); getLog().debug( "schema[" + schema + "]" ); getLog().d...
1,125,253
public void execute() throws MojoExecutionException, MojoFailureException { getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); getLog().debug( "schema[" + schema + "]" ); getLog().d...
public void execute() throws MojoExecutionException, MojoFailureException { getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); getLog().debug( "schema[" + schema + "]" ); getLog().d...
1,125,254
private Note createNoteFromElement(Element el, Note parent) { if (!el.getName().equals("note")) { throw new KoalaException("Koala Notes could not build a document from file '" + file.getName() + "': expected a note element but got a " + el.getName() + "."); } ...
private Note createNoteFromElement(Element el, Note parent) { if (!el.getName().equals("note")) { throw new KoalaException("Koala Notes could not build a document from file '" + file.getName() + "': expected a note element but got a " + el.getName() + "."); } ...
1,125,255
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("("); for (int i = 0; i < _content.length; i++) { if (i != 0) { sb.append(", "); } sb.append(_content[i].toString()); } sb.append(")"); return sb.toString(); }
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("("); for (int i = 0; i < _content.length; i++) { if (i != 0) { sb.append(", "); } sb.append(_content[i] == null ? "null" : _content[i].toString()); } sb.append(")"); return sb....
1,125,256
final public ParseException generateParseException() { jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[33]; for (int i = 0; i < 33; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 2; i++) { ...
final public ParseException generateParseException() { jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[33]; for (int i = 0; i < 33; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 2; i++) { ...
1,125,257
final public ParseException generateParseException() { jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[33]; for (int i = 0; i < 33; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 2; i++) { ...
final public ParseException generateParseException() { jj_expentries.removeAllElements(); boolean[] la1tokens = new boolean[33]; for (int i = 0; i < 35; i++) { la1tokens[i] = false; } if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 2; i++) { ...
1,125,258
public ChatRoom createConferenceRoom(String roomName, String serviceName) { final MultiUserChat chatRoom = new MultiUserChat(SparkManager.getConnection(), roomName + "@" + serviceName); final GroupChatRoom room = new GroupChatRoom(chatRoom); try { ChatPreferences chatPref = (ChatPref...
public ChatRoom createConferenceRoom(String roomName, String serviceName) { final MultiUserChat chatRoom = new MultiUserChat(SparkManager.getConnection(), roomName + "@" + serviceName); final GroupChatRoom room = new GroupChatRoom(chatRoom); try { ChatPreferences chatPref = (ChatPref...
1,125,260
public JContactItemField(List items) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKeyChar(); ...
public JContactItemField(List items, Window parentWindow) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKey...
1,125,261
public JContactItemField(List items) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKeyChar(); ...
public JContactItemField(List items) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKeyChar(); ...
1,125,262
public void commit() { LocalPreferences pref = SettingsManager.getLocalPreferences(); pref.setTimeDisplayedInChat(panel.getShowTime()); pref.setSpellCheckerEnabled(panel.isSpellCheckerOn()); pref.setChatRoomNotifications(panel.isGroupChatNotificationsOn()); pref.setHideChatHistory...
public void commit() { LocalPreferences pref = SettingsManager.getLocalPreferences(); pref.setTimeDisplayedInChat(panel.getShowTime()); pref.setSpellCheckerEnabled(panel.isSpellCheckerOn()); pref.setChatRoomNotifications(panel.isGroupChatNotificationsOn()); pref.setChatHistoryEnab...
1,125,263
public void load() { SwingWorker thread = new SwingWorker() { LocalPreferences pref; public Object construct() { pref = SettingsManager.getLocalPreferences(); return pref; } public void finished() { String nickname = pre...
public void load() { SwingWorker thread = new SwingWorker() { LocalPreferences pref; public Object construct() { pref = SettingsManager.getLocalPreferences(); return pref; } public void finished() { String nickname = pre...
1,125,264
public void finished() { String nickname = pref.getDefaultNickname(); if (nickname == null) { nickname = SparkManager.getSessionManager().getUsername(); } boolean showTime = pref.isTimeDisplayedInChat(); boolean sp...
public void finished() { String nickname = pref.getDefaultNickname(); if (nickname == null) { nickname = SparkManager.getSessionManager().getUsername(); } boolean showTime = pref.isTimeDisplayedInChat(); boolean sp...
1,125,265
public static void main(final String[] args) { /* * EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; * EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; * XMPPConnection.DEBUG_ENABLED = true; */ String current = System.getProperty("java.library.path"); String classPath = ...
public static void main(final String[] args) { /* * EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; * EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; * XMPPConnection.DEBUG_ENABLED = true; */ String current = System.getProperty("java.library.path"); String classPath = ...
1,125,266
public HTMLReport(Coverage coverage, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = coverage; removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generateOverviews(); generateSourceFil...
public HTMLReport(CoverageReport coverage, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = coverage; removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generateOverviews(); generateSou...
1,125,267
public static void parseTemplate(String name, Reader in) { try { Builder bb = parser.parseBlock(name, in); Block b = (Block) bb.build(new BuildContext(broker)); } catch (Exception e) { System.err.println("Exception parsing template " + name + "\n" + e); } }
public static void parseTemplate(String name, Reader in) { try { Builder bb = parser.parseBlock(name, in); bb.build(new BuildContext(broker)); } catch (Exception e) { System.err.println("Exception parsing template " + name + "\n" + e); } }
1,125,268
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0,...
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0,...
1,125,269
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0,...
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0,...
1,125,270
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0,...
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0,...
1,125,271
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0,...
public SendMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1, 0,...
1,125,272
private void makeClickable(final JLabel label) { label.setToolTipText("Click to open"); label.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { openFile(fileToSend); } public void mouseEntered(MouseEvent e) { l...
private void makeClickable(final JLabel label) { label.setToolTipText(Res.getString("message.click.to.open")); label.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { openFile(fileToSend); } public void mouseEntered(MouseEven...
1,125,273
public void sendFile(final OutgoingFileTransfer transfer, FileTransferManager transferManager, final String jid, final String nickname) { this.transferManager = transferManager; cancelButton.setVisible(true); retryButton.setVisible(false); this.fullJID = jid; this.nickname = nickn...
public void sendFile(final OutgoingFileTransfer transfer, FileTransferManager transferManager, final String jid, final String nickname) { this.transferManager = transferManager; cancelButton.setVisible(true); retryButton.setVisible(false); this.fullJID = jid; this.nickname = nickn...
1,125,274
public void sendFile(final OutgoingFileTransfer transfer, FileTransferManager transferManager, final String jid, final String nickname) { this.transferManager = transferManager; cancelButton.setVisible(true); retryButton.setVisible(false); this.fullJID = jid; this.nickname = nickn...
public void sendFile(final OutgoingFileTransfer transfer, FileTransferManager transferManager, final String jid, final String nickname) { this.transferManager = transferManager; cancelButton.setVisible(true); retryButton.setVisible(false); this.fullJID = jid; this.nickname = nickn...
1,125,275
public Object construct() { while (true) { try { Thread.sleep(10); FileTransfer.Status status = transfer.getStatus(); if (status == Status.ERROR || status == Status.COMPLETE || s...
public Object construct() { while (true) { try { Thread.sleep(10); FileTransfer.Status status = transfer.getStatus(); if (status == Status.ERROR || status == Status.COMPLETE || s...
1,125,276
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,277
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,278
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,279
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,280
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,281
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,282
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,283
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,284
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,285
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
private void updateBar(final OutgoingFileTransfer transfer, String nickname) { FileTransfer.Status status = transfer.getStatus(); if (status == Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating file transfer with " + nickname + ". Please wait..."); } else if (status...
1,125,286
public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte...
public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte...
1,125,287
private void ensureLocalCapacity(int size) { if (count < 0 || buffer[count] != null) { count++; offset[count] = localPos; length[count] = 0; if (count >= buffer.length) { increaseCapacity(); } } if ((localPos + size) >= local.length) { char[] ...
private void ensureLocalCapacity(int size) { if (count < 0 || buffer[count] != null) { count++; offset[count] = localPos; length[count] = 0; if (count >= buffer.length) { increaseCapacity(); } } if ((localPos + size) >= local.length) { char[] ...
1,125,288
public static void main(String arg[]) throws Exception { QueueWriter qw = new QueueWriter(3); char cary[] = "Hello, brave new world".toCharArray(); for (int j = 0; j < 2; j++) { for (int i = 0; i < arg.length; i++) { qw.write(arg[i],1,arg[i].length() - 2); // qw.write(arg...
public static void main(String arg[]) throws Exception { QueueWriter qw = new QueueWriter(3); char cary[] = "Hello, brave new world".toCharArray(); for (int j = 0; j < 2; j++) { for (int i = 0; i < arg.length; i++) { qw.write(arg[i],1,arg[i].length() - 2); // qw.write(arg...
1,125,289
protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED").equals ("true"); Stri...
protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODER...
1,125,290
private void addEntry() { Transport transport = null; AccountItem item = null; if (publicBox.isSelected()) { item = (AccountItem)accounts.getSelectedItem(); transport = item.getTransport(); } if (transport == null) { String jid = jidField.getText()...
private void addEntry() { Transport transport = null; AccountItem item = null; if (publicBox.isSelected()) { item = (AccountItem)accounts.getSelectedItem(); transport = item.getTransport(); } if (transport == null) { String jid = jidField.getText()...
1,125,291
public static final int random(int start, int end) { return start + ((int) (1000000.0 * java.lang.Math.random()) % end); }
public static final int random(int start, int end) { return start + (int) (end *java.lang.Math.random()/(Integer.MAX_VALUE+1.0)); }
1,125,296
public void testAddJarToPath() throws Exception { SystemClassPath systemClassPath = new SystemClassPath(); ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader(); try { systemClassLoader.loadClass("groovy.lang.GroovyShell"); fail("Class already exists"); ...
public void testAddJarToPath() throws Exception { SystemClassPath systemClassPath = new SystemClassPath(); ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader(); try { systemClassLoader.loadClass("groovy.lang.GroovyShell"); fail("Class already exists"); ...
1,125,297
public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) { ...
public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) { ...
1,125,298
public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) { ...
public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) { ...
1,125,299
public void init(Broker b, Properties config) throws InitException { _log = b.getLog("resource"); _cache = new Hashtable(); }
public void init(Broker b, Properties config) throws InitException { _log = b.getLog("resource"); _cache = new ScalableMap(1001); }
1,125,300
private String generateHtmlizedJavaSource(SourceFileData sourceFileData) { File sourceFile = null; try { sourceFile = finder.getFileForSource(sourceFileData.getName()); } catch (IOException e) { return "<p>Unable to locate " + sourceFileData.getName() + ". Have you specified the source directory?</p>"; ...
private String generateHtmlizedJavaSource(SourceFileData sourceFileData) { File sourceFile = null; try { sourceFile = finder.getFileForSource(sourceFileData.getName()); } catch (IOException e) { return "<p>Unable to locate " + sourceFileData.getName() + ". Have you specified the source directory?</p>"; ...
1,125,303
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
1,125,304
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
1,125,305
public static Test suite() { TestSuite suite= new TestSuite(); suite.addTest(new TestSyntheticTemplate("load") { protected WebMacro createWebMacro() throws Exception { return new WM("org/webmacro/template/TST.properties"); } protected void runTest() throws Exception { ...
public static Test suite() { TestSuite suite= new TestSuite(); suite.addTest(new TestSyntheticTemplate("load") { protected WebMacro createWebMacro() throws Exception { return new WM("org/webmacro/template/TST.properties"); } protected void runTest() throws Exception { ...
1,125,306
protected void runTest() throws Exception { this.threadCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.ThreadCount", this.threadCount); this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount); this.testLoadAndT...
protected void runTest() throws Exception { this.threadCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.ThreadCount", this.threadCount); this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.IterationCount); this.testLoadA...
1,125,307
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { // textLabel.setFont(defaultFont); } inval...
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else if (!selected && boldWhenActive) { textLabel.setFont(defaultFont); }...
1,125,309
protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver() { return new XBeanNamespaceHandlerResolver(getBeanClassLoader()); }
protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver() { ClassLoader classLoader = getBeanClassLoader(); if (classLoader == null) { classLoader = Thread.currentThread().getContextClassLoader(); } return new XBeanNamespaceHandlerResolver(classLoader); }
1,125,310
private final URL searchClasspath(String resource) { _log.debug("Searching classpath for "+resource); URL url = _broker.getResource(resource); if (url != null) { return url; } /* * look for locale specific resources AAAA{_xxxx_yyyyy_....}BBBBB ...
private final URL searchClasspath(String resource) { _log.debug("Searching classpath for "+resource); URL url = null; ClassLoader cl = this.getClass().getClassLoader(); if (cl != null) { url = cl.getResource(resource); } else { url = ClassLoader.getSystemResource(resource); } if (url != null...
1,125,311
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c...
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c...
1,125,312
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c...
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c...
1,125,313
final private Template getTemplate(URL path) { _log.debug("get:"+path); URLTemplate t; String pre = null; String mid = null; String post = null; String pathStr = path.toExternalForm(); try { String[] parts = parseLocalePath(pathStr); S...
final private Template getTemplate(URL path) { _log.debug("get:"+path); URLTemplate t; String pre = null; String mid = null; String post = null; String pathStr = path.toExternalForm(); try { String[] parts = parseLocalePath(pathStr); S...
1,125,315
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e...
1,125,316
public static void main(final String[] args) { EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; XMPPConnection.DEBUG_ENABLED = true; String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.c...
public static void main(final String[] args) { EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; XMPPConnection.DEBUG_ENABLED = true; String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.c...
1,125,317
public Object createService(ServiceContext serviceContext) { createException = new MockCreateException(); if (throwExceptionFromCreate) throw createException; return super.createService(serviceContext); }
public Object createService(ServiceContext serviceContext) { assertValidServiceContext(serviceContext); this.serviceContext = serviceContext; createException = new MockCreateException("MockCreateException"); if (throwExceptionFromCreate) throw createException; return super.crea...
1,125,318
public void destroyService(ServiceContext serviceContext) { destroyException = new MockDestroyException(); if (throwExceptionFromDestroy) throw destroyException; super.destroyService(serviceContext); }
public void destroyService(ServiceContext serviceContext) { assertSame(this.serviceContext, serviceContext); assertValidServiceContext(serviceContext); destroyException = new MockDestroyException("MockDestroyException"); if (throwExceptionFromDestroy) throw destroyException; su...
1,125,319
public Set getStartConditions() { Set startConditions = new HashSet(super.getStartConditions()); startConditions.add(startCondition); return startConditions; }
public synchronized Set getStartConditions() { Set startConditions = new HashSet(super.getStartConditions()); startConditions.add(startCondition); return startConditions; }
1,125,320
public Set getStopConditions() { Set stopConditions = new HashSet(super.getStopConditions()); stopConditions.add(stopCondition); return stopConditions; }
public synchronized Set getStopConditions() { Set stopConditions = new HashSet(super.getStopConditions()); stopConditions.add(stopCondition); return stopConditions; }
1,125,321
private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServ...
private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServ...
1,125,333
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
1,125,335
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
1,125,336
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re...
1,125,337
private void startFromStopping(StartStrategy startStrategy) throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); try { serviceManager.start(false, startStrategy); fail("Should have thrown ...
private void startFromStopping(StartStrategy startStrategy) throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); try { serviceManager.start(false, startStrategy); fail("Should have thrown ...
1,125,339
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
1,125,346
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out...
1,125,347
private static String generateTableColumnsFromData(double lineCoverage, double branchCoverage, double ccn) { String lineCoverageCell = (lineCoverage == -1) ? generateNAPercent() : generatePercentResult(lineCoverage); String branchCoverageCell = (branchCoverage == -1) ? generateNAPercent() : generatePer...
private static String generateTableColumnsFromData(double lineCoverage, double branchCoverage, double ccn) { String lineCoverageCell = (lineCoverage == -1) ? generateNAPercent() : generatePercentResult(lineCoverage); String branchCoverageCell = (branchCoverage == -1) ? generateNAPercent() : generatePer...
1,125,348
public void paint(Graphics g, JComponent c) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Insets vInsets = c.getInsets(); int w = c.getWidth() - (vInsets.left + vInsets.right); int h = c.getHeight() - (v...
public void paint(Graphics g, JComponent c) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Insets vInsets = c.getInsets(); int w = c.getWidth() - (vInsets.left + vInsets.right); int h = c.getHeight() - (v...
1,125,349
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F...
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F...
1,125,350
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F...
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F...
1,125,351
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =...
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =...
1,125,352
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =...
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =...
1,125,353
public void actionPerformed(ActionEvent e) { SwingWorker worker = new SwingWorker() { public Object construct() { try { Thread.sleep(10); } ...
public void actionPerformed(ActionEvent e) { SwingWorker worker = new SwingWorker() { public Object construct() { try { Thread.sleep(10); } ...
1,125,354
public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel(); } }...
public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel(); } }...
1,125,355
public Object construct() { try { Robot robot = new Robot(); Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); return robot.createScreenCapture(area); } catch (AWTException e) { ...
public Object construct() { try { Robot robot = new Robot(); Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); return robot.createScreenCapture(area); } catch (AWTException e) { ...
1,125,357
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))...
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))...
1,125,358
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))...
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))...
1,125,359
void decreaseIndentation() { indent -= indentRate; }
void decreaseIndentation() { if (indent > 0) indent--; }
1,125,360
void increaseIndentation() { indent += indentRate; }
void increaseIndentation() { indent++; }
1,125,361
static private String[] tokenize(String list) { StringTokenizer st = new StringTokenizer(list," \t\n\f\r;,"); String[] tokens = new String[st.countTokens()]; int i = 0; while (st.hasMoreElements()) { tokens[i] = st.nextToken(); } return tokens; }
static private String[] tokenize(String list) { StringTokenizer st = new StringTokenizer(list," \t\n\f\r;,"); String[] tokens = new String[st.countTokens()]; int i = 0; while (st.hasMoreElements()) { tokens[i] = st.nextToken(); } return tokens; }
1,125,362